|
-
Nov 25th, 2007, 10:26 AM
#1
Thread Starter
Fanatic Member
creating sub in a form
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???
-
Nov 25th, 2007, 10:54 AM
#2
Fanatic Member
Re: creating sub in a form
In case of .Net, I've always done is added the sub on my own. All you need to do is write this code
Code:
Private Sub ExampleSub(ByVal testArgument as String)
and 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".
-
Nov 25th, 2007, 11:11 AM
#3
Thread Starter
Fanatic Member
Re: creating sub in a form
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|