Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
Questionsetting printer options Pin
cmarmr30-Jul-08 2:48
cmarmr30-Jul-08 2:48 
AnswerRe: setting printer options Pin
DaveyM6930-Jul-08 3:14
professionalDaveyM6930-Jul-08 3:14 
QuestionAfter form load Auto close window Pin
Member 387988130-Jul-08 2:38
Member 387988130-Jul-08 2:38 
AnswerRe: After form load Auto close window Pin
DaveyM6930-Jul-08 2:55
professionalDaveyM6930-Jul-08 2:55 
AnswerRe: After form load Auto close window Pin
PIEBALDconsult30-Jul-08 3:47
mvePIEBALDconsult30-Jul-08 3:47 
QuestionHide My Window Form Pin
Member 387988130-Jul-08 1:54
Member 387988130-Jul-08 1:54 
AnswerRe: Hide My Window Form Pin
DaveyM6930-Jul-08 2:54
professionalDaveyM6930-Jul-08 2:54 
AnswerRe: Hide My Window Form Pin
Ajay.k_Singh30-Jul-08 3:03
Ajay.k_Singh30-Jul-08 3:03 
If your only purpose is to execute a piece of code and not to show any window, you can simply delete the form and put your code in Main method.

Open Program.cs file and under main function comment out line which shows the form, and put your code. Such as –

---------------------------------
static class Program
{
///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

//Application.Run(new Form1());

MessageBox.Show("Test");

}
}
---------------------

I hope this helps.


-Dave.
--------------------------------
www.componentone.com
--------------------------------

------------------------------------
http://www.componentone.com
------------------------------------

AnswerRe: Hide My Window Form Pin
Thomas Stockwell30-Jul-08 10:26
professionalThomas Stockwell30-Jul-08 10:26 
QuestionHow to go to the next color? Pin
bouli30-Jul-08 1:03
bouli30-Jul-08 1:03 
AnswerRe: How to go to the next color? Pin
User 665830-Jul-08 1:06
User 665830-Jul-08 1:06 
GeneralRe: How to go to the next color? Pin
bouli30-Jul-08 1:57
bouli30-Jul-08 1:57 
AnswerRe: How to go to the next color? Pin
leppie30-Jul-08 2:30
leppie30-Jul-08 2:30 
AnswerRe: How to go to the next color? Pin
DaveyM6930-Jul-08 2:45
professionalDaveyM6930-Jul-08 2:45 
GeneralRe: How to go to the next color? Pin
ElSpinos30-Jul-08 2:58
ElSpinos30-Jul-08 2:58 
GeneralRe: How to go to the next color? Pin
bouli30-Jul-08 4:40
bouli30-Jul-08 4:40 
AnswerRe: How to go to the next color? Pin
Jason Henderson30-Jul-08 4:25
Jason Henderson30-Jul-08 4:25 
GeneralRe: How to go to the next color? Pin
bouli30-Jul-08 23:06
bouli30-Jul-08 23:06 
GeneralRe: How to go to the next color? Pin
Jason Henderson31-Jul-08 3:43
Jason Henderson31-Jul-08 3:43 
GeneralRe: How to go to the next color? Pin
bouli1-Aug-08 3:13
bouli1-Aug-08 3:13 
GeneralRe: How to go to the next color? Pin
DaveyM691-Aug-08 3:42
professionalDaveyM691-Aug-08 3:42 
AnswerRe: How to go to the next color? Pin
Frank Horn30-Jul-08 4:44
Frank Horn30-Jul-08 4:44 
GeneralRe: How to go to the next color? Pin
bouli30-Jul-08 23:07
bouli30-Jul-08 23:07 
QuestionProperty Attributes Pin
cecildt30-Jul-08 0:49
cecildt30-Jul-08 0:49 
AnswerRe: Property Attributes Pin
Tuwing.Sabado30-Jul-08 3:36
Tuwing.Sabado30-Jul-08 3:36 

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.