Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a form with 5 different web browsers and depending on which site I need to navigate to I invoke that particular web browsers bringtofront method and sendtoback on all the others; thus making the appropriate one visible. I need a way to determine which one I have on the top.

 

Is it the z-order? How do I interrogate a web browser control's z-order?

 

Any thoughts?

Thanks

Ben

Posted
There probably is a way to find it out, but I don't know of any, so what you could do is have a variable that you set each time you bring on to front, and then that will keep track of which one is on top.
Posted
Yeah, that's a good idea and I'm sure it would work. However, if I could find a way around keeping track of a public variable that would be ideal. I can't find any z-order assistance in the .NET help files...there's a surprise.
  • *Experts*
Posted
I don't think a "TopMost" properity is available. But, instead of using .BringToFront why not set their Visible properity to True or False. Then its an easy task to check which one is visible or not.

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

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...