Groups | Blog | Home
all groups > vb.net > october 2007 >

vb.net : How to Create Access Like Subforms vb2005 express


Tom Shelton
10/8/2007 8:27:09 PM
[quoted text, click to view]

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

--
Tom Shelton
Edwin Martinez
10/8/2007 10:43:24 PM
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

rowe_newsgroups
10/9/2007 6:01:24 AM
[quoted text, click to view]

Look up UserControls.

Thanks,

Seth Rowe
Edwin Martinez
10/9/2007 9:45:13 PM
I still dont get it

[quoted text, click to view]

james
10/9/2007 10:41:35 PM
In HELP, search for "Child Forms" and you will find several examples,
including this one:

http://msdn2.microsoft.com/en-us/library/aa984329(VS.71).aspx

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

[quoted text, click to view]

Edwin Martinez
10/10/2007 12:00:00 AM
Yes what I am trying to do its to simulate the embedded subforms that are
available in Access.

[quoted text, click to view]

rowe_newsgroups
10/10/2007 3:30:05 AM
[quoted text, click to view]

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
rowe_newsgroups
10/10/2007 5:07:32 AM
[quoted text, click to view]

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
AddThis Social Bookmark Button