我正在爲郵件系統創建一個vb應用程序,通過郵件快速發送cv。當我創建一個複選框來保存我的電子郵件和密碼,但它給了我一個錯誤的用戶名和密碼錯誤代碼說用戶名是不是在這個代碼My.Settings.username
窗口申請Visual Basic用戶名密碼錯誤
If email.Checked = True Then
My.Settings.username = usernamebox.Text
My.Settings.Save()
My.Settings.Reload()
End If
If pass.Checked = True Then
My.Settings.password = passwordbox.Text
My.Settings.Save()
My.Settings.Reload()
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
usernamebox.Text = My.Settings.username
passwordbox.Text = My.Settings.password
End Sub
Private Sub Clear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Clear.Click
My.Settings.password = passwordbox.Text
My.Settings.Reset()
My.Settings.Reload()
My.Settings.username = usernamebox.Text
My.Settings.Reset()
My.Settings.Reload()
usernamebox.Text = Nothing
passwordbox.Text = Nothing
End Sub
的成員,是給我一個錯誤,並且My.Settings.password
還請指導我如何添加BCC(密件抄送)函數在VB應用程序....
請勿將鏈接發佈到外部網站。發佈你的失敗代碼清楚地標識出它的失敗 – Steve
編輯的先生請指導我Steve先生........ –
你是如何設置你的My.Settings? – cybermonkey