Is the try-catch really necessary just for showing a form?
Thanks
Dave
  ----- Original Message ----- 
  From: Don Roberts 
  To: [email protected] 
  Sent: Thursday, April 07, 2005 3:26 PM
  Subject: Re: [vbhelp] Navigating Forms


  Hi Brian, and welcome to .NET. You're right, it's completely
  different. Here's how to show a new form in .NET:


  Private Sub viewOutput()

  Dim frmOutput As New frmViewOutput  'declare a new output form

     Try
          'load the output window 

        frmOutput.Visible = True   
        frmOutput.TopMost = True

     Catch soe As System.ObjectDisposedException

         StatusBarPanel1.Text = "Window no longer exists"

     Finally

         frmOutput = Nothing

     End Try

  End Sub


  On Apr 7, 2005 3:26 PM, Brian Scott Gerrard <[EMAIL PROTECTED]> wrote:
  > 
  > 
  > Hi , haven't used vb since version 6 and now it looks completely
  > different.  I'm tryin to just navigate from one form to the other that
  > I created in the form designer.  How do I call that 2nd form???  I
  > have declared stuff and done all this other b.s.  I know its gotta be
  > simple like 2 lines of code....
  > 
  > '// =======================================================
  >     Rules : http://ReliableAnswers.com/List/Rules.asp
  >     Home  : http://groups.yahoo.com/group/vbHelp/
  >     =======================================================
  >     Post  : [email protected]
  >     Join  : [EMAIL PROTECTED]
  >     Leave : [EMAIL PROTECTED]
  > '// =======================================================
  > 
  > Yahoo! Groups Links
  > 
  > 
  > 
  > 
  > 


  -- 
  Don Roberts - [EMAIL PROTECTED]
  http://www.drscripting.com
  http://www.freakingidiot.com



  '// =======================================================
      Rules : http://ReliableAnswers.com/List/Rules.asp
      Home  : http://groups.yahoo.com/group/vbHelp/
      =======================================================
      Post  : [email protected]
      Join  : [EMAIL PROTECTED]
      Leave : [EMAIL PROTECTED]
  '// =======================================================




------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]




'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to