Results 1 to 5 of 5

Thread: Prevent Form from loading [Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Question Prevent Form from loading [Resolved]

    I have a proplexing problem.....

    [code]

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

    Dim Check As Integer, filepath As String
    filepath = "C:\Help.txt"
    Check = Len(Dir$(filepath))
    If Check = 0 Then
    Dim Frm As New Form2()
    Frm.ShowDialog()
    End If

    End Sub

    This code does it's job of throwing the From2 up if the file don't exist but on Form2 using a button is it possible to stop Form1 from loading?

    I can get the Form2 to close with Me.Close() but it still loads Form1 after Form2 closes.
    Last edited by teamdad; Jul 2nd, 2004 at 10:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width