Posts by isaque • 1,367 points
52 posts
-
0
votes4
answers1643
viewsA: Variable in message box c#
Creating the variable outside any method will solve the problem: public partial class Form1 : Form { private int c; public Form1() { InitializeComponent(); c = 23; } private void…
-
3
votes2
answers880
viewsQ: C# - How to check if a string has only spaces?
The propgram reads all lines of a file, and I have to check if in this line that he is reading there are only spaces, because if there are only spaces in it, it will be considered invalid by the…