Toolbar- ToolbarDropDownList 
Author Message
 Toolbar- ToolbarDropDownList

Does anyone understand how to handle the event of a ToolbarDropDownList SelectedItemChange?  I am using the toolbar controls from the Internet Explorer Web Components http://www.*-*-*.com/

The example below response to the OnButtonClick event properly, however it doesn't respond to a change in the drop down list.

-Any Help would be great!

Example Below:

In form declaration I have..

<iewc:Toolbar id="myToolbar" style="Z-INDEX: 119; LEFT: 24px; POSITION: absolute; TOP: 2px" runat="server" Font-Size="X-Small" Font-Names="Arial" Height="18px" Width="640px" AutoPostBack="True" OnButtonClick="DoToolBarClick" OnSelectedIndexChanged="ToolBar_OnSelectedIndexChanged">

Then in the code behind pages I have:
using Microsoft.Web.UI.WebControls;

private void Page_Init(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        ts = new ToolbarSeparator();
        myToolbar.Items.Add(ts);
        ToolbarLabel ToolLabel;
        ToolLabel = new ToolbarLabel();
        myToolbar.Items.Add(ToolLabel);
        ToolLabel.Text = "News Groups:";
        ToolbarDropDownList droplist;
        droplist = new ToolbarDropDownList();
        droplist.ID = "DropList";
        myToolbar.Items.Add(droplist);
        for(int x=Groups.GetLowerBound(0);x<Groups.GetUpperBound(0);x++)
            droplist.Items.Add(Groups[x].ToString());
        ts = new ToolbarSeparator();
        myToolbar.Items.Add(ts);
 }

Quote:
}

private void DoToolBarClick(object sender, EventArgs e)
{
 ArticleBody.Text = sender.ToString();

Quote:
}

public void ToolBar_OnSelectedIndexChanged(object sender, EventArgs e)
{
    ArticleBody.Text = sender.ToString();
Quote:
}



Sat, 27 Mar 2004 10:23:15 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Form Toolbar vs Control Toolbar

2. BUG: Toolbar-Buttons wrong pictures - toolbar.zip (1/1)

3. BUG: Toolbar-Buttons wrong pictures - toolbar.zip (0/1)

4. Changing Toolbar Button Properties Outside of the Toolbar

5. Small toolbar look - toolbar control doesn't work properly

6. BUG: Toolbar-Buttons 32*32 wrong pricture - toolbar.zip (0/1)

7. BUG: Toolbar-Buttons 32*32 wrong pricture - toolbar.zip (1/1)

8. to toolbar or not to toolbar?

9. Cyrstal Toolbar images not found src="/crystalreportwebformviewer/images/toolbar

10. For each toolbar in form1.toolbars

11. VB4 Toolbar Control--Creating Toolbars

12. VB 4.0 (32) and Toolbars disappearing when another form with a toolbar is shown

 

 
Powered by phpBB® Forum Software