Results 1 to 4 of 4

Thread: Winforms RTL sizing and positioning issues

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2016
    Posts
    20

    Winforms RTL sizing and positioning issues

    Hey guys. Im developing a C# software on visual studio 2015. One of the forms is a fixed non sizable form that has arabic text and needs to be rtl(right to left). The problem is that as soon as i run the app the sizes and positions of most of the controls including the form itself changes drastically. This is really confusing me and i tried to play with all the settings and used different combinations and what works on a form doesnt work on the other and problems keep arising. I even tried to use TableLayout. Is there something i am missing out? Even the english form has slight and minor differences when run.

    Name:  image.jpg
Views: 626
Size:  35.1 KB

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,686

    Re: Winforms RTL sizing and positioning issues

    Quote Originally Posted by Hope_feda View Post
    Im developing a C# software on visual studio 2015.
    Then you should have posted in the C# forum. I've asked the mods to move this thread.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Winforms RTL sizing and positioning issues

    Thread Moved from VB.NET forum to C# forum
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,686

    Re: Winforms RTL sizing and positioning issues

    Can you provide a screenshot of your form in the designer with the Document Outline window open so we can clearly see the control hierarchy? It might take a bit of experimentation but I'd expect that by manipulating a TableLayoutPanel (which you appear to be using already) and a FlowLayoutPanel, you could get it to behave.

    As for the difference between design and actually running the app, I suspect that it's using GDI to draw in one case and GDI+ in the other.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width