Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
Questionhorizontal Panel scrolling - unexpected behaviour Pin
lukeer13-Jan-10 22:29
lukeer13-Jan-10 22:29 
AnswerRe: horizontal Panel scrolling - unexpected behaviour Pin
Covean13-Jan-10 23:07
Covean13-Jan-10 23:07 
GeneralRe: horizontal Panel scrolling - unexpected behaviour Pin
lukeer14-Jan-10 0:03
lukeer14-Jan-10 0:03 
GeneralRe: horizontal Panel scrolling - unexpected behaviour Pin
Covean14-Jan-10 1:22
Covean14-Jan-10 1:22 
GeneralRe: horizontal Panel scrolling - unexpected behaviour Pin
lukeer14-Jan-10 2:45
lukeer14-Jan-10 2:45 
GeneralRe: horizontal Panel scrolling - unexpected behaviour Pin
Covean14-Jan-10 3:36
Covean14-Jan-10 3:36 
AnswerRe: horizontal Panel scrolling - unexpected behaviour Pin
lukeer13-Jan-10 23:57
lukeer13-Jan-10 23:57 
GeneralRe: horizontal Panel scrolling - unexpected behaviour Pin
lukeer14-Jan-10 3:13
lukeer14-Jan-10 3:13 
Hello again,

I did some testing. As you can see in this piece of code,
if ((Control.ModifierKeys & Keys.Shift) == Keys.Shift)
            {
                // Get original horizontal position
                int iHorizontalPosition = HorizontalScroll.Value;
                if (iHorizontalPosition != m_iSavedHorizontalPosition)
                {
                    ; // Set breakpoint here
                }

                // [..] // Horizontal scrolling position calculation

                // Use result to scroll panel
                HorizontalScroll.Value = iHorizontalPosition;

                // Remember horizontal scrolling position
                m_iSavedHorizontalPosition = iHorizontalPosition;
            }

the method remembers m_iSavedHorizontalPosition (a MyPanel member variable) after applying it to HorizontalScroll.Value. On the next call the method compares the saved member variable with the value of HorizontalScroll.Value.

They differ.

Do I have to call some "ApplyScrollSettings"-method on MyPanel for HorizontalScroll.Value to take effect?


Ciao,


luker

QuestionApplication and Window's context menu Pin
Islorvat13-Jan-10 21:11
Islorvat13-Jan-10 21:11 
AnswerRe: Application and Window's context menu Pin
Eddy Vluggen13-Jan-10 22:47
professionalEddy Vluggen13-Jan-10 22:47 
QuestionSuppress Date on MS Report Pin
kruegersck13-Jan-10 18:45
kruegersck13-Jan-10 18:45 
AnswerRe: Suppress Date on MS Report Pin
loyal ginger14-Jan-10 5:20
loyal ginger14-Jan-10 5:20 
QuestionCancel CellValidating error in DataGridView, so can close form while invalid entry still present Pin
Nigel Mackay13-Jan-10 18:31
Nigel Mackay13-Jan-10 18:31 
AnswerRe: Cancel CellValidating error in DataGridView, so can close form while invalid entry still present Pin
6,921,364 and growing24-Apr-11 20:19
6,921,364 and growing24-Apr-11 20:19 
GeneralRe: Cancel CellValidating error in DataGridView, so can close form while invalid entry still present Pin
Nigel Mackay24-Apr-11 20:41
Nigel Mackay24-Apr-11 20:41 
GeneralRe: Cancel CellValidating error in DataGridView, so can close form while invalid entry still present Pin
6,921,364 and growing27-Apr-11 3:43
6,921,364 and growing27-Apr-11 3:43 
QuestionOperation is not supported for this type of object Pin
Abdul Rahman Hamidy13-Jan-10 18:09
Abdul Rahman Hamidy13-Jan-10 18:09 
AnswerRe: Operation is not supported for this type of object Pin
SeMartens13-Jan-10 20:20
SeMartens13-Jan-10 20:20 
GeneralRe: Operation is not supported for this type of object Pin
Abdul Rahman Hamidy13-Jan-10 20:26
Abdul Rahman Hamidy13-Jan-10 20:26 
QuestionDesktop boundary Pin
damianrda13-Jan-10 16:33
damianrda13-Jan-10 16:33 
AnswerRe: Desktop boundary Pin
Eddy Vluggen13-Jan-10 22:23
professionalEddy Vluggen13-Jan-10 22:23 
GeneralRe: Desktop boundary Pin
damianrda14-Jan-10 2:53
damianrda14-Jan-10 2:53 
GeneralRe: Desktop boundary Pin
Eddy Vluggen14-Jan-10 3:33
professionalEddy Vluggen14-Jan-10 3:33 
QuestionConstructing a Secure Socket Layer header and IPSec header Pin
3bood.ghzawi13-Jan-10 13:21
3bood.ghzawi13-Jan-10 13:21 
Questionhow to draw double dash line in gdi+ Pin
Berlus13-Jan-10 11:18
Berlus13-Jan-10 11: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.