Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 132,363 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,259 people online right now. Registration is fast and FREE... Join Now!




to create login form

 
Reply to this topicStart new topic

to create login form, i m making a login form in c# using sql server as my back end but im f

mamtabaghel
post 30 Aug, 2008 - 10:30 AM
Post #1


New D.I.C Head

*
Joined: 30 Aug, 2008
Posts: 6



Thanked 1 times
My Contributions


csharp

private void button1_Click(object sender, EventArgs e)
{
string username;
string password;

if (username ==textBox1.Text)
{
if (password ==textBox1.Text )
{
Form1 myform = new Form1();
myform.Close();
}
else
{
Application.Exit();
}
}

}


Mod Edit: Please use code tags when posting your code. Code tags are used like so => code.gif

Thanks,
PsychoCoder smile.gif
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 30 Aug, 2008 - 10:43 AM
Post #2


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,026



Thanked 16 times

Dream Kudos: 950
My Contributions


Please post your code like this
IPB Image

You are not giving any explanation of your problem just code. Please give a good detailed explanation. If there are any error messages, please post them.

This post has been edited by gbertoli3: 30 Aug, 2008 - 10:46 AM
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 30 Aug, 2008 - 11:32 AM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:

  • Post the code you're having problems with
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 05:01AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month