il_wentu

il_wentu

  • NA
  • 1
  • 0

How do i see an event of a private member ?

Feb 3 2004 7:05 AM
Hi, here's my problem: I have a MyPanel derived from Panel with an inner textbox. The textbox is declared as private and i leave only its text property as public. I instantiate MyPanel in a MyForm and i want to refer to the GotFocus event of the textbox in the panel. How do i make public only this event ? Actually i am programming in Vb.net and i need to use the function: AddHandler MyPanelInstance.TextBox.GotFocus , AddressOf MyHandlerFunction but of course it doesn't work this way. How do i handle the inner gotfocus with a function declared in the MyForm ? i welcome answers both for C# and for Vb.net thanx !! Wentu

Answers (1)