Is the code for console application and windows form application same? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is the code for console application and windows form application same?

I am learning C# and want to build apps by myself, will I be able to implement whatever I learn in console in form?

23rd May 2019, 8:47 PM
SaFFire1
SaFFire1 - avatar
1 Answer
+ 4
The basics are the same, that is, the way we write conditional, loops, classes, types etc. The difference will be obvious for I/O, in GUI programming input & output are interfaced by GUI controls and their properties (not limited to). GUI programming also introduce events, most interactions between human and GUI controls are possible through these events. It is these events that tells a certain control when human clicks on it, hover mouse on it, drag or drop something etc. To answer your question "will I be able to implement whatever I learn in console in form" I'd say parts of it, not all, because of the difference I wrote before. The basics are the same, so they are surely implementable. Hth, cmiiw
23rd May 2019, 9:13 PM
Ipang