Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Adding arraylist elements but some must be -1 Pin
V.27-Jan-15 0:16
professionalV.27-Jan-15 0:16 
QuestionDo you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
shiv Mohan26-Jan-15 9:33
shiv Mohan26-Jan-15 9:33 
AnswerRe: Do you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
ZurdoDev26-Jan-15 10:10
professionalZurdoDev26-Jan-15 10:10 
GeneralRe: Do you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
John C Rayan26-Jan-15 10:33
professionalJohn C Rayan26-Jan-15 10:33 
AnswerRe: Do you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
Mycroft Holmes26-Jan-15 11:45
professionalMycroft Holmes26-Jan-15 11:45 
AnswerRe: Do you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
Eddy Vluggen27-Jan-15 7:26
professionalEddy Vluggen27-Jan-15 7:26 
GeneralRe: Do you prefer using Microsoft Enterprise Data Block over EF 6.0 Pin
Mycroft Holmes27-Jan-15 13:41
professionalMycroft Holmes27-Jan-15 13:41 
QuestionThe form appeared in debug mode even though I deleted it. Pin
WrightSfiso25-Jan-15 22:36
WrightSfiso25-Jan-15 22:36 
AnswerRe: The form appeared in debug mode even though I deleted it. Pin
OriginalGriff25-Jan-15 22:45
mveOriginalGriff25-Jan-15 22:45 
GeneralRe: The form appeared in debug mode even though I deleted it. Pin
WrightSfiso25-Jan-15 22:49
WrightSfiso25-Jan-15 22:49 
GeneralRe: The form appeared in debug mode even though I deleted it. Pin
OriginalGriff25-Jan-15 22:57
mveOriginalGriff25-Jan-15 22:57 
GeneralRe: The form appeared in debug mode even though I deleted it. Pin
WrightSfiso26-Jan-15 2:34
WrightSfiso26-Jan-15 2:34 
GeneralRe: The form appeared in debug mode even though I deleted it. Pin
OriginalGriff26-Jan-15 3:55
mveOriginalGriff26-Jan-15 3:55 
QuestionCustom properties OpenXml C# Pin
Member 1139687825-Jan-15 19:57
Member 1139687825-Jan-15 19:57 

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.