Detatched Form Control in MDI...

beagrie

New member
Joined
Feb 25, 2008
Messages
1
Programming Experience
1-3
Hi,

I'm trying to write a program in VB 2005. I haven't used basic in years (I was a QB Child) so I'm quite rusty and the difference between what I used to use and todays Basic seems quite drastic.

Anyway, this is my question/request. I don't think it's important what the program will do as that's not what it's about (and it's very industry specific and probably won't make sense to most people) but the general idea is I have my main program all sketched out and working roughly, so before I start really getting into it I want to sort out the UI.

My ideal layout for this would be Multiple Document so that if the user clicks open/new it launches a new instance of the core program. As for the controls I want to do something like Adobe Photoshop have done with the separate windows for all the controls that can be placed anywhere on the screen with the main object a separate window.

What I'm wondering is how hard is this to achieve without having things conflict? I've been coding in PHP for the past couple of years and MDI is new to me. If the user opens another instance of the core program will the variables it uses conflict with the ones already open? Is it difficult to have one form with standard controls (buttons, textboxes, etc) perform it's functions on the focused object rather than having individual instances of the functions running for each object.

If anyone can give me an idea of whether this is achievable for someone of my VB understanding (I'm picking it all up relatively quickly) and/or point me the direction of some good resources/samples I'd appreciate it.

Thanks in advance for any help.
 
A typical toolform has FormBorderStyle=FixedToolWindow and ShowInTaskbar=False. MDI parent (main application window) then sets toolform.Owner=Me so it will close/minimize/restore along and Show it. Through the Owner property toolform can reference the Mdi parent, and further any ActiveMdiChild.
 

Latest posts

Back
Top