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

C#

 
GeneralRe: Combinations or Permutations or something else?? Pin
Arun.Immanuel25-Apr-07 16:09
Arun.Immanuel25-Apr-07 16:09 
Questionsolution urgent please Pin
netJP12L25-Apr-07 12:11
netJP12L25-Apr-07 12:11 
AnswerRe: solution urgent please Pin
Colin Angus Mackay25-Apr-07 21:22
Colin Angus Mackay25-Apr-07 21:22 
GeneralRe: solution urgent please Pin
netJP12L26-Apr-07 8:48
netJP12L26-Apr-07 8:48 
QuestionHiding the UI Pin
AAKAra25-Apr-07 12:04
AAKAra25-Apr-07 12:04 
AnswerRe: Hiding the UI Pin
caix25-Apr-07 15:19
caix25-Apr-07 15:19 
GeneralRe: Hiding the UI Pin
AAKAra27-Apr-07 4:12
AAKAra27-Apr-07 4:12 
GeneralRe: Hiding the UI [modified] Pin
caix29-Apr-07 13:44
caix29-Apr-07 13:44 
Option 2)
Create your form like normal.
Go to your application main entry point(usually in program.cs ) which should look something like this:

static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}

And change it to:

static void Main()
{

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(frm);
Form1 frm = new Form1();
if (-put your test here-)
{
frm.Show();
}
do
{
System.Windows.Forms.Application.DoEvents();
} while (!frm.IsDisposed);
}
}

Oh, btw while looking for the best way to test the form i also ran across this in the VS2005 MSDN:
"How to: Make a Startup Windows Form Invisible "
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_mancli/html/98792c58-ec32-4086-8a62-c101c0cc4e88.htm



-- modified at 20:57 Sunday 29th April, 2007
Questionanother windows form questions Pin
MarkSchultz25-Apr-07 11:44
MarkSchultz25-Apr-07 11:44 
AnswerRe: another windows form questions Pin
Rocky#25-Apr-07 22:22
Rocky#25-Apr-07 22:22 
Questiondrag drop operations between 2 listboxes Pin
rzvme25-Apr-07 8:53
rzvme25-Apr-07 8:53 
AnswerRe: drag drop operations between 2 listboxes Pin
Paul Conrad25-Apr-07 9:48
professionalPaul Conrad25-Apr-07 9:48 
AnswerRe: drag drop operations between 2 listboxes Pin
Dan Neely25-Apr-07 10:27
Dan Neely25-Apr-07 10:27 
GeneralRe: drag drop operations between 2 listboxes Pin
Paul Conrad25-Apr-07 10:56
professionalPaul Conrad25-Apr-07 10:56 
Questionproblem with passing method to thread class. Pin
hdv21225-Apr-07 8:39
hdv21225-Apr-07 8:39 
AnswerRe: problem with passing method to thread class. Pin
Tarakeshwar Reddy25-Apr-07 8:53
professionalTarakeshwar Reddy25-Apr-07 8:53 
AnswerRe: problem with passing method to thread class. Pin
Jimmanuel25-Apr-07 9:11
Jimmanuel25-Apr-07 9:11 
QuestionGetting position of IBean of RichTextBox Pin
Adobe200725-Apr-07 7:09
Adobe200725-Apr-07 7:09 
AnswerRe: Getting position of IBean of RichTextBox Pin
Adobe200725-Apr-07 7:12
Adobe200725-Apr-07 7:12 
GeneralRe: Getting position of IBean of RichTextBox Pin
Dan Neely25-Apr-07 7:16
Dan Neely25-Apr-07 7:16 
GeneralRe: Getting position of IBean of RichTextBox Pin
Adobe200725-Apr-07 7:31
Adobe200725-Apr-07 7:31 
GeneralRe: Getting position of IBean of RichTextBox [modified] Pin
Adobe200725-Apr-07 7:34
Adobe200725-Apr-07 7:34 
AnswerRe: Getting position of IBean of RichTextBox Pin
Adobe200725-Apr-07 8:14
Adobe200725-Apr-07 8:14 
AnswerRe: Getting position of IBean of RichTextBox Pin
Adobe200725-Apr-07 8:44
Adobe200725-Apr-07 8:44 
QuestionNullReferenceException in WaitForWaitHandle Pin
jayart25-Apr-07 6:21
jayart25-Apr-07 6:21 

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.