If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > vb .NET loading a form into a dedicated box?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-09, 09:41
sebastienp sebastienp is offline
Registered User
 
Join Date: Sep 2009
Posts: 12
vb .NET loading a form into a dedicated box?

hello,

Form1 is the active form
Button1 is a button on Form1

when Button1 is pressed, i would like the content of Form2 to be loaded in a box to some kind of area designed to accept a form.


ie.

in html, frames.

You have a frame on the left (usually with links) and when a linked a pressed, the content usually appears in the right frame


is this possible?

thanks!
Reply With Quote
  #2 (permalink)  
Old 10-01-09, 13:00
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
First off, don't use frames unless you ABSOLUTELY HAVE TO. They will cause headaches, I assure you.

Second, I would suggest loading a user control as opposed to a form. You can define ContentPlaceHolders which allow you to dynamically load controls in to them as needed. The place holders themselves will be rendered as divs, so keep that in mind.

As far as the frame thing goes, you can probably do what you need with a couple of floated divs. Look up the "float" CSS attribute.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On