Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Threading Question
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00692021
Message ID:
00692414
Views:
27
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform