Click here to Skip to main content
15,923,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to write amount in words Pin
parth.p22-Sep-07 3:11
parth.p22-Sep-07 3:11 
GeneralRe: How to write amount in words Pin
Dave Kreskowiak22-Sep-07 3:23
mveDave Kreskowiak22-Sep-07 3:23 
GeneralRe: How to write amount in words Pin
Swiss Mantoro24-Sep-07 19:43
Swiss Mantoro24-Sep-07 19:43 
AnswerRe: How to write amount in words Pin
Colin Angus Mackay22-Sep-07 1:54
Colin Angus Mackay22-Sep-07 1:54 
QuestionCheckbox on Datagrid? Pin
Widgets21-Sep-07 14:55
Widgets21-Sep-07 14:55 
AnswerRe: Checkbox on Datagrid? Pin
Gary Bigman27-Sep-07 5:47
Gary Bigman27-Sep-07 5:47 
QuestionClickOnce and File Associations Problem Pin
Kschuler21-Sep-07 10:55
Kschuler21-Sep-07 10:55 
QuestionUnload Event - VB2005 Pin
parth.p21-Sep-07 7:19
parth.p21-Sep-07 7:19 
Hi,
I recently started using VB2005 and i find it very confusing, in VB6 i used to unload form using UNLOAD ME but it doesn't work in 2005, plus i tried Me.Close() and Me.Dispose() as well but it closes my application, rather than form.

Here's the code i'm working on.


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim usname As String<br />
        usname = StrConv(TextBox1.Text, VbStrConv.ProperCase)<br />
        If usname = "Admin" And TextBox2.Text = "pass" Then<br />
            MsgBox("Welcome to Form two", MsgBoxStyle.Information + MsgBoxStyle.OkOnly)<br />
            Me.Close()<br />
            Form2.Show()<br />
        Else<br />
            MsgBox("Wrong Login details", MsgBoxStyle.Exclamation + MsgBoxStyle.RetryCancel)<br />
            If MsgBoxResult.Retry Then<br />
                TextBox1.Text = ""<br />
                TextBox2.Text = ""<br />
                TextBox1.Focus()<br />
            ElseIf MsgBoxResult.Cancel Then<br />
                End<br />
            End If<br />
        End If<br />
    End Sub


can someone please help me out with this...


Thanks.

Parth Patel
AnswerRe: Unload Event - VB2005 Pin
Dave Kreskowiak21-Sep-07 8:21
mveDave Kreskowiak21-Sep-07 8:21 
GeneralRe: Unload Event - VB2005 Pin
parth.p22-Sep-07 0:36
parth.p22-Sep-07 0:36 
GeneralRe: Unload Event - VB2005 Pin
Dave Kreskowiak22-Sep-07 3:11
mveDave Kreskowiak22-Sep-07 3:11 
Questionhow to pass all the data from datagridview1 to datagridview2 vb.net Pin
Abbhie21-Sep-07 7:10
Abbhie21-Sep-07 7:10 
AnswerRe: how to pass all the data from datagridview1 to datagridview2 vb.net Pin
nlarson1121-Sep-07 9:01
nlarson1121-Sep-07 9:01 
GeneralRe: how to pass all the data from datagridview1 to datagridview2 vb.net Pin
Abbhie21-Sep-07 17:17
Abbhie21-Sep-07 17:17 
Questionworking with Forms Pin
sainipraveen0421-Sep-07 6:39
sainipraveen0421-Sep-07 6:39 
AnswerRe: working with Forms Pin
parth.p21-Sep-07 7:32
parth.p21-Sep-07 7:32 
Questionworking on charts in vb.net Pin
Abbhie21-Sep-07 6:07
Abbhie21-Sep-07 6:07 
AnswerRe: working on charts in vb.net Pin
DanB198321-Sep-07 6:18
DanB198321-Sep-07 6:18 
GeneralRe: working on charts in vb.net Pin
Abbhie21-Sep-07 6:24
Abbhie21-Sep-07 6:24 
GeneralRe: working on charts in vb.net Pin
DanB198321-Sep-07 6:28
DanB198321-Sep-07 6:28 
QuestionVB.NET Events Pin
Richard J. Hanney21-Sep-07 3:47
Richard J. Hanney21-Sep-07 3:47 
AnswerRe: VB.NET Events Pin
Tom Deketelaere21-Sep-07 4:18
professionalTom Deketelaere21-Sep-07 4:18 
AnswerRe: VB.NET Events Pin
nlarson1121-Sep-07 4:20
nlarson1121-Sep-07 4:20 
GeneralRe: VB.NET Events Pin
Richard J. Hanney22-Sep-07 1:37
Richard J. Hanney22-Sep-07 1:37 
QuestionNeed help using DocumentProperties Pin
BS_Schimmel21-Sep-07 3:38
BS_Schimmel21-Sep-07 3:38 

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.