How do I write something into the StatusStrip ?

  • Thread starter Thread starter Carla Simeoni
  • Start date Start date
C

Carla Simeoni

I added a StatusStrip "Sstrip1" to a Form "Form1".

In the procedure

private void Form1_Load(...)

I added the following statement:

Sstrip1.Text = "Text in my StatusStrip";

Unfortunately this text assignment is not recognized.
When I call the program the StatusStrip is empty.

How do I make the text visible ?

Carla
 
The status strip is a sort of menu/toobar. You have to add something to it,
like a ToolStripStatusLabel, and then assign your text to that label.Text.

In the forms designer, if you left click on the statusStrip (in the form),
you should see a little box with an arrow. Left click on that, and you get
a menu of items you can add (label, progressBar, dropDownButton,
splitButton). Click on one to get the item added.

Note that you can have multiple items in the same statusStrip.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top