Click here to Skip to main content
15,892,298 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionScrollbar automatically reset when control get focus ? Pin
Pham Hoang Le5-Mar-09 5:21
Pham Hoang Le5-Mar-09 5:21 
AnswerRe: Scrollbar automatically reset when control get focus ? Pin
Curtis Schlak.5-Mar-09 10:06
Curtis Schlak.5-Mar-09 10:06 
QuestionRe: Scrollbar automatically reset when control get focus ? Pin
Luc Pattyn5-Mar-09 10:57
sitebuilderLuc Pattyn5-Mar-09 10:57 
JokeRe: Scrollbar automatically reset when control get focus ? Pin
Curtis Schlak.5-Mar-09 11:03
Curtis Schlak.5-Mar-09 11:03 
GeneralRe: Scrollbar automatically reset when control get focus ? Pin
Luc Pattyn5-Mar-09 11:29
sitebuilderLuc Pattyn5-Mar-09 11:29 
GeneralRe: Scrollbar automatically reset when control get focus ? Pin
Pham Hoang Le5-Mar-09 18:03
Pham Hoang Le5-Mar-09 18:03 
QuestionRe: Scrollbar automatically reset when control get focus ? Pin
Curtis Schlak.6-Mar-09 2:34
Curtis Schlak.6-Mar-09 2:34 
AnswerRe: Scrollbar automatically reset when control get focus ? Pin
Pham Hoang Le6-Mar-09 6:33
Pham Hoang Le6-Mar-09 6:33 
Hi,

I did what you said and surprisingly, it did not cause the problem. Then i tried to point out what's the difference. After a while, i found out that my control which is inside the Panel, actually extends the UserControl, and that's the cause of the problem. If i change it so that it extends other Control, such as Panel, then no problem at all. I still dont know why.

In summary :

If a Panel with Scrollbar contains an UserControl, then when the Panel loose focus(user click on other Control outside the Panel) and then get back the focus(user click on the UserControl), then the Scrollbar will automatically reset to default position !

But if it's other kind of Control instead of UserControl, then everything is fine.

I'll try to find out why.
GeneralRe: Scrollbar automatically reset when control get focus ? Pin
Curtis Schlak.6-Mar-09 7:36
Curtis Schlak.6-Mar-09 7:36 
GeneralRe: Scrollbar automatically reset when control get focus ? Pin
Pham Hoang Le8-Mar-09 21:38
Pham Hoang Le8-Mar-09 21:38 
GeneralRe: Scrollbar automatically reset when control get focus ? Pin
Curtis Schlak.9-Mar-09 2:17
Curtis Schlak.9-Mar-09 2:17 
QuestionConvert SQL DataTable to Excel/CSV Pin
nt_virus5-Mar-09 3:05
nt_virus5-Mar-09 3:05 
QuestionRe: Convert SQL DataTable to Excel/CSV Pin
led mike5-Mar-09 6:27
led mike5-Mar-09 6:27 
AnswerRe: Convert SQL DataTable to Excel/CSV Pin
Eddy Vluggen5-Mar-09 6:52
professionalEddy Vluggen5-Mar-09 6:52 
AnswerRe: Convert SQL DataTable to Excel/CSV Pin
nt_virus5-Mar-09 18:11
nt_virus5-Mar-09 18:11 
GeneralRe: Convert SQL DataTable to Excel/CSV Pin
Eddy Vluggen5-Mar-09 23:55
professionalEddy Vluggen5-Mar-09 23:55 
GeneralRe: Convert SQL DataTable to Excel/CSV Pin
nt_virus6-Mar-09 4:16
nt_virus6-Mar-09 4:16 
GeneralRe: Convert SQL DataTable to Excel/CSV Pin
Curtis Schlak.6-Mar-09 4:24
Curtis Schlak.6-Mar-09 4:24 
GeneralRe: Convert SQL DataTable to Excel/CSV Pin
Eddy Vluggen6-Mar-09 6:12
professionalEddy Vluggen6-Mar-09 6:12 
QuestionDropdown in combobox with sorting Pin
Any_India4-Mar-09 19:43
Any_India4-Mar-09 19:43 
AnswerRe: Dropdown in combobox with sorting Pin
dan!sh 4-Mar-09 21:30
professional dan!sh 4-Mar-09 21:30 
AnswerRe: Dropdown in combobox with sorting Pin
jaypatel5128-Mar-09 20:59
jaypatel5128-Mar-09 20:59 
QuestionRE: Windows Services Pin
chandhuBTS4-Mar-09 0:49
chandhuBTS4-Mar-09 0:49 
AnswerRe: RE: Windows Services Pin
Ashfield4-Mar-09 1:20
Ashfield4-Mar-09 1:20 
GeneralRe: RE: Windows Services PinPopular
Eddy Vluggen4-Mar-09 2:18
professionalEddy Vluggen4-Mar-09 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.