Print Page | Close Window

c# .net

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10216
Printed Date: 28 March 2026 at 6:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: c# .net
Posted By: ziwez0
Subject: c# .net
Date Posted: 29 April 2004 at 10:32am

Whats wrong with this little beauty

private void button1_Click(object sender, System.EventArgs e)

{

User = "Doggie";

Pass = "ABCD";

if ((textBox1.Text ==User)&& (textBox2.Text ==Pass))

Form2 myfrom = new Form2();

myform.ShowDialog();

}

 

-

David



-------------
If anything takes long to do its worth doing.



Replies:
Posted By: Leeb65
Date Posted: 29 April 2004 at 10:38am

if ((textBox1.Text ==User)&& (textBox2.Text ==Pass))

{

Form2 myfrom = new Form2();

myform.ShowDialog();

}

you need the brackets.



-------------
Lee

http://www.rheinsitemedia.de">


Posted By: ziwez0
Date Posted: 29 April 2004 at 10:41am

Opps,

cheers!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net