Click here to Skip to main content
15,904,500 members
Home / Discussions / C#
   

C#

 
AnswerRe: C#,ASP.Net Pin
Simon_Whale1-Feb-13 1:06
Simon_Whale1-Feb-13 1:06 
AnswerRe: C#,ASP.Net Pin
Dave Kreskowiak1-Feb-13 1:30
mveDave Kreskowiak1-Feb-13 1:30 
AnswerRe: C#,ASP.Net Pin
Abhinav S1-Feb-13 8:16
Abhinav S1-Feb-13 8:16 
Questionhow to change the background color of a selected row in datagridview Pin
NarVish31-Jan-13 21:37
NarVish31-Jan-13 21:37 
AnswerRe: how to change the background color of a selected row in datagridview Pin
OriginalGriff31-Jan-13 22:21
mveOriginalGriff31-Jan-13 22:21 
GeneralRe: how to change the background color of a selected row in datagridview Pin
NarVish31-Jan-13 22:35
NarVish31-Jan-13 22:35 
GeneralRe: how to change the background color of a selected row in datagridview Pin
OriginalGriff31-Jan-13 22:38
mveOriginalGriff31-Jan-13 22:38 
GeneralRe: how to change the background color of a selected row in datagridview Pin
Richard MacCutchan31-Jan-13 22:39
mveRichard MacCutchan31-Jan-13 22:39 
GeneralRe: how to change the background color of a selected row in datagridview Pin
OriginalGriff31-Jan-13 22:46
mveOriginalGriff31-Jan-13 22:46 
AnswerRe: how to change the background color of a selected row in datagridview Pin
Richard MacCutchan31-Jan-13 22:38
mveRichard MacCutchan31-Jan-13 22:38 
GeneralRe: how to change the background color of a selected row in datagridview Pin
NarVish31-Jan-13 22:45
NarVish31-Jan-13 22:45 
QuestionHow to write events in event log using Log4net Pin
venkatpappu31-Jan-13 21:28
venkatpappu31-Jan-13 21:28 
AnswerRe: How to write events in event log using Log4net Pin
Richard MacCutchan31-Jan-13 22:11
mveRichard MacCutchan31-Jan-13 22:11 
QuestionThread.Abort - using and lock statement Pin
devvvy31-Jan-13 15:49
devvvy31-Jan-13 15:49 
AnswerRe: Thread.Abort - using and lock statement Pin
Dave Kreskowiak31-Jan-13 17:53
mveDave Kreskowiak31-Jan-13 17:53 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy31-Jan-13 17:59
devvvy31-Jan-13 17:59 
GeneralRe: Thread.Abort - using and lock statement Pin
Dave Kreskowiak31-Jan-13 19:05
mveDave Kreskowiak31-Jan-13 19:05 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy31-Jan-13 19:07
devvvy31-Jan-13 19:07 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy6-Nov-13 17:13
devvvy6-Nov-13 17:13 
Questionbuild C# as windows app Pin
dcof31-Jan-13 12:12
dcof31-Jan-13 12:12 
AnswerRe: build C# as windows app Pin
Mycroft Holmes31-Jan-13 13:51
professionalMycroft Holmes31-Jan-13 13:51 
AnswerRe: build C# as windows app Pin
Dave Kreskowiak31-Jan-13 14:53
mveDave Kreskowiak31-Jan-13 14:53 
AnswerRe: build C# as windows app Pin
Abhinav S31-Jan-13 22:37
Abhinav S31-Jan-13 22:37 
There a number of differences between both types of applications.

A windows application will have a designer that will contain information about the form (and other controls when added itself).
There is an InitializeComponent that generates these controls.
private void InitializeComponent()
{
    this.components = new System.ComponentModel.Container();
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    this.Text = "Form1";
}


The entry point to the apps are different.
static void Main()
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new Form1());
}


Thus, you will notice that whether you use Visual Studio or build classes in a text editor and compile via prompt, there will be subtle differences that you need to handle.
So it will be easiest to separate the bulk of the business logic from your console app and put it all in a new windows app that you design new.

AnswerRe: build C# as windows app Pin
Pete O'Hanlon31-Jan-13 23:40
mvePete O'Hanlon31-Jan-13 23:40 
QuestionC# and ADP (Automatic Data Processing) integration Pin
Dan_YYC31-Jan-13 5:18
Dan_YYC31-Jan-13 5:18 

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.