Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Most Form won't go away
Message
De
25/09/2010 21:49:10
 
 
À
24/09/2010 14:34:26
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Divers
Thread ID:
01482178
Message ID:
01482751
Vues:
46
Sorry Calvin, I've been away a bit myself. Can you post some more code? Like specifically the code for showing and hiding the floater form and which events you've put the code in? I need to be able to duplicate your issue in order to help.

~~Bonnie


>Bonnie,
>Sorry, I have been AWOL for a few days. Here's the situation. I have a form that is basically a lookup form. It grabs data from the database subject to various filters and displays the data in a grid. In the load of this form I have the following code
>
>Try
> floater = New frmLookUpControl(SearchType, Me)
> floater.StartPosition = FormStartPosition.Manual
> floater.Location = New Point(Me.Location.X + Me.Width + 5, Me.Location.Y + btnMapCustomer.Location.Y)
> floater.Show()
> Me.txtAcctNoName.Focus()
>Catch oerr As Exception
> MsgBox(oerr.Message)
>end try
>
>The form called floater is set to be "topmost" and contains a list of different actions that the lookup form can perform ( find a customer to 1. take a payment, 2 edit customer data etc.) Options chosen in the floater change the behavior of the lookup form.
>
>Inside the code for the lookup form, I am careful to hide floater whenever an action takes place ( opens another screen etc) and then show floater when the lookup form gets focus again.
>
>If the user activates another completely different application, floater remains floating majestically on top. The lookup form never loses focus so floater never gets hidden. What I need is a way to determine when my application loses focus. Any help greatly appreciated...
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform