StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Populating ToolStripCombobox with BO...Expand / Collapse
Author
Message
Posted 07/24/2006 3:31:46 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
How do I populate a toolstripcombobox with a BO?

I also noticed that the only toolstrip you have is the maintenance form one. Is there any way to get your combo box on the toolstrip? Do you have your own version of the toolstrip?

Mike
Post #1927
Posted 07/24/2006 3:36:40 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
Toolstrips basically have a wrapper for combo boxes.  In fact, they inherit from a System.Windows.Forms.Combobox class.  To populate a toolstrip combo using data you will have to manually set the data source property as well as the ValueMember and DisplayMemeber.  To access the wrapped combo box it will look something like this.

        Me.ToolStripComboBox1.ComboBox.DataSource = MyBO.CurrentDataTable
        Me.ToolStripComboBox1.ComboBox.ValueMember = "ValueFieldName"
        Me.ToolStripComboBox1.ComboBox.DisplayMember = "DisplayFieldName"

Use this code whenever you need to populate the toolstrip combo box.

Post #1928
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:30am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 16 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.