Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 49869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:30:15+00:00 2026-05-10T16:30:15+00:00

According to MSDN form.RightToLeftLayout = True; form.RightToLeft = ifWeWantRTL() ? RightToLeft.True : RightToLeft.False; is

  • 0

According to MSDN

form.RightToLeftLayout = True; form.RightToLeft = ifWeWantRTL() ? RightToLeft.True : RightToLeft.False; 

is enough to mirrow the form content for RTL languages.

But controls placement gets mirrowed only for controls immediately on the form,
those inside a GroupBox or a Panel are not mirrowed, unless I put them on a TableLayoutPanel or a FlowLayoutPanel fisrt.

This is a lot of manual work to place a TableLayoutPanel inside each GroupBox, and especially to rearrange the controls (one control per table cell, padding, margin, etc)

Is there an easier way to make mirrowing work for all controls?

Or at least, how can I bypass the rearranging step, for it is quite a task with our number of forms?


Edit: RightToLeft property for each control on the form by default is inherited,
so Panels and GroupBoxes always have the needed RightToLeft setting.
Nevertheless, I tryed to reassign it for them both programmatically and from designer, it did not help.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:30:16+00:00Added an answer on May 10, 2026 at 4:30 pm

    It does seen that you have quite a nasty problem on your hands. Have played with it for a while and come up with the following:

    Making use of a little recursion you can run though all the controls and do the manaul RTL conversion for those controls trapped in Pannels and GroupBoxes.

    This is a quick little mock of code that I slapped together. I would suggest you put this in your BaseForm (heres hoping you have one of these) and call on base form load.

    private void SetRTL (bool setRTL) {     ApplyRTL(setRTL, this); }  private void ApplyRTL(bool yes, Control startControl) {     if ((startControl is Panel ) || (startControl is GroupBox))     {         foreach (Control control in startControl.Controls)         {             control.Location = CalculateRTL(control.Location, startControl.Size, control.Size);         }     }      foreach (Control control in startControl.Controls)         ApplyRTL(yes, control); }  private Point CalculateRTL (Point currentPoint, Size parentSize, Size currentSize) {     return new Point(parentSize.Width - currentSize.Width - currentPoint.X, currentPoint.Y); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the msdn The two conditions when a form is not disposed on
According to msdn it should be in windbase.h but it is not available instead
According to MSDN , [The pipe name] must have the following form: \\.\pipe\pipename The
According to MSDN Dispose will be called automatically if the form is shown using
According to msdn, http://msdn.microsoft.com/en-us/library/bb774798%28VS.85%29.aspx , returning TRUE prevents user from editing labels. So I
According MSDN, FxCop is an application that analyzes managed code assemblies (code that targets
According to MSDN , a hash function must have the following properties: If two
According to MSDN BOL (Books Online) description on SOME | ANY (Transact-SQL) , SOME
According to MSDN (Section 11.3.6 of the C# spec ): Within an instance constructor
According to MSDN Documentation for partial classes : Partial methods are implicitly private So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.