How to dynamically resize form and add controls

  • Thread starter Thread starter garyusenet
  • Start date Start date
G

garyusenet

Hi,

*I originally posted this in c# but was advised to repost here. I'd
really appreciate any answers you may have, i'm programming using
Visual Studio C# Express.
Thankyou*



I will outline what i'm trying to do here, and would really like to
here your suggestions of how I can do it please.


I have some code which finds the open internet explorer windows. I
would like to display a form that allows the user to choose one of
these windows. I have generated an arraylist which contains all
internet explorer window objects, and I am able to count how many there

are and retrieve information from each by using properties such as
arraylist.count


My question is how do i build a form that displays the name and url's
of the windows? do i use labels? do I use text boxes? How do i
automatically assign the right number to handle however many internet
explorer windows are open? Sometimes there may be 2 windows open,
sometimes there may be 15... etc...


Just to stress i'm not asking how I actually determine url addresses
etc.. from internet explorer, after much learning i can now do this.
I'm asking about the construction of a (dynamic?) form to display this
information.


The idea is my user will select one of the windows they want to work
with from this form.


*I am a beginner please remember!


TIA


Gary.
 
I would suggest a ListView control in Details mode.

Simply add a ListViewItem for each 'IE Window' and use a seperate column for
each category of information item.
 
Thankyou Stephany I will read of these from google.

Will the form automatically resize itself if the listview control
resizes?

Thankyou,

Gary.
 
Back
Top