Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

個人帳號管理.vb 1009B

1234567891011121314151617181920212223242526
  1. Option Strict Off
  2. Public Class 個人帳號管理
  3. Private Sub Set_使用者資料()
  4. SQL_使用者資料()
  5. If dr.Read() Then
  6. 姓名_tb.Text = dr("姓名").ToString
  7. 帳號_tb.Text = dr("帳號").ToString
  8. 密碼_tb.Text = dr("密碼").ToString
  9. End If
  10. conn.Close() : dr.Close()
  11. End Sub
  12. Private Sub 個人帳號管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  13. FormBorderStyle = FormBorderStyle.SizableToolWindow
  14. Set_使用者資料()
  15. 姓名_tb.Enabled = False : 帳號_tb.Enabled = False
  16. End Sub
  17. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 修改_bt.Click
  18. If 姓名_tb.Text = "" Or 帳號_tb.Text = "" Or 密碼_tb.Text = "" Then
  19. MsgBox("輸入資料有誤")
  20. Else
  21. SQL_修改使用者權限管理表1() : conn.Close()
  22. MsgBox("修改完成")
  23. End If
  24. Set_使用者資料()
  25. End Sub
  26. End Class