Imaginsystems


Tecniche di Programmazione - Codici Sorgenti - News Informatiche
Archivio Posts
Anno 2014

Anno 2013

Anno 2012
Statistiche
  • Views Home Page: 71.612
  • Views Posts: 542.404
  • Views Gallerie: 0
  • n° Posts: 210
  • n° Commenti: 224

VB6 - ELENCARE TUTTI I CONTROLLI PRESENTI SU UNA FORM

ELENCARE TUTTI I CONTROLLI PRESENTI SU UNA FORM

L'esigenza di analizzare con il programma tutti i controlli presenti su una Form è resa possibile attraverso l'oggetto Control. Il seguente esempio inserisce in una ListBox il nome di tutti i controlli presenti sulla Form :

Private Function ElencoControlli()
Dim ctrl As Control
For Each ctrl In Controls()
List1.AddItem ctrl.Name 'Aggiunge nella ListBox
Debug.Print ctrl.Name ' Stampa 
Next ctrl
End Function


Categoria: VB6
lunedì, 07 mag 2012 Ore. 08.03

Messaggi collegati


Ora e Data
Mappa
Blogs Amici
    Copyright © 2002-2007 - Blogs 2.0
    dotNetHell.it | Home Page Blogs
    ASP.NET 2.0 Windows 2003