Click here to Skip to main content
16,010,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Serialization.... Pin
Dave Kreskowiak2-Jun-07 9:06
mveDave Kreskowiak2-Jun-07 9:06 
AnswerRe: Serialization.... Pin
Navneet Hegde3-Jun-07 21:02
Navneet Hegde3-Jun-07 21:02 
QuestionCreate a login username & password Pin
ravenathan1-Jun-07 23:02
ravenathan1-Jun-07 23:02 
AnswerRe: Create a login username & password Pin
Christian Graus1-Jun-07 23:22
protectorChristian Graus1-Jun-07 23:22 
GeneralRe: Create a login username & password Pin
ravenathan1-Jun-07 23:40
ravenathan1-Jun-07 23:40 
GeneralRe: Create a login username & password Pin
Christian Graus2-Jun-07 0:33
protectorChristian Graus2-Jun-07 0:33 
GeneralRe: Create a login username & password Pin
ravenathan2-Jun-07 1:02
ravenathan2-Jun-07 1:02 
AnswerRe: Create a login username and password Pin
Rupesh Kumar Swami2-Jun-07 0:19
Rupesh Kumar Swami2-Jun-07 0:19 
hi neal,

takes two text box(TextBoxlogin,TextBoxpassword) and on click event of button use following code
Dim q As String
Dim oleadapter As OleDbDataAdapter
Dim mdataset As New DataSet

If TextBoxlogin.Text = "" or TextBoxpassword.Text = "" Then
MsgBox("Enter Login ID & Password ", MsgBoxStyle.Information, mdGlobal.myMessage)
TextBoxlogin.Focus()
TextBoxlogin.Text = ""
TextBoxpassword.Text = ""
Exit Sub
End If

try
q = "select * from login where username='" & TextBoxlogin.Text.Trim & "' and password='" & TextBoxpassword.Text.Trim & "';"
oleadapter = New OleDbDataAdapter(q, mdGlobal.conn)
'where mdglobal is module and conn is oledb connection object
oleadapter.Fill(mdataset) ' mdataset is dataset

If mdataset.Tables(0).Rows.Count > 0 Then

loginok = True
Me.Close()
mainform.show
Else
MsgBox("Wrong Login ID / Password ", MsgBoxStyle.Information, mdGlobal.myMessage)
TextBoxlogin.Focus()
TextBoxlogin.Text = ""
TextBoxpassword.Text = ""
End If
Catch ex as exception
msgbox (ex.message.tostring)
End Try

hope this helps




Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

GeneralRe: Create a login username and password Pin
ravenathan2-Jun-07 0:55
ravenathan2-Jun-07 0:55 
QuestionSystem.Drawing.ImageFormatConverter.. VB.NET Help! Pin
LachlanGro1-Jun-07 22:19
LachlanGro1-Jun-07 22:19 
AnswerRe: System.Drawing.ImageFormatConverter.. VB.NET Help! Pin
Sonia Gupta1-Jun-07 22:27
Sonia Gupta1-Jun-07 22:27 
GeneralRe: System.Drawing.ImageFormatConverter.. VB.NET Help! Pin
LachlanGro1-Jun-07 22:32
LachlanGro1-Jun-07 22:32 
GeneralRe: System.Drawing.ImageFormatConverter.. VB.NET Help! Pin
Christian Graus1-Jun-07 23:27
protectorChristian Graus1-Jun-07 23:27 
QuestionHow can i use visual basic for application... Pin
koolprasad20031-Jun-07 21:11
professionalkoolprasad20031-Jun-07 21:11 
AnswerRe: How can i use visual basic for application... Pin
ips_sun2-Jun-07 0:47
ips_sun2-Jun-07 0:47 
GeneralRe: How can i use visual basic for application... Pin
koolprasad20032-Jun-07 1:38
professionalkoolprasad20032-Jun-07 1:38 
AnswerRe: How can i use visual basic for application... Pin
Sonia Gupta2-Jun-07 2:03
Sonia Gupta2-Jun-07 2:03 
GeneralRe: How can i use visual basic for application... Pin
koolprasad20032-Jun-07 2:17
professionalkoolprasad20032-Jun-07 2:17 
QuestionHow to integrate Crystal report XI with .net 2003 ? Pin
Jeneesh K. Velayudhan1-Jun-07 19:48
Jeneesh K. Velayudhan1-Jun-07 19:48 
Questionregistry sub keys Pin
Sonia Gupta1-Jun-07 19:00
Sonia Gupta1-Jun-07 19:00 
Questioncommit transaction Pin
kvijayajyothy1-Jun-07 18:34
kvijayajyothy1-Jun-07 18:34 
AnswerRe: commit transaction Pin
Sonia Gupta1-Jun-07 19:27
Sonia Gupta1-Jun-07 19:27 
QuestionHow can i log off my pc using vb.net.... Pin
koolprasad20031-Jun-07 18:20
professionalkoolprasad20031-Jun-07 18:20 
AnswerRe: How can i log off my pc using vb.net.... Pin
Sathesh Sakthivel1-Jun-07 18:31
Sathesh Sakthivel1-Jun-07 18:31 
QuestionRe: How can i log off my pc using vb.net.... Pin
Sonia Gupta1-Jun-07 20:26
Sonia Gupta1-Jun-07 20:26 

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.