Tip:
Highlight text to annotate it
X
and she split container one
as i mentioned it's pretty much every slick container contains
to panel spent one appeal to you can see there's a property down here for panel one
impaled too
unique actually collapse these pills to use they don't even exist you can see that i don't
click on a transit route
so panel is quiet right now so it's a good week unhide panels if you want in
especially in this area like this where the tab
and there are other panel
although not completely take up to space
sultana victim to to false there so it's expanded micelle susceptible in sizes here
who was really neat is if you expand this panel
but it's an actual panel itself
just as
we have already l_l_ controls it's just like this pretty much the exact same thing it contains
the same exact properties
as it because that's what it is essential panel
uh... that's a lower since alicia realty neak about as yet no one appeal to
full access to the panel itself and all those properties and of course uh... just general
properties
uh... relating to the split container itself
so very simple effective croat control to get the hang of i can again built some pretty
complex all user interface is very easily using his control
devil we have here it is the ten page uh...
artech control should say
and the temp control is is just another excellent way
use of uh... of you know when you have a little bit a real estate to deal with such as this
if you're going to take
small area here
it's a great way to divide up the form
into uh... you know
pretty much making as much real state is you one here
uh... because basically what we have a spam pages
if we're a quicker just click on the bus might take your intent control you can see we can
she said to have removed cab
you can also access is by
going into the property window and under the tab pages collection here with the bill button
open up to tab pitch collection editor here
he could add tens of millions one here you can see will lead
couple revealed to me
food for their hit ok
notes mideast ads appear if you get more than conferred on the screen will just add a little
arrows occurs you can
navigate through them
no quick look in this area within here the work area it's actually you know how it's
going to have that it's highly
see that's so frequent mph to quicken here
texting it was all the properties for that page itself
so all these ted pages
have their own set of properties
if you want to properties for the control itself
you can click occur one time conceal turn into a tad controlled celso this
no relief to the entire temp intro it's got it's own set of properties
any probably the the one of the more popular ones you'll see here
although the pre standard
bodies can be the parents you can turn east abundance you can see if you know i will give
us the button appearance
new flat but nasa will have that kind that will buy a look and feel
of course be normal just a quick standard ten pages
yeah that's really about it as far as attitude control itself goes again most the time ill
be working with his tab pages collection
in working with all the template using again cuz they also support their own properties
at some of the car was you were sent here
maybe border style two one two three d border on the inside here
of the tab page
uh... tech savvy so he's gonna be a big win because that's gonna set
the other torme metab
and other popular images
you can create an image list put images in there
and then tied this
tab control to that image listen and picture image on here and i'll try
in image
to accept each chip each may have its own image in this very handy
uh... but i'd say this is a sure my personal favorite controls or use this in almost every
application i work with
simply because it's so valuable to
to you know
real estate when you don't have a lot to work with
had just agreed dot control to work with da definitely was given a bit
you can also work with the stampede is dynamically can add them in could remove them could hide
them in code things then it yourself just a wonderful control all around
just giving a deal with this looks like hill's cohen
going my project in change our start up form here
to be our test put controls form
would save it
cause of a property pages and had to run button
you can see with very little lever pad for we've already creative a fairly complex user
interface
that
already automatically sizes with admits like so now we can do this we can
as if we were using here we can size this anyway opening which we wanted to
and uh... looks great
and of course that's where the min says comes into play concerts at a twenty five meaning
they can't
grow any more that way
to work for their this white and away more down
uh... to the border with so
that is uh...
the temp control and the split continue control again advised in the hang of those 'cause
alleges very powerful controls
odd within your chill so could you could use to build
grease interfaces with
now couple old ud tips and tricks alicia in working with container controls on the line
clothes out of this
formals go back to our lil controls form here
let's say that we need to moved through
and maybe disable a couple of controls within this area and of course that you say the easy
way to do is just reference the controlled by name in disable and yet sure that is usually
we have lots of controls
english it could be efficient clean you want to look good
and uh... visi easily readable
in detail manual as sort of thing
well i got it one way to do is we can move through what's called the control collections
i mentioned earlier
the content control
the host sees controls
has a collection of collection
allows us
to basically iterate through this collection
uh... in indian country reacted to see what type of control is in the navy to action prisons
let's say we want to again disable all these controls
or disable you'd only the checkbox controls review reset the controls or we were doing
validation
and uh... you know we want to just take all the controls that are empty in you don't turn
their back colors to read to the user knows that they have told them the required fields
what not
talking to c_n_n_'s use this
by accessing the controls collection we do it so we take this button here
and alice's clendenin name this button
how about preset
turn all these fax it to their default values will say
so it reset their
call the reset will call this bt and reset
and now we're going to drink with some code behind its all time going to hear
here so this works
we're gonna do a foreach loops organising for each c_t_ l meaning control
as control disclosure cup so it is all about shortly
and we're lookin inside of our full alcoholics or gonna say
in need of flow well panel dot
controls
so that this is a a manager shortcut encoding because a lot of people do that sexually but
they do is they'll say
didn t t l
has
control
right now no safe reach c t l
u_f_o_ altona controls
you can't join out of despair lenient as in the new but i pierre
that's so
initial shortcut there
elected to another show people 'cause it makes your code noble the less co-directed easier
usery's right
sold in the act
so now we're gonna luther each controlled within the controls question the flow well
palestinians jus find out what type of control workouts which are an esteemed here we can
say
in these that type of keyword
c_t_ l
is
towards my rather tech boxes
so to take control of the checkbox
though we can do here is just a
uh... if we want and we can do this when you see t l
dot shacks
equals
fox to resettle saved
you know that's our default value
you can see right today or this is an working in the reason is because
the controlled by itself doesn't support checked property rights what we need to do here
something like this week actually
say how much n c h k
as checkbox
he calls c type mean convo we're converting
to control object there we have here
checkbox
and now
we'll just have to turn this to see a ticket
in areas where basically
making your own checkbox in code here
by turning the control
into a checkbox so retain copy of it story in this very long and now we can work with
it because we have a reference
to the actual control itself
nor do the same thing for every type of control in here
tuesday and copy this code here
violate control c control v
and now what we're going to turn this into about a radio button
there you go
another since *** rhodes scholar being here
is there a radio button
and no rent
convert this
controlled standard uh...
control object
into a radio one
you know we just need to say rb
that checked
equals false sorrry saying that
uh... that one as well
and then uh... we also have attacks box into we'll worry about the label in this case because
you can really do much the way willingly
source getting the handwritten you do that to the tech stocks
pretty much
the same thing and i'll take this one out secrecy ansel say if typeof
t t l is a tax cut to not tight budget
if typeof c_t_ alb
is a text box
they will rebuild but remake it new text box object your party b
as a text box
and it's going to
create itself
try converting the control object
into a tax breaks
and we know this is a conversion because we've already checked using the type of
uh... operator here object that it's
that's what that's ***
cell in just two t_v_ that text equals
they can also do six further possibly but we do it these days is
string that empty
they're just now we want to look at so for every control week with this but it's going
to every control
if you come across a label guess what it's not too many of our
checks your system completely ignore
but this checkboxes gary said it
check property false
where you're going to fall since seventy two text box
so so this works of save our code here let's go back into my project
and will go ahead and
turner startup formed to i will controls form save it
and that they run but here we go
so it's opens up let's go and put some checks in here will charlie trie ovens audiences
were in a flow control panel here
uh... i pulled up and we can only choose one at a time
let's put some text in hearing about
some text
every reset
so i will pork to went through tight checked all the types of controls
create a copy of a converting it into a total control not allowed us to work with having
code
it's controls pacific properties
the way we want to
you can see there was a very much cooler dot it's very clean
very easy to read and uh... just not a lot to itself
this is what makes
uh... continue cancels powerful is that we can go to the control question still
work with these types of controls dynamically as well because we're not really working with
individual controlled working with all of them
at the same time
molesting alicia here he's had a ed controls
dynamically at runtime i create controls in code
and adam to their container
now as i mentioned earlier doing this and on the panel
would be a little bit more difficult because we have to worry about positioning in
and giving the controls because we just added them dynamically they would all go on top
of each other so being kept it
do a lot of matthew to figure out where they go and and how they fit within the panel
and uh... and but doing enough lol panel
is very easy so much earlier
should pretty much all looks in the pale mobile put into the photo
and it doesn't take a lot of could you create your own controls dynamically sleepless
back up into our for more than an organ ended up here
let's say we want to add a label
what we can do dinner mobile
as a new label here
right now we can say all the l dot caption
eric she's been taxed
not like the old days
he calls our runtime label
just like that they really have a little creek always use that
allah tech stocks
in t_v_ is new tech stocks
but t_v_ dot text equals
from time
text box
simple then under the tricare to actually have in the container
is doing this
you need to specify a container object right
and then the controls
object your property
add you can see of all these methods dad seeking
clear net arrangement at a bunch of controls
and he could also remove as well
and so we can do controls that bad
north gonna pass in the control so for sorry that is the label here the second one organ
ad
is going to text box
solar stew
this is how you been able to create controls
and add them to
it's uh... it's containers control collection
suppose that's what's going to run here
a_b_c_ race the panels guess what
we are to have these controls on your wall they're back there hedges behind these other
control because they got added
after the fact that you can you add on
using the designer by hand reaffirmed toolbox
are technically at it for so they become ontop sick anything on you know been coat it's going
behind it
and you can mess with that there's actually property genus with two
two out of control you know sending controls forward backward such
but this case
my point here that the panel
a little more difficult to work with in the sense if you can't control them acquitted
because you do have to worry about this issue and we have to actually
uh... tika location property
figure out where these locations on and put it
based on these controls
so they don't interfere with them
but if we were dead
clothes out of this go back and our code
in changes palawan
flow layout panel
in using what we learned earlier
flow break after the last but i mean that's on their reset buttons will just copy this
code will call the speech and reset now winter break after that so these controls will go
after reset button and now here on
they line up and of course we have to pick the out of setting up a little hints of these
alanna perfectly but he is the point much much easier to work with flow elk hills and
adding to ultimately because all the position is taken care of it uh... pride the dot a
framework
all right so the cbc ninety we took a big look at mission control layout we showed up
in just a brief overview of other different container controls out there on and how container
controls host other controls air control collection and losses briefly mentioned all different
container controls in the down into portal framework
then we jumped in here and took a big look at all the container controls we start up
with the group box wayzata scale uh... by using the anchor property in a little bit
on the docking property in the beginning as well they're to see how we can
pretty much automatically size the control of their foreman user resizing sweeten creek
skillful sizable forbes uh... after that again we took a look at all the different in a controlled
looked at the panel control we looked at the flow layout control which is a great way to
have user interface dynamically and automatically position our controls forest alleged look
at the table layout control another uh... rent control none of framework that works
just like the flow layout panel only allows us to work with rows columns and sells to
really dot you know o curtail the design the way we want to and then we took a look here
at two very powerful controls i personally really enjoy working with which is a split
container control in a tad control couple axle controls for creating powerful user cases
an expanding their real estate when we don't have a lot to work with
uh... and it in your shoes and tips and tricks here with working with the control collection
on these container controls will bring to the control collection of performing actions
on 'em mickey mouse and show you how to work with island had controls dynamically opus
been informative for it i think you for viewing