Click here to Skip to main content
15,896,348 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
jzonthemtn10-Sep-08 2:48
jzonthemtn10-Sep-08 2:48 
GeneralRe: How to Send Mail in VB.Net 2005 ? Pin
Chintu Shah10-Sep-08 3:07
Chintu Shah10-Sep-08 3:07 
GeneralRe: How to Send Mail in VB.Net 2005 ? Pin
Ashfield10-Sep-08 3:25
Ashfield10-Sep-08 3:25 
QuestionRe: How to Send Mail in VB.Net 2005 ? Pin
jzonthemtn10-Sep-08 7:40
jzonthemtn10-Sep-08 7:40 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
Rajesh Anuhya10-Sep-08 5:51
professionalRajesh Anuhya10-Sep-08 5:51 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
Christian Graus10-Sep-08 8:32
protectorChristian Graus10-Sep-08 8:32 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
NewLaw10-Sep-08 10:39
NewLaw10-Sep-08 10:39 
QuestionRe-Login Problem Pin
lahsiv10-Sep-08 2:32
lahsiv10-Sep-08 2:32 
hi friends,

I have made login form.After login when i logout then again Re-login that time without filling username and password show main form during clik on login button.
i want that when i logout then login form show with blank text boxes and when click on login button with blank textboxes gave message(fill text boxes)

Plz sort it out.

I am using following coding:
Code:

Try

conn.Open()

cmd = New SqlCommand("select * from usrs where uname = @user and upwd = @pwd", conn)
cmd.Parameters.AddWithValue("@user", Trim(TextBox1.Text))
cmd.Parameters.AddWithValue("@pwd", Trim(TextBox2.Text))
dr = cmd.ExecuteReader

While dr.Read()
a = dr.Item("upwd")
b = dr.Item("uname")
If TextBox1.Text = a And TextBox1.Text = b Then
sid = dr.Item("uid")
ProgressBar1.Visible = True
'Button1.Visible = False
'Button2.Visible = False
valid = True
Me.TextBox1.Clear()
Me.TextBox2.Clear()
End If
End While
dr.Close()
Catch ex As Exception
MsgBox(ex.Message)
Finally
conn.Close()
cmd = Nothing
End Try

modified on Wednesday, September 10, 2008 8:51 AM

AnswerRe: Login Problem Pin
jzonthemtn10-Sep-08 2:44
jzonthemtn10-Sep-08 2:44 
GeneralRe: Login Problem Pin
lahsiv12-Sep-08 3:01
lahsiv12-Sep-08 3:01 
QuestionConvert Byte array into string... Pin
Pushpa Setty10-Sep-08 2:08
Pushpa Setty10-Sep-08 2:08 
AnswerRe: Convert Byte array into string... Pin
jzonthemtn10-Sep-08 2:47
jzonthemtn10-Sep-08 2:47 
QuestionCombining 3 datatables to 1 new datatable. Pin
_teh_10-Sep-08 1:25
_teh_10-Sep-08 1:25 
AnswerRe: Combining 3 datatables to 1 new datatable. Pin
Mycroft Holmes10-Sep-08 15:58
professionalMycroft Holmes10-Sep-08 15:58 
GeneralRe: Combining 3 datatables to 1 new datatable. Pin
_teh_12-Sep-08 5:10
_teh_12-Sep-08 5:10 
GeneralRe: Combining 3 datatables to 1 new datatable. Pin
Mycroft Holmes12-Sep-08 12:51
professionalMycroft Holmes12-Sep-08 12:51 
QuestionCreating Object Pin
Aman.Jen9-Sep-08 23:32
Aman.Jen9-Sep-08 23:32 
JokeRe: Creating Object Pin
Rajesh Anuhya10-Sep-08 0:17
professionalRajesh Anuhya10-Sep-08 0:17 
Questiondatagrideview with button column Pin
turkuman9-Sep-08 22:20
turkuman9-Sep-08 22:20 
AnswerRe: datagrideview with button column Pin
Rajesh Anuhya10-Sep-08 0:25
professionalRajesh Anuhya10-Sep-08 0:25 
QuestionAccessing Java script from activeX which is developed in VB6 Pin
Ravi Bhat 36509679-Sep-08 20:40
Ravi Bhat 36509679-Sep-08 20:40 
Questionproblem with collection and user control.., Please Help. Pin
Rajesh Anuhya9-Sep-08 20:27
professionalRajesh Anuhya9-Sep-08 20:27 
GeneralRe: problem with collection and user control.., Please Help. Pin
Rajesh Anuhya9-Sep-08 20:57
professionalRajesh Anuhya9-Sep-08 20:57 
Questioni geting hresutl exception error with crystal report with vb.net Pin
Jigneshjpatel9-Sep-08 19:18
Jigneshjpatel9-Sep-08 19:18 
AnswerRe: i geting hresutl exception error with crystal report with vb.net Pin
Dave Kreskowiak10-Sep-08 1:40
mveDave Kreskowiak10-Sep-08 1:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.