Windows Mobile Form automatic scrollbar

Source: Internet
Author: User
From. NET Compact Framework 2.0, form has a new bool type property, which is used to determine whether to automatically add a scroll to form for scrolling when the control is out of the customer zone.
However, we recently encountered the use of this vscrollbar in. Net CF 1.1. Also
It is the same as making hundreds of millions of mistakes. Every time I think such a small problem will not be a problem, but in fact it is a problem (it seems that every time I work, I have to fight, like performing thin ice :))
After initcomponent, a bunch of controls are created to add them to the form. Of course, the position must be beyond the screen. Debug: Well,
After a small adjustment of largechange and smallchange, we basically work. But! But!
When the Landscape mode is changed, two vscrollbars are displayed. I
How can this happen when I get down? Isn't it difficult to convince myself to think a lot of possibilities. After reading a lot of comments on the Internet, the system will
Automatically add a vscrollbar for you to adjust, so that two scrollbars are displayed. What should I do? The high people on msdn provide the solution:
Getwindowlong
Then, setwindowlong ensures that the style is not any scroll. Style & = ~ (Ws_vscroll | ws_hscroll); however, I still cannot find a suitable location... In short, it is not working yet!
Finally, I couldn't help it. I simply added a new panel and set the size to the same as the clientsize. Then all the controls were put in it, and the world was finally quiet. Skillfully Add the keydown to implement complicated focus switching. Success.
But there is another one. During the test on smartphone, I found that he didn't give me the chance to get the keydown. All focus switching systems will be implemented for me. The original keydown-based focus switching policy does not cover the policy of adjusting the value of vscrollbar. No way to listen to all the focus results. Adjust the value of vscrollbar Based on the focus position, which is equivalent to the original policy !!
Alas, after two days, I finally got this thing done. I really don't know how many unknown mysteries there are in this form, and I don't know when to adjust it directly. net CF 2.0 development, please help me

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.