Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Good morning to all..

i have developed window application like an editor.it contains web browser and lot of controls.so when i run the application scroll bar enabled in the form.each time when i perform edit,the scroll bar goes down.so that i can't able to view the controls in the top of the form.how to keep the scroll bar in upward direction?

please help me as soon as possible
Thanks in advance
Posted
Updated 26-Dec-12 18:47pm
v2
Comments
[no name] 27-Dec-12 0:52am    
http://msdn.microsoft.com/en-us/library/windows/desktop/bb787527(v=vs.85).aspx#standard_scroll_bars
Sergey Alexandrovich Kryukov 27-Dec-12 0:53am    
First of all, it's not clear what do you mean by "windows application". It could be WPF, Forms, Metro, something else. You need to tag it. A code sample could help.

The question does not look correct. If you have a scroll and it works, it shows you what you edit, which is quite reasonable. You cannot demand showing all areas at the same time. But of course you can control scroll position, it's just does not look right.

—SA
jai_mca 27-Dec-12 1:06am    
Thanks for your comment sergey.it is just a vb.net windows form.i want to know which property used to keep the vertical scroll bar to be moved manually(ie.,it could not be moved automatically when i do any operation)

Please see my comment to the question. It's not clear and detailed enough to give a final advice but…

Most likely, you will need to have a fixed part on the top and scrollable part on the bottom. Those parts could be some panels, but it also depends on the UI library you use.

I hope this simple hint will be enough for you to resolve it.

—SA
 
Share this answer
 
Drop a PANEL control ABOVE your EDITOR with the scrolling issue and Then you should be fine....

What ever controls you have in the TOP of your EDITOR....
Place them in the PANEL instead!

And then when your editor scrolls the panel will stay where it is!!!
 
Share this answer
 
Comments
jai_mca 2-Jan-13 0:41am    
thanks Zaf Khan

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