Change Splitter Width On runtime

3 posts, 0 answers
  1. Hossein
    Hossein avatar
    3 posts
    Member since:
    Dec 2014

    Posted 15 Dec 2014 Link to this post

    I need to save splitter location on runtime when the user exits and app were closed.
    Bun when i read the splitter width from registery(seved settings)  and set splitter by it, splitter width does not work and not change.

    My Code is :

    Dim p1 As Integer = GetSetting("splWidth1", 100)
    Dim pnl As SplitPanel = SPL.SplitPanels(0) 
    pnl.SetBounds(pnl.Left, pnl.Top, p1, pnl.Height)
    SplitPanel1.Size =
    New Point(p1, SplitPanel1.Height)
    SplitPanel2.Width = GetSetting(
    "splWidth2", 100)

    It is correct But don't work.
  2. Hossein
    Hossein avatar
    3 posts
    Member since:
    Dec 2014

    Posted 17 Dec 2014 in reply to Hossein Link to this post

    Solved in this topic:
  3. Hristo
    Hristo avatar
    1510 posts

    Posted 17 Dec 2014 Link to this post

    Hi Hossein,

    Thank you for writing.

    I confirm that this is a valid solution for your scenario. I am glad that you found it on our forums.

    Should you have further questions do not hesitate to write back.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top