C# build error when creating a facebook appC# build error: missing semicolon when creating a login function for a Facebook app"

1 day ago 1
ARTICLE AD BOX
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e)string username = textBox1.Text; string password = textBox2.Text;if (username == "admin" && password == "admin123") { MessageBox.Show("ලොගින් එක සාර්ථකයි!"); } else { MessageBox.Show("යූසර් නේම් එක හෝ පාස්වර්ඩ් එක වැරදියි."); }

Error 1 ; expected C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 20 63 WindowsFormsApplication1

Error 2 Invalid token 'if' in class, struct, or interface member declaration C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 21 33 WindowsFormsApplication1

Error 3 Invalid token '==' in class, struct, or interface member declaration C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 21 46 WindowsFormsApplication1Error 4 Invalid token '==' in class, struct, or interface member declaration C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 21 69 WindowsFormsApplication1

Error 5 Invalid token '(' in class, struct, or interface member declaration C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 23 20 WindowsFormsApplication1Error 6 A namespace cannot directly contain members such as fields or methods C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 25 1 WindowsFormsApplication1Error 7 } expected C:\Users\User\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 28 2 WindowsFormsApplication1

Read Entire Article