Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Amy Dev29-Jan-15 1:09
Amy Dev29-Jan-15 1:09 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
OriginalGriff29-Jan-15 0:54
mveOriginalGriff29-Jan-15 0:54 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
User 1013254629-Jan-15 1:01
User 1013254629-Jan-15 1:01 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Amy Dev29-Jan-15 1:15
Amy Dev29-Jan-15 1:15 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
User 1013254629-Jan-15 1:23
User 1013254629-Jan-15 1:23 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Amy Dev29-Jan-15 1:10
Amy Dev29-Jan-15 1:10 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
_Maxxx_29-Jan-15 0:54
professional_Maxxx_29-Jan-15 0:54 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Amy Dev29-Jan-15 1:11
Amy Dev29-Jan-15 1:11 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
_Maxxx_29-Jan-15 1:30
professional_Maxxx_29-Jan-15 1:30 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Pete O'Hanlon29-Jan-15 7:00
mvePete O'Hanlon29-Jan-15 7:00 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Anurag Gandhi30-Jan-15 7:07
professionalAnurag Gandhi30-Jan-15 7:07 
Questionhow can i implement the custom shapes like Rectangle, Ellipse using Ink Canvas in wpf application Pin
vema adi ganesh28-Jan-15 21:57
vema adi ganesh28-Jan-15 21:57 
SuggestionRe: how can i implement the custom shapes like Rectangle, Ellipse using Ink Canvas in wpf application Pin
Richard MacCutchan28-Jan-15 22:35
mveRichard MacCutchan28-Jan-15 22:35 
QuestionNeed code for the following Pin
Member 1140900728-Jan-15 3:46
Member 1140900728-Jan-15 3:46 
AnswerRe: Need code for the following Pin
Richard MacCutchan28-Jan-15 4:21
mveRichard MacCutchan28-Jan-15 4:21 
Question.NET Reporting Mechanism Pin
Jassim Rahma28-Jan-15 2:18
Jassim Rahma28-Jan-15 2:18 
AnswerRe: .NET Reporting Mechanism Pin
Eddy Vluggen28-Jan-15 7:19
professionalEddy Vluggen28-Jan-15 7:19 
QuestionInsert data from feed to sql table Pin
Alexmarvel28-Jan-15 0:25
Alexmarvel28-Jan-15 0:25 
AnswerRe: Insert data from feed to sql table Pin
OriginalGriff28-Jan-15 0:38
mveOriginalGriff28-Jan-15 0:38 
AnswerRe: Insert data from feed to sql table Pin
ZurdoDev28-Jan-15 3:45
professionalZurdoDev28-Jan-15 3:45 
QuestionHelp in converting this C# console into C# winform Pin
Member 1032105927-Jan-15 22:01
Member 1032105927-Jan-15 22:01 
AnswerRe: Help in converting this C# console into C# winform Pin
OriginalGriff27-Jan-15 22:46
mveOriginalGriff27-Jan-15 22:46 
Member 10321059 wrote:
where should I put the WHILE LOOP part from C# console to C# winform?

You don't.
Instead, Winforms apps rely on events to "decide to do something" instead of just "waiting for it to happen". It's a totally different execution model, and you can;t just "pick up" console based code and expect it to work as a winforms based application: the basic processing stuff my be the same (or at least similar) but the way the whole program is "hooked together" is very, very different.
For example, in a console app, you are likely to print a prompt, and wait for a user to enter a filename - and nothing else will happen until the user presses ENTER to indicate he is finished. That doesn't happen with WinForms apps: the user can type, edit, go do something else; a timer might "chip in" to make the code do something at a specific time; your Socket might signal "I got data!" and your code process it.

You can't just "convert a console app to WinForms" - you will have to think about how your console app is working, and what it is doing, and then consider how that fits into the Winforms execution model.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

QuestionAdding arraylist elements but some must be -1 Pin
Mac20nine26-Jan-15 13:54
Mac20nine26-Jan-15 13:54 
AnswerRe: Adding arraylist elements but some must be -1 Pin
Pete O'Hanlon26-Jan-15 20:12
mvePete O'Hanlon26-Jan-15 20:12 
AnswerRe: Adding arraylist elements but some must be -1 Pin
OriginalGriff26-Jan-15 20:14
mveOriginalGriff26-Jan-15 20:14 

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.