ayzzhero's code worked fine. I had this piece of code but it did not work. Can anyone spot the error?
Me.ComboBox1.Items.Clear()
Dim x As Integer
For x = 1 To x = 10 Step 1
Me.ComboBox1.Items.Add(x)
Next
Thanks
Adding values to a combo box (Resolved)
Hi,
You will tell from this question that I am a VB .Net starter :) I am trying to add a list of ten numbers in the combo box values. I think I have the code right but I think I am placing it in the wrong place. I tried form_load and an add button but...
Hi Kulrom
I found out what I missed on your method. I had forgotten this line:
Dim txt AsString = Me.TextBox1.Text
As soon as I added this, it worked just as good.
Thanks for your help.
Thank you for your help. But the txt.substring does not seem to work. Also, what is the equivalent of setfocus property? It was available in vb6 but it does not seem to work in .net.
Thanks again.
Back button(Resolved)
Hi,
I am trying to create a back button to delete one digit from the right of text box value. Can you please suggest a .net solution?
Thanks in advance.
Your assumption is correct. Thank you for the advise and sorry about the boat load of code that I posted. I did select all and did not verify the post. Your suggestion worked great. It seems like I have other issues but this one is resolved.
Thanks again.
Form does not run (Resolved)
Hi,
I have this program as a windows application.
This is the form and the controles on it:
'*******************************************
PublicClass frmCalc
Inherits System.Windows.Forms.Form
Dim ValueOne AsLong
Dim ValueTwo AsLong
Dim Sign AsString...
Basically what I am doing is trying to recode a program that I used to have in VB6 to experiment with VB .Net. The program is an on screen calculator. An image of the form is attached. Each number button is going to send a value to the text box. When the user is ready, he/she is going to...
Sorry kulrom,
The console concept is new to me. I placed the line in before End Sub in Form Load and still not working.
Can you please talk a little more about consoles?
Thanks a lot.
Hi,
I have a one form one module one function program that wont run when I try to debug it. When I click the run button I get a black screen that reads "press any key to continue..." and it disappears very quickly. I think the main form comes up and stops very quickly before doing any thing on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.