By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,577 Members | 1,899 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,577 IT Pros & Developers. It's quick & easy.

How to resize controls at runtime in VB.NET

P: n/a
Hi

I have an application in VB.NET,in that application one
form contains listbox(on the leftside of the form)and
datagrid control(on the rightside of the form).Both
controls displays data at runtime,i want to see the data
of both controls by resizing according to my
convinence.How can i resize those controls at runtime.If
any one help me thanks in advance.
Mamatha
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Mamatha" <ma***********@yahoo.com> wrote
Hi

I have an application in VB.NET,in that application one
form contains listbox(on the leftside of the form)and
datagrid control(on the rightside of the form).Both
controls displays data at runtime,i want to see the data
of both controls by resizing according to my
convinence.How can i resize those controls at runtime.If
any one help me thanks in advance.


If they take up the entire client area, then you can get it done
real easy, but you have to do it in order:

1. Dock the listbox to the left side (Dock property)
2. Add a Splitter control (if you haven't already) and dock that
to the left side.
3. Set the Dock property of the datagrid to Fill.

HTH
LFS
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.