Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:10
mr jets25-Apr-07 15:10 
GeneralRe: save & open file... Pin
Christian Graus25-Apr-07 15:14
protectorChristian Graus25-Apr-07 15:14 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:19
mr jets25-Apr-07 15:19 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 16:21
mr jets25-Apr-07 16:21 
QuestionInteger/Decimal control in Windows Froms Pin
Nooie25-Apr-07 13:59
Nooie25-Apr-07 13:59 
AnswerRe: Integer/Decimal control in Windows Froms Pin
Christian Graus25-Apr-07 14:21
protectorChristian Graus25-Apr-07 14:21 
QuestionCombinations or Permutations or something else?? Pin
allenmpcx25-Apr-07 12:18
allenmpcx25-Apr-07 12:18 
AnswerRe: Combinations or Permutations or something else?? Pin
Arun.Immanuel25-Apr-07 15:08
Arun.Immanuel25-Apr-07 15:08 
AnswerRe: Combinations or Permutations or something else?? [modified] Pin
Luc Pattyn25-Apr-07 15:52
sitebuilderLuc Pattyn25-Apr-07 15:52 
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 

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.