C# forms | Sololearn: Learn to code for FREE!


C# forms

how can i use input in c# forms( NOT CONSOLE). What code i need to use? thx

10/21/2017 9:16:49 AM


4 Answers

New Answer


Something like that? http://csharp.net-informations.com/gui/cs_forms.htm


I'm not sure what you really mean, but string comparison goes something like: string myString = "Vladimir"; string otherString = "vladimir"; // note different 'v' // Case sensitive comparison bool equality = myString.Equals(otherString, StringComparison.Ordinal); // equality = False // Case insensitive comparison bool equality = myString.Equals(otherString, StringComparison.OrdinalIgnoreCase); // equality = True Hope I get you right :)


i meant about a program which would ask any text from user and would compare it with predefined text in code. Like "write your name", the text field is opening, after filling the field and pressing "enter" the program will compare this text with mine