Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cloning combobox
Message
De
23/05/2012 11:15:27
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Cloning combobox
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01544151
Message ID:
01544151
Vues:
78
I have a need to clone comboboxes in a form. I thought that by doing this, this would do:
        ' Those two are equivalent
        NoCountryTax2 = NoCountryTax
        NoProvinceTax2 = NoProvinceTax
But, it doesn't.

So, for now, I have this:
        ' Those two are equivalent
        NoCountryTax2.DataSource = NoCountryTax.DataSource
        NoCountryTax2.DisplayMember = NoCountryTax.DisplayMember
        NoCountryTax2.ValueMember = NoCountryTax.ValueMember
        NoCountryTax2.SelectedIndex = NoCountryTax.SelectedIndex
        NoProvinceTax2.DataSource = NoProvinceTax.DataSource
        NoProvinceTax2.DisplayMember = NoProvinceTax.DisplayMember
        NoProvinceTax2.ValueMember = NoProvinceTax.ValueMember
        NoProvinceTax2.SelectedIndex = NoProvinceTax.SelectedIndex
Is this the proper, simpler and only way of achieving this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform