Groups | Blog | Home
all groups > dotnet windows forms controls > august 2006 >

dotnet windows forms controls : Is it possible to add a textbox to a status bar?



Andy Jacobs
8/28/2006 6:56:01 AM
Hello,

Is it possible to add a textbox to a status bar?

If so, a code example would be much appreciated in C#.

Thx.
Claes Bergefall
8/28/2006 10:48:58 AM
Yes, it's possible. How to do it depends on what type of status bar you're
using

System.Windows.Forms.StatusStrip:
Create an instance of ToolStripTextBox and add that to the Items collection
for the StatusStrip
You will need to set the size of the ToolStripTextBox

System.Windows.Forms.StatusBar:
Create an instance of TextBox and add that to the Controls collection of the
StatusBar
You will need to set the size and location (relative to the top left corner
of the statusbar) of the TextBox

/claes

[quoted text, click to view]

AddThis Social Bookmark Button