473,503 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows form not displaying

Briefly this is my problem .

I created a windows form on a "parent thread" .. then I called a child
thread 1 to make it visible then hide it on that same thread .. then kill
child thread 1 ... then try to make the form visible on child thread 2 ..
However, the form will not display either on child thread 2 or "parent
thread" ... Any idea why this is? Please help

DT
Nov 21 '05 #1
2 1001
Dayne,

Maybe can this sample I made a while ago help you in this.

It is showing an extra form (two times the same) with a thread and withouth
a thread
http://groups.google.com/groups?selm...TNGP10.phx.gbl

I hope this helps?

Cor
"Dayne" <d_**********@hotmail.com>
Briefly this is my problem .

I created a windows form on a "parent thread" .. then I called a child
thread 1 to make it visible then hide it on that same thread .. then kill
child thread 1 ... then try to make the form visible on child thread 2 ..
However, the form will not display either on child thread 2 or "parent
thread" ... Any idea why this is? Please help

DT

Nov 21 '05 #2
"Dayne" <d_**********@hotmail.com> schrieb:
I created a windows form on a "parent thread" .. then I called a child
thread 1 to make it visible then hide it on that same thread .. then kill
child thread 1 ... then try to make the form visible on child thread 2 ..
However, the form will not display either on child thread 2 or "parent
thread"


Always show your forms in the app's main UI thread. You can use
'Control.Invoke'/'Control.BeginInvoke' to communicate in the thread -> UI
direction.

More information:

Multithreading:

<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms06112002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms01232003.asp>

<URL:http://www.devx.com/dotnet/Article/11358/>

<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassInvokeTopic.asp >

Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconthreadinginvisualbasic.asp>

Sample:

<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/downloads/FileSystemEnumerator.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2287
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
2
1262
by: eXtreme | last post by:
I do the following: 1 - create a parent form called Options & put a listbox on the form lstURLs. 2 - create a child form called OptionsAdd 3 - in the parent form I create a line "Form...
6
2614
by: billr | last post by:
I have developed a small API for taking care of a lot of boiler plate stuff in a multi formed windows application, for example setting up a messaging thread framework. New Forms, in the...
9
1944
by: Justin Engelman | last post by:
Hi, I have a website that uses an ISAPI filter that will redirect anyone going to any page on the site to an SSL login page (on a different website with the same root domain) if they do not have...
3
7470
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
0
1237
by: Phil G. | last post by:
Hi, my 'project' requires that I create a form with text info. at set time periods. These time periods are not evenly spaced so I pass a param for the delay(seconds). In order to debug this I have...
3
8601
by: garyusenet | last post by:
Dear Professionals, I have recently been using the wonderful krypton toolkit and am trying to use them in my small hobby application. I include this bit of info as an aside really because i'm...
9
3744
by: oz | last post by:
Hi All, I want to make a dictionary with windows application. My data is html format. therefore, i use webBrowser control on my windows form. If the user click any word in webBrowser control,...
6
5058
by: =?Utf-8?B?VGlhZ28gTWFycXVlcw==?= | last post by:
Hi, I'm creating a kind of a gadget using C# and windows forms. For this to work I need it to that it won't ever get minimized, even if the user presses Windows+D or Windows+M. Does anyone...
0
1122
by: sanjay02 | last post by:
hi friends, i am new to .net programming.any one help me to write a chat application with custom events in C#.net windows programming. i got this through delegates.but, i need to do this in custom...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.