Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VbModal & Out of Stack Space Infinite loop
Message
 
À
26/11/1996 11:44:17
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013520
Message ID:
00013558
Vues:
33
>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform