I have a small issue that I can;t seem to figure out. I am useing a sub main() to start my app and to display a login form.... the problem that I am having is that weither the user clock "OK" or "Cancel" my result code is always windows.form.dialogresult.
I put a couple of msgbox's in place to test and make sure I didn't have the labels messed up or something like that...
Public Sub Main()
Dim LogIn As New LoginForm()
Dim result As DialogResult
result = LogIn.ShowDialog
If result = Windows.Forms.DialogResult.OK Then
'validate user here
Public Class LoginForm
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click