Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: C# and ADP (Automatic Data Processing) integration Pin
Dan_YYC4-Feb-13 3:56
Dan_YYC4-Feb-13 3:56 
QuestionAuto relocate a label Pin
justcop31-Jan-13 4:41
justcop31-Jan-13 4:41 
AnswerRe: Auto relocate a label Pin
Abhinav S31-Jan-13 6:13
Abhinav S31-Jan-13 6:13 
AnswerRe: Auto relocate a label Pin
Dave Kreskowiak31-Jan-13 7:02
mveDave Kreskowiak31-Jan-13 7:02 
AnswerRe: Auto relocate a label Pin
Eddy Vluggen31-Jan-13 10:22
professionalEddy Vluggen31-Jan-13 10:22 
QuestionUpload files over HTTPS Pin
Edis Husic31-Jan-13 1:37
Edis Husic31-Jan-13 1:37 
QuestionADAM LDAP Authentification via user distinguishedName Pin
mappy7501730-Jan-13 22:41
mappy7501730-Jan-13 22:41 
QuestionSubreport Pin
theezin30-Jan-13 22:16
theezin30-Jan-13 22:16 
AnswerRe: Subreport Pin
Pete O'Hanlon30-Jan-13 22:22
mvePete O'Hanlon30-Jan-13 22:22 
QuestionHow to write c# version of Delphi's Abort procedure Pin
Xiaoming Qian30-Jan-13 18:46
Xiaoming Qian30-Jan-13 18:46 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Richard MacCutchan30-Jan-13 22:07
mveRichard MacCutchan30-Jan-13 22:07 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Shameel31-Jan-13 0:18
professionalShameel31-Jan-13 0:18 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
jschell31-Jan-13 8:21
jschell31-Jan-13 8:21 
Question"new" to hide base class implementation - is it useless? Pin
devvvy30-Jan-13 18:17
devvvy30-Jan-13 18:17 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
Keld Ølykke30-Jan-13 20:03
Keld Ølykke30-Jan-13 20:03 

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.