Click here to Skip to main content
15,893,722 members
Home / Discussions / C#
   

C#

 
GeneralAutoScroll Puzzle Pin
Paul Griffin6-Sep-04 3:08
Paul Griffin6-Sep-04 3:08 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart6-Sep-04 10:00
protectorHeath Stewart6-Sep-04 10:00 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin6-Sep-04 23:25
Paul Griffin6-Sep-04 23:25 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:27
protectorHeath Stewart7-Sep-04 6:27 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:38
Paul Griffin7-Sep-04 6:38 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:42
protectorHeath Stewart7-Sep-04 6:42 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin8-Sep-04 1:14
Paul Griffin8-Sep-04 1:14 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:46
Paul Griffin7-Sep-04 6:46 
Reading that back still didn't sound right i'll try one more time.

The sequence of events are as follows:

1. My panel receives focus and using the mouse wheel or scroll bar itself i scroll to some point on the panel.

2. I click on a second control e.g. a combo box.

3. I'm now finished using the combo box and i would like the panel to regain focus so that i can continue scrolling it.


4. I click back onto the panel, the panel_MouseDown event handler fires in which i include the line panel.Focus();

Problem:

Each time this line is executed the panel redraws itself with the scrollbar at its initial position and i have to scroll all the way down to where i was before i can continue to the next control lower down on the panel.

May sound like a trivial problem but as i've said repeatedly the functionality to set the scroll bar position explicitly doesn't seem to be there!

There hope that describes the situation a bit more clearly! Smile | :)

Paul Griffin
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:14
caspernjk6-Sep-04 2:14 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:07
caspernjk6-Sep-04 2:07 
GeneralRe: find the shortest path between two mouse clicks Pin
pxp6-Sep-04 3:54
pxp6-Sep-04 3:54 
GeneralSockets and threads! How to scale well :P (Part II) Pin
6-Sep-04 2:01
suss6-Sep-04 2:01 
GeneralRe: Sockets and threads! How to scale well :P (Part II) Pin
Heath Stewart6-Sep-04 9:53
protectorHeath Stewart6-Sep-04 9:53 
GeneralUsing COM classes Pin
_Magnus_6-Sep-04 1:58
_Magnus_6-Sep-04 1:58 
GeneralRe: Using COM classes Pin
mav.northwind6-Sep-04 2:21
mav.northwind6-Sep-04 2:21 
GeneralRe: Using COM classes Pin
_Magnus_6-Sep-04 2:30
_Magnus_6-Sep-04 2:30 
QuestionFile.Exists question? Pin
jzb6-Sep-04 1:03
jzb6-Sep-04 1:03 
AnswerRe: File.Exists question? Pin
Tom Larsen6-Sep-04 4:13
Tom Larsen6-Sep-04 4:13 
AnswerRe: File.Exists question? Pin
Heath Stewart6-Sep-04 9:43
protectorHeath Stewart6-Sep-04 9:43 
AnswerRe: File.Exists question? Pin
Bill Dean6-Sep-04 13:36
Bill Dean6-Sep-04 13:36 
GeneralSmart Device Application with SQL Server Ce Pin
mathon6-Sep-04 0:28
mathon6-Sep-04 0:28 
GeneralDataGrid hangs when using threads Pin
tobiaseriksson6-Sep-04 0:00
tobiaseriksson6-Sep-04 0:00 
GeneralRe: DataGrid hangs when using threads Pin
Roger Alsing6-Sep-04 3:47
Roger Alsing6-Sep-04 3:47 
GeneralRe: DataGrid hangs when using threads Pin
tobiaseriksson6-Sep-04 4:55
tobiaseriksson6-Sep-04 4:55 
GeneralChild Window with Focus *at same time as parent* Pin
Geekkit5-Sep-04 23:35
Geekkit5-Sep-04 23:35 

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.