statusstrip

How do I right align controls in a StatusStrip?

拥有回忆 提交于 2019-11-28 18:03:28
问题 I am trying to right align a control in a StatusStrip. How can I do that? I don't see a property to set on ToolStripItem controls that specifies their physical alignment on the parent StatusStrip . How do I get Messages drop down to be right aligned? http://i.friendfeed.com/ed90b205f64099687db30553daa79d075f280b90 回答1: Found it via MSDN forums almost immediately after posting :) You can use a ToolStripLabel to pseudo right align controls by setting the Text property to string.Empty and

How do I feed values to the statusStrip from a form control?

旧街凉风 提交于 2019-11-28 10:48:24
问题 This is the context of my controls: /* Form StatusStrip ToolStripStatusLabel TableLayoutPanel MyGenioView */ So, MyGenioView is intercepting the MouseMove event handler. The code that is already there is for a rubber band rectangle. So I have: public void MyMouseMove(Object sender, MouseEventArgs e) { Point ptCurrent = new Point(e.X, e.Y); // If we "have the mouse", then we draw our lines. if (m_bHaveMouse) { // If we have drawn previously, draw again in // that spot to remove the lines. if

ToolStripStatusLabel displayed as black box

限于喜欢 提交于 2019-11-28 08:58:41
问题 I use StatusStrip that contains ToolStripStatusLabel. OS - Windows 7, framework 2.0. Usually all displayed normal, but sometimes ToolStripStatusLabel looks like black box: I read that windows bug, but how I can fix it? 回答1: This is an obscure bug, triggered when you display the form with the Windows toolbar overlapping your StatusStrip. Moving the window away from the toolbar doesn't get the ToolStripItems on the status strip repainted properly. You'll find a bit of background in this forum