|
||||||||||||||||||||||||||||||||
Do I Find or Write the new Form Events (Activated,DeActivated,Closing
|
Author | Message |
---|---|
![]() In VB6, all the Form Events were in the dropdown In VB.NET, all the events are not in the drop down. Form_Load appears in the inital form code. When I try to add "Private Sub Form_Closing(byVal sender as What should I have done? |
|
Tue, 25 May 2004 20:58:18 GMT | |
![]() |
|
![]() I think, And I am probably wrong, but it looks like you did not have all the
same Byval's that the Proper event has. I.e. you are missing a ByVal, or have an Incorrect ByVal.....I ran across something like that a while back when I was creating my own event handlers for custom Components. Cade
Quote: > In VB6, all the Form Events were in the dropdown In VB.NET, all the > events are not in the drop down. Form_Load appears in the inital form code. > When I try to add "Private Sub Form_Closing(byVal sender as > What should I have done? |
|
Tue, 25 May 2004 22:07:22 GMT | |
![]() |
|
![]() The events are in the dropdown. You need to select "BaseClassEvents" in the
left dropdown. Then, in the right drop down you can see a list of events. And, just a note, in the signature of your method, you have "ByVal e As System.EventArs" For this particular event, it should be "ByVal e As CancelEventArgs" But, the dropdowns will put the signature in the code for you. . . --
Quote: > In VB6, all the Form Events were in the dropdown In VB.NET, all the > events are not in the drop down. Form_Load appears in the inital form code. > When I try to add "Private Sub Form_Closing(byVal sender as > What should I have done? |
|
Tue, 25 May 2004 22:12:03 GMT | |
![]() |
|
![]() thank you both for your help...........
Quote: > In VB6, all the Form Events were in the dropdown In VB.NET, all the > events are not in the drop down. Form_Load appears in the inital form code. > When I try to add "Private Sub Form_Closing(byVal sender as > What should I have done? |
|
Fri, 28 May 2004 19:52:08 GMT | |
Page 1 of 1 |
[ 4 post ] |