473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 22 '05 #1
2 1423
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 22 '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 22 '05 #3

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

Similar topics

0
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.