Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

MDI Parents and free flowing windows in VB .Net


  • Please log in to reply
5 replies to this topic

#1 aommaster

aommaster

    I !<3 malware


  • Malware Response Team
  • 5,294 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Dubai
  • Local time:12:13 AM

Posted 22 June 2009 - 10:46 AM

Hi guys!

Two questions regarding VB .Net:

  • I have an MDI parent window. Is it possible to set the standard grey background to transparent without changing the opacity of the form (I don't want to change that because all the controls on the form become transparent)? So far, I've managed to change the colour of the background, but I was wondering whether I could take it one step further and transparent-ify it :thumbsup:
  • Relating to the same MDI program above, I have a number of different child windows that pop up. I wanted to know how easy/difficult it would be to create:
  • a click-through window for the parent MDI
  • A tiny MDI parent which only contains the menu bar at the top, but it would allow the child MDI's to 'escape' the bounds of the program window, in the sense that it would be outside the program's window all over the desktop. I'm thinking that this would require an almost complete re-write of the program but I'd like to make sure.
Thanks guys!

My website: http://aommaster.com
unite_blue.png
Please do not send me PM's requesting for help. The forums are there for a reason : )
If I am helping you and do not respond to your thread for 48 hours, please send me a PM


BC AdBot (Login to Remove)

 


#2 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer


  • Malware Response Team
  • 12,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:01:13 PM

Posted 22 June 2009 - 11:23 AM

Hello, aommaster[ :trumpet:

1.I have an MDI parent window. Is it possible to set the standard grey background to transparent without changing the opacity of the form (I don't want to change that because all the controls on the form become transparent)? So far, I've managed to change the colour of the background, but I was wondering whether I could take it one step further and transparent-ify it :thumbsup:

I don't believe so. :flowers:

Wouldn't this confuse your users anyway? They'd try to drag one of the children outside of the parent because they look just like regular windows and it wouldn't work.....

2. Relating to the same MDI program above, I have a number of different child windows that pop up. I wanted to know how easy/difficult it would be to create:

  • a click-through window for the parent MDI
  • A tiny MDI parent which only contains the menu bar at the top, but it would allow the child MDI's to 'escape' the bounds of the program window, in the sense that it would be outside the program's window all over the desktop. I'm thinking that this would require an almost complete re-write of the program but I'd like to make sure.
Thanks guys!

I'm unsure what a "click through" window is....
The second one is not possible. If you want that, just don't use MDI. Change the code that opens the child windows to just not set the MDIParent property. When you call show() on those forms, they're show up as full-fledged forms outside of MDI. You shouldn't have to rewrite all that much unless the children reference members in the parent (Which they shouldn't if the app is well designed :whsitle:)

Hope that helps,
Billy3

Edited by Billy O'Neal, 22 June 2009 - 11:23 AM.

Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#3 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer


  • Malware Response Team
  • 12,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:01:13 PM

Posted 22 June 2009 - 11:26 AM

Oh... sorry for double post -- make sure you turn off the "MDIParent" property on the parent form.

Billy3
Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#4 aommaster

aommaster

    I !<3 malware

  • Topic Starter

  • Malware Response Team
  • 5,294 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Dubai
  • Local time:12:13 AM

Posted 22 June 2009 - 11:27 AM

Hi Billy!

Thanks for your reply :trumpet: I was just poking around with VB .Net (because it's fun :thumbsup:). I think I'll abandon that search then. By the way: A click-through window allows clicks to go through them. I've never really looked into designing one because it gets a little messy and a little irritating that there's nothing to catch your clicks if you miss (so to speak) and you start running other applications on your desktop or opening random links from the page behind you.

Edit: In relation to this post:

make sure you turn off the "MDIParent" property on the parent form

.
I learnt that the hard way after I couldn't change the parent window's background colour. Had me stumped for a good 30 minutes :flowers:

Thanks again Billy!

Edited by aommaster, 22 June 2009 - 11:28 AM.

My website: http://aommaster.com
unite_blue.png
Please do not send me PM's requesting for help. The forums are there for a reason : )
If I am helping you and do not respond to your thread for 48 hours, please send me a PM


#5 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer


  • Malware Response Team
  • 12,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:01:13 PM

Posted 22 June 2009 - 11:34 AM

This wouldn't be for a um... mutual project of ours would it?

Billy3
Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#6 aommaster

aommaster

    I !<3 malware

  • Topic Starter

  • Malware Response Team
  • 5,294 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Dubai
  • Local time:12:13 AM

Posted 22 June 2009 - 11:37 AM

Perhaps ... :thumbsup:

Currently, I don't think of it as mutual, since most of the coding is yours. I've just poked around, trying to get the hang of what VB .Net is all about, since I hate to see code that's taken a long time to develop go to waste.

Currently, that program now has a timer function that allows you to reset a person's timer, so you don't need to check the topic date, as well as a post preview function that parses BBCode into HTML syntax and shows that to you (this function still needs testing though. I've put it through a decent amount, and it seems to work).

PM me if you'd like more info on this project :flowers:

My website: http://aommaster.com
unite_blue.png
Please do not send me PM's requesting for help. The forums are there for a reason : )
If I am helping you and do not respond to your thread for 48 hours, please send me a PM





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users