Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a tabbed MDI application.Now the scrollbar appears after logging into the application.Now if the user scrolls down or sideways the childforms get opened at different position so I want to programatically put scrollbar to the top of the page or to the left of the screen before opening the childform.Though I am trying to change the scrollbar value of MDI parent form it is not putting the scrollbar at the top of the page.Need to know how to achieve this goal.
Posted
Comments
S Houghtelin 4-Feb-14 10:11am    
You say you are trying to set the scrollbar value, could you provide some code for us to look at. It may be that you are setting the value too early or prior to displaying the MDI children.
Sergey Alexandrovich Kryukov 4-Feb-14 11:25am    
Most likely, this is not MDI at all, and this is good: MDI should be avoided by all means. The answer to your question depends on what UI framework/library you use.
—SA
Up_CrossYourHeart 4-Feb-14 11:41am    
No it is MDI.For frmMain we have kept the isMdiContainer property set to true.
Up_CrossYourHeart 4-Feb-14 11:25am    
I have frmMain as Mdi parent.The childform's have autoscroll property set to false.Now prior to opening the form and also after opening the form I set
frmMain.verticalscroll.value=0
Still the scrollbar remains at same position.
Sergey Alexandrovich Kryukov 4-Feb-14 11:42am    
Don't. Just don't have anything as MDI parent. Tabbed interface assumes that all windows are normal.
Anyway, further discussion makes no sense at all, until you specify what you are using.
You did not mention a single class you use for UI, no namespace, nothing. There is nothing to talk about...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900