Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've searched for people with this problem and haven't found an answer. I have a public shared form and when I try to show it, it blows up.

 

if Globals.frmContact = *Nothing
  Globals.frmContact = frmContact New()
  Addhandler Globals.frmContact Closed HandlerSr(RefreshForm)
  Globals.frmContact.MDIParent = *this.MDIParent
endif

Try
 Globals.frmContact.Show()
 Globals.frmContact.Focus()
Catch Name( z ) Type(System.Exception)
 Globals.frmContact.Dispose()
 Globals.frmContact = frmContact New()
 Globals.frmContact.Show()
 Globals.frmContact.Focus()
EndTry

 

I know the code is different, it's a different language, but very much similar to VB.net. If anyone has any clues I'd greatly appreciate it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...