Page 1 of 1
A few vb 2005 express questions
Posted: Tue Dec 13, 2005 5:48 pm
by MattBot5000
hey a couple of questions:
1. how do i link an object such as a web browser to a progress bar
2. when i make things such a color dialog, they don't show up, and option to make it visable in properties.
3. how do i get a button to do the edit commands (cut, paste, copy, etc.)
4. how do i get vb to create a *.txt file and read variables from it (like a cookie)
thx in advance
Re: A few vb 2005 express questions
Posted: Sat Dec 17, 2005 7:05 am
by PlasmaGhost
MattBot5000 wrote:hey a couple of questions:
1. how do i link an object such as a web browser to a progress bar
2. when i make things such a color dialog, they don't show up, and option to make it visable in properties.
3. how do i get a button to do the edit commands (cut, paste, copy, etc.)
4. how do i get vb to create a *.txt file and read variables from it (like a cookie)
thx in advance
1. im not so sure about this but i think its like
Code: Select all
Progressbar.Progress = WebBrowser.Progress
2. you need ColorDialog.ShowDialog() to show it
3.Make a button, double click it, in the sub type this:
Code: Select all
TextBox1.Copy() 'Copys selected text in TextBox1
TextBox1.Cut() 'This might work i haven't tried it
TextBox1.Paste() 'I've also never tried this lol
TextBox1.SelectAll() 'You can do this to select ALL text
4. Type this:
Code: Select all
Dim filename as String = "C:\WINDOWS\secretTextFile.txt" 'change to filename
Dim stext as String = "" 'change to what text to save
Dim rtext as String = "" 'leave blank
My.Computer.FileSystem.WriteText(filename,stext,false) 'saves file
rtext = My.Computer.FileSystem.ReadText(filename) 'read data to text
That code should work. If it's not ReadText and WriteText its just Read and Write. Good luck programming!
Be sure to check out my program called H2SV!
PlasmaGhost