I am new to VB.Net(VB 2008 XE).
how do I create a sub in a form?
in VB 6 I just clicked on tools, add procedure and then typed in the name of the sub.
I am probably over looking something but could someone point the way???
Printable View
I am new to VB.Net(VB 2008 XE).
how do I create a sub in a form?
in VB 6 I just clicked on tools, add procedure and then typed in the name of the sub.
I am probably over looking something but could someone point the way???
In case of .Net, I've always done is added the sub on my own. All you need to do is write this codeand then press "Enter" and the end sub statement comes on its own. I guess you must be aware of the keyword "Private" that was not there in VB6. This is the access modifier stating that this method will be available to the class in which it is being written. If you want this to be available to other classes then you just need to change it to "Public".Code:Private Sub ExampleSub(ByVal testArgument as String)
ok and thanks.