Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Controls location inside a RibbonGroup Collapse All
Subject Author Date
Aleksander Hribšek Jul 21, 2010 - 2:21 AM

I would like to place a TextBox (of course, Elegant.Ui.TextBox) inside a GroupBox so it would be in a center (vertically). If I try to change it’s location (.Location) it changes right back. Here’s a screenshot for a better understanding.



i31.tinypic.com/241a4px.jpg



Thank you.

Technical Support Jul 21, 2010 - 8:57 AM

The RibbonGroup uses the flow layout so all the controls are grouped in columns. Though you can achieve your goal by setting a custom margin to the text box as follows:

textBox1.Margin = new Padding( 1, 25, 1, 5 );