Addressof

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avahia
    New Member
    • Mar 2008
    • 1

    Addressof

    Hi everybody, I make a usercontrol with a button in my program. but I want to add a function in the click event of the button in the form that includes my usercontrol.tha t means that I want to write the code in the form not in the usercontrol because my function in the form.
    thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    I think you forget to ask your question.

    Comment

    • anuragshrivastava64
      New Member
      • Jan 2007
      • 66

      #3
      [QUOTE=avahia]Hi everybody, I make a usercontrol with a button in my program. but I want to add a function in the click event of the button in the form that includes my usercontrol.tha t means that I want to write the code in the form not in the usercontrol because my function in the form.


      In the declarations of user control add declaration for click event
      Event Click()

      Then in usercontrol add following procedure
      Private Sub UserControl_Cli ck()
      RaiseEvent Click
      End Sub

      Hope u want this only

      Comment

      Working...