Ok I need to have a message box pop up when a user clicks the "Add Patient" button and the message box should have multiple textboxes which include Patient name, Patient ID, etc. I guess my question is can I do this with a message box or do I need a new form to pop up when the button is clicked. The form is connected to a database and the info entered should be added to the "Patients" data table.
I am trying to make a message box display evens from textbox1 (being the user's low input) to textbox2 (being the user's high input). I currently have it displaying the correct numbers for evens, but they are appearing it separate message boxes. I need them all to be displayed in the same message box.i.e. Textbox1 = 1 , Textbox2 = 7 MessageBox = 2 4 6...Also, I have to do the evens in a Do While loop and the odds in a Do Until loop.
Okay this is the simple thing I'm trying to accomplish. I can get richtextbox1 to add to listbox 1. but i cant get both to add. the compare works fine. I'm stumped.
From my login form, and when a correct Username and Password has been succesfull and I get a messageBox saying "welcome to your System" (Picture Below) and when I press the OK button in that MessageBox, I want to open Form3.do I add code to the Underlined code (below Picture), or Do I write a completley different code after the messageBox code.
I have a form on a program i am working on that i need to check if all the textboxes hold a separate value when a button is clicked. I know that i can use comparative operators to check the values are different, but i am using 6 different textboxes, and don't fancy typing. [Code] 36 times over, could somebody point me in the right direction for an easy way of checking that 6 textboxes hold different values. Also, as a sidenote, i would like to know if there is a way to check if all 6 are numeric in an easier way than typing is-numeric(textbox1).
how to change multiple textboxes without calling each specific name. I have about 10 textboxes and would like to change their maxlength based on the following conditions.
1- If the user select decimal i would like to limit the maxlength to 3 on all the 10 textboxes at once versus individually changing each textbox maxlength.
2. If the user select hexadecimal i would like to limit the maxlength to 2 on all the 10 textboxes all at once.
I have my menustrip with the standard edit items. I know I can do this:
If TextBox1.Focused = True Then TextBox1.Undo() ElseIf TextBox2.Focused = True Then TextBox2.Undo() 'Ect. Ect. Ect.
End If until I type out every textbox. However, I have like 30 textboxes and don't want to type out every textbox to see if they have focus. Is there a work around for that?
I have multiple textboxes which I want them to perform the same thing upon clicking them. By default I can use the handles textbox1.click for 1 single textbox but I am not sure how to do handle multiples of them. Of course I can write a handler for every single textbox but I have about 50.
Sub TextBox1_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Click If Button9.Text = "Make Changes" Then If TextBox2.Text <> "" Then Frm_Cine1.Show() [Code] .....
I'm not sure how to do the following (in VB.NET), I'm hoping you will give me some insight or examples on how it can be done. My database is an SQL one.I have an assets table, which in it has the amount, growth percentage, income percentage. There are multiple assets per client.
I need to get the amount, growth and income into three separate boxes or variables and I'm not quite sure how to do this. The only other problem is that there would be two or three rows returned also, which need to have those three variables or textboxes again. So for x amount of rows, I need 3 variables which the amount, growth and income will go into.
The reason I need everything into variables is that I can't find an effective way of showing each assets growth over x amount of years and the income it will produce into a data grid view. I'm able to do it if I specify what the growth and income are on the form, but not through the query.
The problem I am having is with a loop that I want to clear multiple textboxes Dim count as double = 0 dim max as double = 6 Do Until count = max textcommand = ("Textbox_"+ count +".clear()") +Textcommand+ count = count + 1 Loop [Code] .....
In grid there r checkboxes for selecting the records to be updated as soon as checkbox is checked textboxes changes to edit mode. when data is modified and update button is clicked updation should be done to the database.But when update button is clicked its not working.when i checked through breakpoints i m not getting the value for the variable strID.
Protected Sub btnupdate_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles btnupdate.Click Dim strSql As New StringBuilder( String .Empty) Dim cmdup As New SqlCommand For i As Integer = 0 To GridView1.Rows.Count - 1
I have a problem whereby I have 10 text boxes and I don't like to use the same code for each and every text box that allows users to input only numbers, which could be very long and messy coding.
Is there any shortcut that I can set all (not just one) text boxes to allowing user to input only numbers?
I have an assets table, which in it has the amount, growth percentage, income percentage. There are multiple assets per client.
I need to get the amount, growth and income into three separate boxes or variables and I'm not quite sure how to do this. The only other problem is that there would be two or three rows returned also, which need to have those three variables or textboxes again. So for x amount of rows, I need 3 variables which the amount, growth and income will go into.
The reason I need everything into variables is that I can't find an effective way of showing each assets growth over x amount of years and the income it will produce into a data grid view. I'm able to do it if I specify what the growth and income are on the form, but not through the query.
validating a form with multiple text boxes? User would be informed what was the problematic field.The source of the form:
Private Sub btnNewUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNewUser.Click 'If txtEmail.Text.Contains(" "c) Or Not(InStr(txtEmail.Text, "@")) Then 'txtEmail.Clear() 'ElseIf txtPassword.Text.Contains(" "c) Then
I have multiple textboxes which I want them to perform the same thing upon clicking them. By default I can use the handles textbox1.click for 1 single textbox as shown below but I am not sure how to do handle multiples of them. Of course I can write a handler for every single textbox but I have about 50 of them. I am sure there must be a more efficient way. [Code]
I am using VB2010 Express to create a Windows Form.
I have been able to add an event handler to a single textbox to respond to the ".Leave" action.
Now I want to take multiple textboxes and use them as a single control and use the same event handler.
Eg. If TextBox1, TextBox2 and TextBox3 are grouped as a single control nothing would happen in those boxes until focus went to any other control on the form.
i have and application with 140 textboxes and when i click the save update button it gives me a error i'm trying to save all the textboxes in one column, one beneath the other heres my code;
I have a textbox that I am including in the email body of the message that the app sends out, however; I want to add multiple other text boxes into the mail body.
I have a program with about 350 textboxes (about 50-60 of which are not visible to start) and with the click of a CheckBox I'm looking to make them visible.
On my form I have 3 textboxes. They get their data from a database query. The trick is the database may return 1 result or up to 3. If the query returns only 1 result, I want the first textbox populated, 2 results, 1st and 2nd textbox populated, etc... I also want to be able to track CurrentItemChanged Event for updating purposes. My initial thought was to use a list object as the binding source but how would I cycle through the list if it returns more than one so that I can assign the values to the 2nd and 3rd textboxes or if data is entered in to a blank textbox I want the currentitemchanged
I am trying to get my little program to do some calculations.So far i got 15 textboxes, named TxtPP(followed by product type),so i got TxtPPproduct1, TxtPPproduct2 etc..At the bottom of the form i got a disabled textbox which shows the total of all the above textboxes.Now i don't want to use a button to click when doing the calculations.I want this to be done every time a value is added to one of the textboxes(so on lost focus).
I have four textboxes, I want textbox1 to accept only char data. I want textbox2 to accept only numeric data. I want textbox3 to accept only alphanumeric data. I want textbox4 to accept only bolean data.