Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM Interop, COM+, C++ Unmanaged, C# .NET 2.0 Class Library->C# .NET 1.1 Class Library Pin
Scott Dorman10-Mar-08 15:37
professionalScott Dorman10-Mar-08 15:37 
QuestionHow to do print in c#? Pin
Dong Kim10-Mar-08 12:31
Dong Kim10-Mar-08 12:31 
GeneralRe: How to do print in c#? Pin
Xmen Real 10-Mar-08 16:21
professional Xmen Real 10-Mar-08 16:21 
Generalform multithreading trouble!... Pin
Gilly Barr10-Mar-08 11:58
Gilly Barr10-Mar-08 11:58 
GeneralRe: form multithreading trouble!... Pin
Gareth H10-Mar-08 12:20
Gareth H10-Mar-08 12:20 
Generalnew Form/thread to remain open after main Application closes Pin
Alex4thDegree10-Mar-08 9:53
Alex4thDegree10-Mar-08 9:53 
GeneralRe: new Form/thread to remain open after main Application closes Pin
led mike10-Mar-08 10:04
led mike10-Mar-08 10:04 
GeneralRe: new Form/thread to remain open after main Application closes Pin
Alex4thDegree10-Mar-08 10:24
Alex4thDegree10-Mar-08 10:24 
I need the Form2 to be launched in response to a user action. Right now I'm launching it like a modeless dialog inside Form1, but I really want to launch it like an independent application. I suppose I could create it then pass it as a pointer to Form1, but that isn't really what I'm after since I need the ability to launch multiple independent Form2's from within Form1.

I forgot to mention (if it matters) that I'm using Net 2.0

I tried creating it in the main() as you said and get an error: Program does not contain a definition for CurrentContext

this code creates a Form2 that closes when I close Form1, not the desired behavior.

[STAThread]<br />
static void Main()<br />
{<br />
    Application.EnableVisualStyles();<br />
    Application.SetCompatibleTextRenderingDefault(false);<br />
    Form2 dlg = new Form2();<br />
    dlg.Show();<br />
    Application.Run(new Form1());<br />
}

GeneralRe: new Form/thread to remain open after main Application closes Pin
Christian Graus10-Mar-08 10:21
protectorChristian Graus10-Mar-08 10:21 
GeneralRe: new Form/thread to remain open after main Application closes Pin
Alex4thDegree10-Mar-08 10:26
Alex4thDegree10-Mar-08 10:26 
GeneralRe: new Form/thread to remain open after main Application closes Pin
led mike10-Mar-08 11:17
led mike10-Mar-08 11:17 
GeneralRe: new Form/thread to remain open after main Application closes Pin
Alex4thDegree11-Mar-08 3:58
Alex4thDegree11-Mar-08 3:58 
GeneralRe: new Form/thread to remain open after main Application closes Pin
led mike11-Mar-08 5:19
led mike11-Mar-08 5:19 
GeneralLoad Cursor [modified] Wrong Code Pin
lsconyer10-Mar-08 9:48
lsconyer10-Mar-08 9:48 
GeneralRe: Load Cursor Pin
Christian Graus10-Mar-08 10:24
protectorChristian Graus10-Mar-08 10:24 
GeneralRe: Load Cursor Pin
lsconyer10-Mar-08 10:34
lsconyer10-Mar-08 10:34 
GeneralRe: Load Cursor Pin
Christian Graus10-Mar-08 11:22
protectorChristian Graus10-Mar-08 11:22 
QuestionOracle Data Provider 11g: combining UDT and associated Array ??? Pin
faehne10-Mar-08 9:19
faehne10-Mar-08 9:19 
QuestionStrange Assembly Reference Issue Pin
classNoob10-Mar-08 8:36
classNoob10-Mar-08 8:36 
GeneralRe: Strange Assembly Reference Issue Pin
classNoob10-Mar-08 9:43
classNoob10-Mar-08 9:43 
GeneralRe: Strange Assembly Reference Issue Pin
classNoob10-Mar-08 10:05
classNoob10-Mar-08 10:05 
AnswerRe: Strange Assembly Reference Issue Pin
classNoob10-Mar-08 10:37
classNoob10-Mar-08 10:37 
QuestionStreamWriter reformatting output??? Pin
LongRange.Shooter10-Mar-08 8:29
LongRange.Shooter10-Mar-08 8:29 
GeneralRe: StreamWriter reformatting output??? Pin
Christian Graus10-Mar-08 10:25
protectorChristian Graus10-Mar-08 10:25 
GeneralRe: StreamWriter reformatting output??? Pin
LongRange.Shooter11-Mar-08 16:42
LongRange.Shooter11-Mar-08 16:42 

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.