Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
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 
QuestionPush Server deployment Technology Pin
rmedo25-Oct-05 1:23
rmedo25-Oct-05 1:23 
QuestionImporting a csv file into sql Pin
Fendefa25-Oct-05 1:17
Fendefa25-Oct-05 1:17 
AnswerRe: Importing a csv file into sql Pin
Colin Angus Mackay25-Oct-05 1:25
Colin Angus Mackay25-Oct-05 1:25 
QuestionScrollposition in a richtextbox Pin
edvo25-Oct-05 0:34
edvo25-Oct-05 0:34 
QuestionMock object frameworks for .net 2.0 Pin
seahawk4225-Oct-05 0:03
seahawk4225-Oct-05 0:03 
QuestionUploading and resizing Image files Pin
Brendan Vogt24-Oct-05 23:43
Brendan Vogt24-Oct-05 23:43 
AnswerRe: Uploading and resizing Image files Pin
KaptinKrunch25-Oct-05 2:46
KaptinKrunch25-Oct-05 2:46 
QuestionUpdater Application Block for Office Add In Pin
JeremyHutchinson24-Oct-05 23:19
JeremyHutchinson24-Oct-05 23:19 
Questiona couple of C# questions Pin
Brendan Vogt24-Oct-05 23:05
Brendan Vogt24-Oct-05 23:05 

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.