Add StiComboBox to StiPreviewControl-toolbar

Stimulsoft Reports.NET discussion
Post Reply
scotty
Posts: 28
Joined: Tue Jul 04, 2006 2:05 am
Location: Austria

Add StiComboBox to StiPreviewControl-toolbar

Post by scotty »

Is it possible to add a comboBox to the toolbar of the StiPreviewControl?

How do I set the items for the ComboBox?

How can I find out, that the SelectedItem of the ComboBox is changed?

thanks
scotty
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Add StiComboBox to StiPreviewControl-toolbar

Post by Vital »


You can do it with PreviewControl. This control have field - tbTool. This is toolbar.
To add ComboBox you can use this code:

Code: Select all

ComboBox comboBox = new ComboBox();
comboBox.Dock = DockStyle.Left;
comboBox.Items.Add("1");
comboBox.Items.Add("2");
comboBox.Items.Add("3");
previewControl1.tbTool.Controls.Add(comboBox)

Thanks.
Post Reply