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 / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Collection of controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bernard Bour?e - 17 Oct 2004 10:38 GMT
I want to create by code (runtime) a collection of ListView and to be able
to have acces to their properties.

Dim lwEntSor As New System.Windows.Forms.ListView()

Me.Controls.Add(lwEntSor)

Me.lwEntSor(viIdxCtl).TabIndex = viIdxCtl

The last line give me an error : lwEntSor is not a member of frmMain

How should I handle it ?

Signature

Bernard Bour?e
bernard@bouree.net

Herfried K. Wagner [MVP] - 17 Oct 2004 11:36 GMT
"Bernard Bour?e" <bernard@bouree.net> schrieb:
> I want to create by code (runtime) a collection of ListView and to be able
> to have acces to their properties.
[quoted text clipped - 6 lines]
>
> The last line give me an error : lwEntSor is not a member of frmMain

Accessing controls by their names or indices
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=controlbynameindex>

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/

Bernard Bour?e - 17 Oct 2004 12:52 GMT
Thanks a lot !

Signature

Bernard Bour?e
bernard@bouree.net

> "Bernard Bour?e" <bernard@bouree.net> schrieb:
> > I want to create by code (runtime) a collection of ListView and to be able
[quoted text clipped - 10 lines]
> Accessing controls by their names or indices
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=controlbynameindex>

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.