Results 1 to 3 of 3

Thread: toolbar problem {Resolved}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    toolbar problem {Resolved}

    Thanks for you help

    I have used the code below based on what you told me. It works fine.

    Code:
    switch (e.Button.Tag.ToString())

    Hello

    I have a toolbar with some icons on it. I want to click on of the icons and open that from. But my swich statement does not work, as it asks for a integer.

    code below

    Code:
    private void tbrIcons_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
    		{
    			switch (e.Button)//problem here, what am l doing wrong
    			{
    				case "house":
    					//Show house form
    					break;
    				case "village":
    					//show village form
    					break;
    				default:
    					break;
    			}
    		}
    many thanks in advance

    Steve
    Last edited by steve_rm; Nov 29th, 2003 at 02:21 AM.
    steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width