Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VbModal & Out of Stack Space Infinite loop
Message
 
To
26/11/1996 11:44:17
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013520
Message ID:
00013558
Views:
29
>>our solution:
>>
>>first add a timer to the first modal screen.
>>click code for the button:
>>
>>MorePeople.Hide
>>Timer1.Enabled = True
>>Timer1.Enabled = False
>>People_Expertise.Show 1
>>Timer1.Enabled = True
>>Timer1.Enabled = False
>>MorePeople.Show 1
>>Unload People_Expertise
>>
>>-- end of code
>>it works but a 'robust' language shouldn't force kludge code for something this simple...
>
>I probably missed the point here...or it's my cat again...or both...What's the Timer for?

something i got out of the vb manual (surprise!)
vb can't have two modal forms at the same time, so they recommend putting a timer in (interval set to 1). when you hide the first modal form, the timer executes. now it thinks it isn't modal. before it returns to the calling program, it finishes the code in the click. now it loads the second modal form. when this closes, you finish the code in the button click on the first modal form. this redisplays the first form as modal. stupid, don't you think?
Previous
Reply
Map
View

Click here to load this message in the networking platform