![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Customizing BindingNavigator Control Hi, I have to customzie the BindingNavigator control. What I have to do is to remove few default items from the control like ToolStripTextBox and ToolStripLabel displaying the Position. I also need to add one extra ToolStripButton item at the end of the ToolStrip Items. i.e. after the Delete button. To fullfil the above requirements, I have inherited my class from the BindingNavigator control and in constructor I am creating a new ToolStripButton and adding it to Items of BindingNavigator like below: ToolStripButton tsbtn = new ToolStripButton(); Image img = new Bitmap(@"Z:\\MyControl\favicon.ico"); tsbtn.Image = img; this.Items.Add(tsbtn); It is adding the button item to the BindingNavigator control but at the beginning i.e. before the "Move First" button. I want it be added at the end. To remove the default items from the control whenever I try to remove the Item it raises an Index out of bound exception. Obviously because no ToolStripItem created at this point and the Item count is also 0 at this stage. Is there any way to do these two things? Thanks in anticipation. Regards, Ahmad Jalil Qarshi |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Duplicate bindingnavigator functions | .NET General | |||
Customizing the Desktop | General Discussion | |||
| Customizing IE 8 | Browsers & Mail | |||
| Customizing Folders | Vista General | |||
| Customizing WinPE | Vista installation & setup | |||