Posted by : Sudhir Chekuri Thursday, 18 February 2016

StatusStrip is a collection of controls which are displayed at the bottom of the form which is generally used to display the status of the window form.
Default Event: Click which is fired when user click on the item.

Steps to create StatusStrip

Drag and drop a StatusStrip control to the form which is displayed on the bottom panel of the form but also shows up the dropdown with list of controls at the bottom of the form.
You can use the dropdown available at the bottom of the form to select and add controls in the StatusStrip which is present at the bottom of the form.
Double click on the StatusStrip item to see the generated event handler of that specific item and you can create event handler for each item to write some code that has to be executed when you click on that item in the runtime.

Example code to display number of characters present in a textbox in status label

Double click on the textbox and write the below code.
private void textBox2_TextChanged(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = textBox2.Text.Length.ToString();

        }

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -