Click here to Skip to main content
15,903,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: pls help! Pin
Guffa1-Sep-07 22:04
Guffa1-Sep-07 22:04 
Questionxml & Vb.net Pin
MrScruff6661-Sep-07 13:03
MrScruff6661-Sep-07 13:03 
AnswerRe: xml & Vb.net Pin
Christian Graus1-Sep-07 13:20
protectorChristian Graus1-Sep-07 13:20 
QuestionConnection string for an access database Pin
Mr Oizo1-Sep-07 8:46
Mr Oizo1-Sep-07 8:46 
AnswerRe: Connection string for an access database Pin
jensenx1-Sep-07 20:08
jensenx1-Sep-07 20:08 
AnswerRe: Connection string for an access database Pin
Vasudevan Deepak Kumar1-Sep-07 23:08
Vasudevan Deepak Kumar1-Sep-07 23:08 
GeneralRe: Connection string for an access database Pin
Mr Oizo2-Sep-07 0:01
Mr Oizo2-Sep-07 0:01 
Questionplz help me in login form in vb.net Pin
asifullahkhan1-Sep-07 7:52
asifullahkhan1-Sep-07 7:52 
i m inserting the code here, i want to add the administrator and general users and also to provide the facility to change his/ her password or name.
so plz help me...
________________________________________________________________
Public Class FrmLogin

Dim dsetsearch As New DataSet
Dim dsetusertype As New DataSet

Private Sub FrmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
dsetsearch.Clear()
If Me.txtuname.Text = "" And Me.txtupassword.Text = "" Then
MsgBox("User Name or Password not found", MsgBoxStyle.Information)
Exit Sub
End If
If Me.txtuname.Text <> "asif" And Me.txtuname.Text <> "imran" Then
MsgBox("Invalid User Name", MsgBoxStyle.Information)
Exit Sub
End If
gridfill("select * from Login where UserName = '" & Me.txtuname.Text & "'")
adp.SelectCommand.ExecuteNonQuery()
cn.Close()
adp.Fill(dsetsearch, "Login")

If Me.txtupassword.Text = CType(dsetsearch.Tables(0).Rows(0).Item(1), String) Then
Frmstartup.Show()
Me.Hide()
Else
MsgBox("Invalid User Name or Password ", MsgBoxStyle.Information)

End If

End Sub

Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click
End
End Sub

Private Sub txtuname_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtuname.KeyPress
If Char.IsLetter(e.KeyChar) = False Then
If e.KeyChar = CChar(ChrW(Keys.Back)) Or e.KeyChar = CChar(ChrW(Keys.Space)) Then
e.Handled = False
Else
e.Handled = True
End If
End If
End Sub

End Class


asif rafiq

AnswerRe: plz help me in login form in vb.net Pin
Christian Graus1-Sep-07 13:56
protectorChristian Graus1-Sep-07 13:56 
GeneralRe: plz help me in login form in vb.net Pin
Vasudevan Deepak Kumar1-Sep-07 23:11
Vasudevan Deepak Kumar1-Sep-07 23:11 
AnswerRe: plz help me in login form in vb.net Pin
Vasudevan Deepak Kumar1-Sep-07 23:10
Vasudevan Deepak Kumar1-Sep-07 23:10 
Questionscrollbar for a panel! Pin
jensenx31-Aug-07 23:37
jensenx31-Aug-07 23:37 
AnswerRe: scrollbar for a panel! Pin
Vasudevan Deepak Kumar1-Sep-07 0:36
Vasudevan Deepak Kumar1-Sep-07 0:36 
GeneralRe: scrollbar for a panel! Pin
Dave Kreskowiak1-Sep-07 4:33
mveDave Kreskowiak1-Sep-07 4:33 
AnswerRe: scrollbar for a panel! Pin
Dave Kreskowiak1-Sep-07 4:33
mveDave Kreskowiak1-Sep-07 4:33 
GeneralRe: scrollbar for a panel! Pin
jensenx1-Sep-07 18:20
jensenx1-Sep-07 18:20 
QuestionHow to convert tif file to pdf using vb 6.0? Pin
sivaraman_sankaranarayanan31-Aug-07 22:49
sivaraman_sankaranarayanan31-Aug-07 22:49 
AnswerRe: How to convert tif file to pdf using vb 6.0? Pin
Vasudevan Deepak Kumar1-Sep-07 0:37
Vasudevan Deepak Kumar1-Sep-07 0:37 
QuestionHow to use visual basic to transfer 8 bits of data Pin
NYCL31-Aug-07 17:42
NYCL31-Aug-07 17:42 
AnswerRe: How to use visual basic to transfer 8 bits of data Pin
Dave Kreskowiak1-Sep-07 4:29
mveDave Kreskowiak1-Sep-07 4:29 
GeneralRe: How to use visual basic to transfer 8 bits of data [modified] Pin
sbit1-Sep-07 15:20
sbit1-Sep-07 15:20 
QuestionInitiate Excel to run in the background Pin
frankiebaby231-Aug-07 12:43
frankiebaby231-Aug-07 12:43 
AnswerRe: Initiate Excel to run in the background Pin
eyes200731-Aug-07 20:06
eyes200731-Aug-07 20:06 
GeneralRe: Initiate Excel to run in the background Pin
frankiebaby25-Sep-07 13:31
frankiebaby25-Sep-07 13:31 
AnswerRe: Initiate Excel to run in the background Pin
Vasudevan Deepak Kumar1-Sep-07 2:43
Vasudevan Deepak Kumar1-Sep-07 2:43 

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.