Click here to Skip to main content
15,172,740 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy31-Jan-13 18:59
Memberdevvvy31-Jan-13 18:59 
GeneralRe: Thread.Abort - using and lock statement Pin
Dave Kreskowiak31-Jan-13 20:05
mveDave Kreskowiak31-Jan-13 20:05 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy31-Jan-13 20:07
Memberdevvvy31-Jan-13 20:07 
GeneralRe: Thread.Abort - using and lock statement Pin
devvvy6-Nov-13 18:13
Memberdevvvy6-Nov-13 18:13 
Questionbuild C# as windows app Pin
dcof31-Jan-13 13:12
Memberdcof31-Jan-13 13:12 
AnswerRe: build C# as windows app Pin
Mycroft Holmes31-Jan-13 14:51
professionalMycroft Holmes31-Jan-13 14:51 
AnswerRe: build C# as windows app Pin
Dave Kreskowiak31-Jan-13 15:53
mveDave Kreskowiak31-Jan-13 15:53 
AnswerRe: build C# as windows app Pin
Abhinav S31-Jan-13 23:37
MemberAbhinav S31-Jan-13 23: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'Hanlon1-Feb-13 0:40
mvaPete O'Hanlon1-Feb-13 0:40 
QuestionC# and ADP (Automatic Data Processing) integration Pin
Dan_YYC31-Jan-13 6:18
MemberDan_YYC31-Jan-13 6:18 
AnswerRe: C# and ADP (Automatic Data Processing) integration Pin
Dan_YYC4-Feb-13 4:56
MemberDan_YYC4-Feb-13 4:56 
QuestionAuto relocate a label Pin
justcop31-Jan-13 5:41
Memberjustcop31-Jan-13 5:41 
AnswerRe: Auto relocate a label Pin
Abhinav S31-Jan-13 7:13
MemberAbhinav S31-Jan-13 7:13 
AnswerRe: Auto relocate a label Pin
Dave Kreskowiak31-Jan-13 8:02
mveDave Kreskowiak31-Jan-13 8:02 
AnswerRe: Auto relocate a label Pin
Eddy Vluggen31-Jan-13 11:22
professionalEddy Vluggen31-Jan-13 11:22 
QuestionUpload files over HTTPS Pin
Edis Husic31-Jan-13 2:37
MemberEdis Husic31-Jan-13 2:37 
QuestionADAM LDAP Authentification via user distinguishedName Pin
mappy7501730-Jan-13 23:41
Membermappy7501730-Jan-13 23:41 
QuestionSubreport Pin
theezin30-Jan-13 23:16
Membertheezin30-Jan-13 23:16 
AnswerRe: Subreport Pin
Pete O'Hanlon30-Jan-13 23:22
mvaPete O'Hanlon30-Jan-13 23:22 
QuestionHow to write c# version of Delphi's Abort procedure Pin
Xiaoming Qian30-Jan-13 19:46
MemberXiaoming Qian30-Jan-13 19:46 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Richard MacCutchan30-Jan-13 23:07
mveRichard MacCutchan30-Jan-13 23:07 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Shameel31-Jan-13 1:18
professionalShameel31-Jan-13 1:18 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
jschell31-Jan-13 9:21
Memberjschell31-Jan-13 9:21 
Question"new" to hide base class implementation - is it useless? Pin
devvvy30-Jan-13 19:17
Memberdevvvy30-Jan-13 19:17 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
Keld Ølykke30-Jan-13 21:03
MemberKeld Ølykke30-Jan-13 21: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.