Results 1 to 3 of 3

Thread: Add a procedure to a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Atlanta
    Posts
    1

    Thumbs down

    How do you add a procedure to a form.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    ????????

    Just type it in your code.

    Sub MySub()
    End Sub

    If you mean something else, you are being very vague.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    If you wish the procedure return a result, then you need to do it this way either private or public

    Code:
    Private Function GetNum(Byval Seek As Long) As Long
        '//Do your process here
    End Function
    Code:
    Public Function GetNum(Byval Seek As Long) As Long
        '//Do your process here
    End Function
    Cheers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width