Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cloning combobox
Message
From
23/05/2012 11:15:27
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Cloning combobox
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01544151
Message ID:
01544151
Views:
77
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
Next
Reply
Map
View

Click here to load this message in the networking platform