locked
use of the left and of the right side of a toolstrip RRS feed

  • Question

  • Hi,

    how can I use both the left and the right side of a toolstrip?

    I mean, f.e. on the left side are some buttons, on the right side two text fields.

    Monday, February 13, 2012 5:47 PM

Answers

  • The easiest way is probably to use two undocked toolstrips side by side.  Set the RightToLeft to True on the RH one and use the Anchor properties to ensure they resize correctly with the form.

    <Edit>

    Using the anchor properties isn't such a good idea - it doesn't work.  Do it in code in the form resize  handler instead.

    • Edited by Dave299 Monday, February 13, 2012 11:36 PM
    • Marked as answer by DerStauner Tuesday, February 14, 2012 5:06 PM
    Monday, February 13, 2012 11:23 PM

All replies

  • how can I use both the left and the right side of a toolstrip?

    I mean, f.e. on the left side are some buttons, on the right side two text fields.

    So ...... what is the problem - what are you trying to do that you can't?

    Monday, February 13, 2012 6:21 PM
  • Set Dock = None.

    Armin

    Monday, February 13, 2012 7:42 PM
  • On a toolstrip, I can add buttons, labels, etc from left to right.

    But I would like to add buttons only from left to right and texts from the right side to left.

    Monday, February 13, 2012 8:41 PM
  • The easiest way is probably to use two undocked toolstrips side by side.  Set the RightToLeft to True on the RH one and use the Anchor properties to ensure they resize correctly with the form.

    <Edit>

    Using the anchor properties isn't such a good idea - it doesn't work.  Do it in code in the form resize  handler instead.

    • Edited by Dave299 Monday, February 13, 2012 11:36 PM
    • Marked as answer by DerStauner Tuesday, February 14, 2012 5:06 PM
    Monday, February 13, 2012 11:23 PM