
I need just the same style.
Thanks !
Code: Select all
Dim myButton1 As New Stimulsoft.Controls.StiButton
myButton1.Image = My.Resources.Resources.calculator
myButton1.Width = 30
myButton1.Left = 550
AddHandler myButton1.Click, AddressOf btCalc_Click
stViewCtrl.ToolBar.Controls.Add(myButton1)
You use the wrong button. Here is our code of creating Find button:mrapi wrote:code used :Code: Select all
Dim myButton1 As New Stimulsoft.Controls.StiButton myButton1.Image = My.Resources.Resources.calculator myButton1.Width = 30 myButton1.Left = 550 AddHandler myButton1.Click, AddressOf btCalc_Click stViewCtrl.ToolBar.Controls.Add(myButton1)
Code: Select all
public ButtonItem tbFind;
tbFind.Text = StiHint.CreateHint(StiLocalization.Get("FormViewer", "Find"));
tbFind.Shortcuts.Clear();
this.tbFind = new Stimulsoft.Controls.Win.DotNetBar.ButtonItem();
this.tbFind.BeginGroup = true;
this.tbFind.Image = global::Stimulsoft.Report.Win.Properties.Resources.Find;
this.tbFind.ImageIndex = 20;
this.tbFind.Name = "tbFind";
this.tbFind.PopupPositionAdjusted = false;
this.tbFind.Shortcuts.Add(Stimulsoft.Controls.Win.DotNetBar.eShortcut.CtrlF);
this.tbFind.Text = "Find...";
this.tbFind.Click += new System.EventHandler(this.tbToolFind_Click);
To change an existing button you could find it in the StiViewerControl.ToolBar.Items collection.mrapi wrote:Also i'm interesting for some other solution to this problem : to change one of existing buttons (NewPage for example that I don't use it) and to change image and the event handler.