Changes

Jump to: navigation, search

Building a Toolbar with C Sharp and Visual Studio

1 byte added, 20:08, 1 April 2009
no edit summary
== Creating a Toolbar ==
Toolbars are referred to in C# as ''ToolStrips''. The first step in creating a toolbar is to add a ''ToolStrip'' control to the form. Begin by starting Visual Studio and creating a new Windows Application project named ''CSharpToolbar''. When the new project has been created and the default form appears , display the ''Toolbox'' and double click on the ''ToolStrip'' control to add it to the form:
[[Image:c_sharp_new_toolbar.jpg| Adding a new Toolbar in Visual Studio]]
Tooltips are specified via the ''Text'' property of the control in question. To add Tooltip to the first button in our example toolbar, select the button in the form and change the ''Text'' property in the ''Properties'' panel to ''Displays Date and Time''. Similarly change the ''Text'' property of the second control to ''Hides Date and Time''.
Press '''F5''' to build and run the application. When the application starts, move the mouse over each button. AS As the mouse hovers over each control the tooltip text should appear.
== Programming Toolbar Controls ==

Navigation menu