Hi All,
Great, I finally found an active forum.
In my project a user can select an item to view online. This is not the complete code but gives the general idea.
Dim frmB As New frmBrowser
Then of course I open the browser when needed.
frmB.Show
I want to make sure that frmB hasn't already been created before opening another so the user doesn't end up with multiple browsers if they minimize instead of closing, before selecting another link. I tried setting a public variable to 1 when a browser was opened and to 0 when closed. Then doing
If(BrowserOpen = 1) Then
Unload frmB
End If
I also tried
If(BrowserOpen = 1) Then
Navigate to the link instead of opening a new browser.
Else
open a new browser
The Pub variable values worked but I still end up with a new browser each time. Any thoughts?
Thanks
Grizz2
Great, I finally found an active forum.
In my project a user can select an item to view online. This is not the complete code but gives the general idea.
Dim frmB As New frmBrowser
Then of course I open the browser when needed.
frmB.Show
I want to make sure that frmB hasn't already been created before opening another so the user doesn't end up with multiple browsers if they minimize instead of closing, before selecting another link. I tried setting a public variable to 1 when a browser was opened and to 0 when closed. Then doing
If(BrowserOpen = 1) Then
Unload frmB
End If
I also tried
If(BrowserOpen = 1) Then
Navigate to the link instead of opening a new browser.
Else
open a new browser
The Pub variable values worked but I still end up with a new browser each time. Any thoughts?
Thanks
Grizz2