|
-
Dec 10th, 2002, 04:44 AM
#1
Thread Starter
Junior Member
form.showdialog() function - bug or is it just me ?
I'm using the showdialog() function, and have put some code in the load event of the form.. guess what ? the load event doesn't run when I'm opening the form with showdialog().
My code:
Dim varFrmSetup As New frmSetup()
varFrmSetup.ShowDialog()
On the load event of the form:
msgbox("test")
The load event ONLY runs when I use the show function of the form instead of showdialog().
Anybody ?
-
Dec 10th, 2002, 05:18 AM
#2
Are you using any VB6 controls or COM components?
For instance the MaskEditControl.
Doing so sometimes causes events not to fire and you'll need to capture the window messages directly in order to fire the events.
http://www.vbforums.com/showthread.p...ght=load+event
-
Dec 10th, 2002, 05:21 AM
#3
Thread Starter
Junior Member
weird
I'm not using any activeX components or upgrading from vb6.
I'm actually rewriting vb6 code into .net methods.. more effective that way.
Could this be a bug ?
-
Dec 10th, 2002, 05:29 AM
#4
Thread Starter
Junior Member
It is a BUG - arghh
-
Dec 10th, 2002, 09:15 AM
#5
Another possible work around is to use the forms cunstructor(Sub New) Of course it gets fired when you isntantiate the form not when it 'loads' but it might work. Worth a try.
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
|