Multiple "Frames"

Danjb
10-08-2009, 11:45 AM
Hey,

I'm trying to make a game with an interface panel on the left, with a changeable main screen on the right.

For instance, the main screen could be a map, but clicking a button on the interface could bring up an inventory menu in its place.

I don't really know any way to go about this without:
a) Having EVERY object all over the place on the right and changing whether or not they are visible - extremely impractical for lots of objects.
b) Using multiple forms - this would mean that either the interface or the main screen would always be "inactive" and could be moved about or closed separately which could cause problems.

Can anyone suggest a way of making this work?

Thanks,

- Danjb

Iceplug
10-08-2009, 07:26 PM
I think you should consider using multiple forms, but show them using .Showdialog...
much as the same way that you have to click OK on the messagebox to access the original window, ShowDialog requires the form to be closed in order to access the owner window (the main window, in your case)

Danjb
10-09-2009, 06:04 AM
"ShowDialog" doesn't seem to exist for me.

But also, I'd still want the interface panel to be accessible, so it's like they're both "active" at once.

vb5prgrmr
10-10-2009, 12:45 AM
Ice, Ice, Ice,...

That-a-be .NET code you err-a-referin tooo... :-)

Dan,

Form2.Show vbModal, Me is what Ice was/is trying to communicate to you.



Good Luck

Danjb
10-10-2009, 03:12 AM
It works like a charm, thanks!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum