Click here to Skip to main content
15,909,051 members
Home / Discussions / C#
   

C#

 
AnswerRe: MessageBox Pin
Wjousts25-Oct-05 4:15
Wjousts25-Oct-05 4:15 
GeneralRe: MessageBox Pin
zaboboa25-Oct-05 9:39
zaboboa25-Oct-05 9:39 
QuestionWindows Forms Pin
Robert M Greene25-Oct-05 3:32
Robert M Greene25-Oct-05 3:32 
QuestionDisabling Print Screen Pin
memoboy25-Oct-05 3:32
memoboy25-Oct-05 3:32 
AnswerRe: Disabling Print Screen Pin
Wjousts25-Oct-05 4:17
Wjousts25-Oct-05 4:17 
AnswerRe: Disabling Print Screen Pin
Dave Kreskowiak25-Oct-05 10:16
mveDave Kreskowiak25-Oct-05 10:16 
GeneralRe: Disabling Print Screen Pin
Dan Neely25-Oct-05 10:58
Dan Neely25-Oct-05 10:58 
GeneralRe: Disabling Print Screen Pin
Dave Kreskowiak25-Oct-05 23:04
mveDave Kreskowiak25-Oct-05 23:04 
Generalregistery hot key Pin
memoboy27-Oct-05 3:00
memoboy27-Oct-05 3:00 
GeneralRe: registery hot key Pin
Dave Kreskowiak27-Oct-05 14:45
mveDave Kreskowiak27-Oct-05 14:45 
QuestionReadonly DataRow Pin
PaulaM25-Oct-05 3:14
PaulaM25-Oct-05 3:14 
AnswerRe: Readonly DataRow Pin
rudy.net25-Oct-05 19:27
rudy.net25-Oct-05 19:27 
QuestionHiding column in DataGrid Pin
zaboboa25-Oct-05 2:43
zaboboa25-Oct-05 2:43 
AnswerRe: Hiding column in DataGrid Pin
Wjousts25-Oct-05 3:35
Wjousts25-Oct-05 3:35 
AnswerRe: Hiding column in DataGrid Pin
Mossie0125-Oct-05 3:51
professionalMossie0125-Oct-05 3:51 
GeneralRe: Hiding column in DataGrid Pin
zaboboa25-Oct-05 3:53
zaboboa25-Oct-05 3:53 
QuestionCreate a Form in constructor Pin
Pixinger7725-Oct-05 2:31
Pixinger7725-Oct-05 2:31 
Hi
I want to create a Form in a constructor (or the load event) like this:

public class Form1
{
private Form fm;

public Form1()
{
fm = new Form();
fm.Show();
}
}

It is important for me to use Show() and not ShowDialog(). The problem is, that the Form is created and displayed, but it does not react on any mouseclick (or move...). When I use the same code from within a Button callback everything works fine. As far as I could figure out by now, there is no Messageloop created in the CTOR or in the Load callback.
So what options do I have?

Thanks in advance

remarks:
The Form1 was created in an extra Thread. This seems to cause the problem. But I need this Thread.
Snow.

-- modified at 9:00 Tuesday 25th October, 2005
AnswerRe: Create a Form in constructor Pin
Tom Larsen25-Oct-05 4:34
Tom Larsen25-Oct-05 4:34 
AnswerRe: Create a Form in constructor Pin
S. Senthil Kumar25-Oct-05 5:01
S. Senthil Kumar25-Oct-05 5:01 
QuestionStatus like messenger Pin
Mossie0125-Oct-05 2:24
professionalMossie0125-Oct-05 2:24 
QuestionStatic Classes Pin
HakunaMatada25-Oct-05 2:04
HakunaMatada25-Oct-05 2:04 
AnswerRe: Static Classes Pin
Colin Angus Mackay25-Oct-05 2:22
Colin Angus Mackay25-Oct-05 2:22 
AnswerRe: Static Classes Pin
Tom Larsen25-Oct-05 4:45
Tom Larsen25-Oct-05 4:45 
GeneralRe: Static Classes Pin
S. Senthil Kumar25-Oct-05 5:09
S. Senthil Kumar25-Oct-05 5:09 
AnswerRe: Static Classes Pin
Brian Leach25-Oct-05 10:02
Brian Leach25-Oct-05 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.