Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

How to dynamically resize form and add controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
garyusenet@myway.com - 29 Nov 2006 12:36 GMT
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.
Stephany Young - 29 Nov 2006 12:45 GMT
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.

> Hi,
>
[quoted text clipped - 33 lines]
>
> Gary.
garyusenet@myway.com - 29 Nov 2006 13:11 GMT
Thankyou Stephany I will read of these from google.

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

Thankyou,

Gary.

> I would suggest a ListView control in Details mode.
>
[quoted text clipped - 38 lines]
> >
> > Gary.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.