BleepingComputer.com: MDI Parents and free flowing windows in VB .Net

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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

MDI Parents and free flowing windows in VB .Net

#1 User is offline   aommaster 

  • I !<3 malware
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 5,171
  • Joined: 08-June 08
  • Gender:Male
  • Location:Dubai

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://www.aommaster.com
Posted Image
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

All my help is free. However, if you would like to make a donation, then please click here.



#2 User is offline   Billy O'Neal 

  • Bleepin Engineer
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,079
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 22 June 2009 - 11:23 AM

Hello, aommaster[ :trumpet:

View Postaommaster, on Jun 22 2009, 11:46 AM, said:

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

Quote

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

This post has been edited by Billy O'Neal: 22 June 2009 - 11:23 AM


#3 User is offline   Billy O'Neal 

  • Bleepin Engineer
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,079
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

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

#4 User is offline   aommaster 

  • I !<3 malware
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 5,171
  • Joined: 08-June 08
  • Gender:Male
  • Location:Dubai

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:

Quote

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!

This post has been edited by aommaster: 22 June 2009 - 11:28 AM

My website: http://www.aommaster.com
Posted Image
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

All my help is free. However, if you would like to make a donation, then please click here.



#5 User is offline   Billy O'Neal 

  • Bleepin Engineer
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,079
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 22 June 2009 - 11:34 AM

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

Billy3

#6 User is offline   aommaster 

  • I !<3 malware
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 5,171
  • Joined: 08-June 08
  • Gender:Male
  • Location:Dubai

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://www.aommaster.com
Posted Image
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

All my help is free. However, if you would like to make a donation, then please click here.



Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users