p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Basic 2010 General Discussion (http://p2p.wrox.com/forumdisplay.php?f=580)
-   -   Trouble getting form to appear - VB 2010 (http://p2p.wrox.com/showthread.php?t=83781)

jericho May 25th, 2011 09:53 AM

Trouble getting form to appear - VB 2010
 
I have an app with two forms and one code module. The first form is initiated when the app is loaded and obtains the search file path and name. It then calls a subroutine in the code module to set an event when this file appears and then the app goes to sleep. When the event is triggered by the arrival of the file, the code module then initiates a new thread calling the processing subroutine in the second form. That routine reads the input file and sets the stats for the file in the second form and is supposed to display that information to the user who either accepts the file or rejects it.
I am getting the event triggered and even entering the code in the second form and processing the file, but I cannot get the second form to display with the information. I have tried activating the form, showing the form, refreshing the form, but nothing thus far has worked. Does anyone have examples of initiating a form from a new thread outside of that form and having the form appear?

Shasur June 6th, 2011 06:50 AM

Can you post some parts of code for us to understand it better

Cheers
Shasur


All times are GMT -4. The time now is 05:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.