Hi
i am new to visual basic. So i am gonna need some help creating a tool.
what i want:
A tool with 1 text field, and 3 buttons.
If you press button 1, there will be a prompt box, to select a file (all files are clickable). If you select one, the content of the file will be shown in the text area. Then you can edit the text. Then when you press button 2, the file will be saved. When you didnt selected a file with button 1, there will be created a new file. When you press button 3, you will go to a website.
Now i already created the tool itself, but now the code.
Thats where i need help with.
I already found some code for button 3:
but that didnt work. it gave this error:
Runtime error 424
Object required
i am using VB6
Thanks,
Thew
i am new to visual basic. So i am gonna need some help creating a tool.
what i want:
A tool with 1 text field, and 3 buttons.
If you press button 1, there will be a prompt box, to select a file (all files are clickable). If you select one, the content of the file will be shown in the text area. Then you can edit the text. Then when you press button 2, the file will be saved. When you didnt selected a file with button 1, there will be created a new file. When you press button 3, you will go to a website.
Now i already created the tool itself, but now the code.
Thats where i need help with.
I already found some code for button 3:
Code:
Private Sub Command3_Click() System.Diagnostics.Process.Start ("http://www.thewnetwork.tk/") End Sub
Runtime error 424
Object required
i am using VB6
Thanks,
Thew
Comment