How to resize controls at runtime in VB.NET

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

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
 
Mamatha said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top