468,765 Members | 802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

How to Create Access Like Subforms vb2005 express

Hello I have a parent form but I want to create 4 forms that will be shown
in a area inside the parent form when I click to buttons.

+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+
Visual Basic 2005 Express
Thanks,
Edwin
Oct 9 '07 #1
7 4739
On Oct 8, 8:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Hello I have a parent form but I want to create 4 forms that will be shown
in a area inside the parent form when I click to buttons.

+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+

Visual Basic 2005 Express

Thanks,

Edwin
Well, you could use the WPF Expander control....

--
Tom Shelton

Oct 9 '07 #2
On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Hello I have a parent form but I want to create 4 forms that will be shown
in a area inside the parent form when I click to buttons.

+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+

Visual Basic 2005 Express

Thanks,

Edwin
Look up UserControls.

Thanks,

Seth Rowe

Oct 9 '07 #3
I still dont get it

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
>Hello I have a parent form but I want to create 4 forms that will be
shown
in a area inside the parent form when I click to buttons.

+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+

Visual Basic 2005 Express

Thanks,

Edwin

Look up UserControls.

Thanks,

Seth Rowe

Oct 10 '07 #4
In HELP, search for "Child Forms" and you will find several examples,
including this one:

http://msdn2.microsoft.com/en-us/lib...29(VS.71).aspx

There are several other examples there as well.
Hope it helps.
james

"Edwin Martinez" <ed************@gmail.comwrote in message
news:eN**************@TK2MSFTNGP06.phx.gbl...
>I still dont get it

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
>On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
>>Hello I have a parent form but I want to create 4 forms that will be
shown
in a area inside the parent form when I click to buttons.

+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+

Visual Basic 2005 Express

Thanks,

Edwin

Look up UserControls.

Thanks,

Seth Rowe


Oct 10 '07 #5
On Oct 9, 9:45 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
I still dont get it

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@19g2000hsx.googlegro ups.com...
On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Hello I have a parent form but I want to create 4 forms that will be
shown
in a area inside the parent form when I click to buttons.
+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+
Visual Basic 2005 Express
Thanks,
Edwin
Look up UserControls.
Thanks,
Seth Rowe
Maybe I've misunderstood you. Are you trying to simulate the embedded
subforms that are available in Access, or are you simply trying to
create an MDI application (such as Word, Excel, Access)? There are two
very different answers for these two very different scenarios.

Thanks,

Seth Rowe

Oct 10 '07 #6
Yes what I am trying to do its to simulate the embedded subforms that are
available in Access.

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
On Oct 9, 9:45 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
>I still dont get it

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@19g2000hsx.googlegr oups.com...
On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Hello I have a parent form but I want to create 4 forms that will be
shown
in a area inside the parent form when I click to buttons.
>+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+
>Visual Basic 2005 Express
>Thanks,
>Edwin
Look up UserControls.
Thanks,
Seth Rowe

Maybe I've misunderstood you. Are you trying to simulate the embedded
subforms that are available in Access, or are you simply trying to
create an MDI application (such as Word, Excel, Access)? There are two
very different answers for these two very different scenarios.

Thanks,

Seth Rowe

Oct 10 '07 #7
On Oct 10, 7:04 am, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Yes what I am trying to do its to simulate the embedded subforms that are
available in Access.

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@r29g2000hsg.googlegr oups.com...
On Oct 9, 9:45 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
I still dont get it
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>news:11**********************@19g2000hsx.googlegr oups.com...
On Oct 8, 10:43 pm, "Edwin Martinez" <edwin.marti...@gmail.comwrote:
Hello I have a parent form but I want to create 4 forms that will be
shown
in a area inside the parent form when I click to buttons.
+----------------------------+
| Parent Form |
| |
| -------------------- |
| | subform | |
| | | |
| | | |
| -------------------- |
+----------------------------+
Visual Basic 2005 Express
Thanks,
Edwin
Look up UserControls.
Thanks,
Seth Rowe
Maybe I've misunderstood you. Are you trying to simulate the embedded
subforms that are available in Access, or are you simply trying to
create an MDI application (such as Word, Excel, Access)? There are two
very different answers for these two very different scenarios.
Thanks,
Seth Rowe
Alright, UserControls are basically used to drop related controls into
a container for encapsulation and reuse. For a simple example, suppose
you had multiple parts of a program (or multiple programs) that
required the use to list the path of a text file. For this you would
need a Label, a TextBox, a Button, and an OpenFileDialog. Instead of
dropping all the parts multiple times into each form, you could put
all of them into a UserControl and code in all the necessary behavior
(such as the Button opening the OpenFileDialog and putting the
filepath in the TextBox). Then you would just need to drop the
UserControl into each form. In essence, UserControls act like mini-
forms. They act the same in the designer and (mostly) at runtime, with
the only major difference being that UserControls are not self
sustaining in that they must be placed in a parent object (such as a
form).

Does that explain UserControls a bit better?

Thanks,

Seth Rowe

Oct 10 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Chris Devol | last post: by
8 posts views Thread by Noozer | last post: by
2 posts views Thread by Jerry Spence1 | last post: by
2 posts views Thread by Omar Abid | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.