Click here to Skip to main content
15,897,187 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Nothing happen:

Try

sUNAME = Trim(TextBox1.Text)
sPass = Trim(TextBox2.Text)

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
If dr.HasRows = 0 Then
MsgBox("Invalid User or Password, Try Again", vbCritical, "Login Error")
TextBox2.Clear()
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = Len(TextBox1.Text)
TextBox1.Focus()
Exit Sub
Else
While dr.Read()
a = dr.Item("uname")
b = dr.Item("upwd")
If sUNAME = a And sPass = b Then
sid = dr.Item("uid")
ProgressBar1.Visible = True
valid = True

End If
End While
End If

dr.Close()
Catch ex As Exception
MsgBox(ex.Message)
Finally
conn.Close()
cmd = Nothing
End Try

form closing event:
sUNAME = String.Empty
sPass = String.Empty
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 
GeneralRe: i geting hresutl exception error with crystal report with vb.net Pin
Jigneshjpatel10-Sep-08 2:29
Jigneshjpatel10-Sep-08 2:29 
GeneralRe: i geting hresutl exception error with crystal report with vb.net Pin
Dave Kreskowiak10-Sep-08 7:11
mveDave Kreskowiak10-Sep-08 7:11 

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.