Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Threading Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00692021
Message ID:
00692414
Vues:
26
Well, I found two ways to solve my problem. Here is the easiest. The form that is displayed on the newly created still has the ability to see public properties of the main form that created the thread. One of my properties actually references the main form, so in the created form, I can use the following code:

poMainForm.BringToFront()

It was as simple as that; however I could have used the following Windows API call:

Private Declare Function BringWindowToTop Lib "user32" _
(ByVal hwnd As Long) As Long


' Bring the window Form1 to the top of the Z-order.
Dim retval As Long ' return value
retval = BringWindowToTop(poMainForm.Handle.ToInt64)

This was written by Paul Kuliniewicz and came from the website http://www.vbapi.com.

I hope this helps someone else.
Randy Belcher
AFG Industries, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform