|
Ahhh yes! That has gotten rid of that error... many thanks!
Now just to figure the rest out...
Thanks so much.
|
|
|
|
|
|
If I have 10 text boxes text1, text2, text3 ... text10 and a "start over" button
I want to be able to click the start over button and have the cursor jump to text2 no matter where it is in the tab sequince.
Start at text1,
(TAB) go to text2
(TAB) go to text3
(TAB) go to text4
(TAB) go to text5
(TAB) go to text6
Push "start over" button
Change text in text2
(TAB) go to text3
Is this possable?
-- modified at 15:20 Tuesday 6th June, 2006
|
|
|
|
|
Try this in the click event of your start over button:
text2.focus()
|
|
|
|
|
Thanks that is what I was looking for.
|
|
|
|
|
My dear friend
for each textbox right click
Select Properties
u will fine TabIndex Property
select Text1 change the TabIndex Property to 1
select Text2 change the TabIndex Property to 2
select Text3 change the TabIndex Property to 3
............
:
:
:
|
|
|
|
|
In my VB.Net 2003 web app I got the ProductName and ProductVersion from the AssemblyInfo.vb with the following code:
With Diagnostics.FileVersionInfo.GetVersionInfo (Reflection.Assembly.GetExecutingAssembly.Location)
lblVersion.Text = .ProductName & " -- Version " & .ProductVersion
End With
These values are Nothing in .Net 2005!
What gives? How do I get the values in .Net 2005?
Thanks...Steve
|
|
|
|
|
Steve,
Works for me here. must be something on your system.
progload
|
|
|
|
|
Does it work in the IDE?
Where is your AssemblyInfo.vb file, in the project folder or in App_Code?
Thanks...Steve
|
|
|
|
|
Steven J. Reed wrote: Does it work in the IDE??
Yes
Steven J. Reed wrote: Where is your AssemblyInfo.vb file, in the project folder or in App_Code?
In the project folder.
|
|
|
|
|
i want to save the text of textbox in a string defined by me. i dont want to access the textbox text by textbox1.Text method. i want to know by which property i can change the by default location of the text. so plz help me as soon as possible
|
|
|
|
|
Your question is hard to understand. Are you just asking how to put text from a textbox into your own string? If so, that looks like this:
Dim myString as String = txtMyTextbox.Text
Then you can manipulate the myString value without changing the text currently in the textbox. Is that what you were asking for?
Or wait...maybe you mean you want to use the textboxes TextChanged Event. When ever the text inside the box changes it fires. It would look something like this:
Private myString as String = ""<br />
<br />
Private Sub txtMyTextbox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtMyTextbox.TextChanged<br />
myString = txtMyTextbox.Text<br />
End Sub
|
|
|
|
|
no actually i want to chnage the property means when ever i changed a text it should save in a string which is declared by me. means i dont want to get the text from
txtMyTextbox.text.
i just want to access it directly from my decalred string. ok got it?
|
|
|
|
|
Ok. I get it. But there isn't a way to get the text out of a textbox without using the myTextbox.Text method. It sounds like the closest way to accomplish it what I mentioned earlier...set your string variable everytime the text in the text box changes by adding code to the textbox object's OnTextChanged event. Like this:
Private myString as String = ""
Private Sub txtMyTextbox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtMyTextbox.TextChanged
myString = txtMyTextbox.Text
End Sub
|
|
|
|
|
I want to know how to rename a file when the user enter the new name through a text box and select the file within the filelist box
Faithfully
Jijo thomas
|
|
|
|
|
For Visual Studio 2005:
My.Computer.FileSystem.RenameFile("C:\myFile.txt", "C:\myNewFileName.txt")
For Visual Studio 2003:
System.IO.File.Copy("C:\myFile.txt", "C:\myNewFileName.txt")<br />
System.IO.File.Delete("C:\myFile.txt")
Not sure what you mean about selecting the file within the filelist box. If you are using a ListBox control it all depends upon what you use as the value. Perhaps something like this:
myListBox.SelectedValue = "C:\myNewFileName.txt"
But you have to make sure that the listbox contains the value first.
|
|
|
|
|
Kschuler wrote: System.IO.File.Copy("C:\myFile.txt", "C:\myNewFileName.txt")
System.IO.File.Delete("C:\myFile.txt")
That's not very efficient. Use the Move method instead.
---
b { font-weight: normal; }
|
|
|
|
|
I knew when I was writing it that it didn't seem like very nice code, but I couldn't see a quicker way. Just brain dead I guess. Thanks!
|
|
|
|
|
Use the File.Move method or the FileInfo.MoveTo method.
---
b { font-weight: normal; }
|
|
|
|
|
How to Export a Datatable to Ms Access or SQL server
i provided the data in a datatable named t2 in a dataset named DS - how can i save this datatable in MDB format and/or in a table in sql server database.
my application is a MS-DOS DBF to Windows Converter.
|
|
|
|
|
HI
I have a problem which is I need to know if I am connected to the internet or not... how I could do this through the code
so please help me
Tamimi - Code
|
|
|
|
|
|
Use this function
Public Function IsInternetAvailable() as Boolean<br />
Dim oUrl As New System.Uri("http://www.yoursite.com/") 'Change to web address you wish to check<br />
Dim oWebRequest As System.Net.WebRequest<br />
Dim oResponse as System.Net.Response<br />
<br />
Try<br />
oResponse = oWebRequest.GetResponse<br />
oResponse.Close()<br />
oWebRequest = Nothing<br />
Return True<br />
Catch ex as Exception<br />
oResponse.Close()<br />
Finally<br />
oResponse.Close()<br />
oWebResponse = Nothing<br />
End Try<br />
End Function
Call check your connection status with
If IsInternetAvailable() Then<br />
Messagebox.Show("you are online !!!")<br />
End If
Steve Jowett
|
|
|
|
|
Hi,
I'm open serialport (COM1) and send AT command.How am I receive respond from serialport like msgbox("OK command")?
Thanks!
|
|
|
|
|
This may be simple, but I am very new to VB.net(any programming come to that), so please bear with me, while I learn
I need to ensure that a user only enters a number into a text box and not words. I can convert the contents of the text box to an integer without a problem, but the problems start, for example if the user enters the word "Seven" as opposed to the number "7".
I only want pointing in the right(!) direction, not the code
Many thanks
-- modified at 8:27 Tuesday 6th June, 2006
|
|
|
|