Click here to Skip to main content
15,886,664 members
Home / Discussions / C#
   

C#

 
GeneralRe: Image Processing Pin
Christian Graus28-Jun-07 11:47
protectorChristian Graus28-Jun-07 11:47 
GeneralRe: Image Processing Pin
james_dixon_200828-Jun-07 12:08
james_dixon_200828-Jun-07 12:08 
GeneralRe: Image Processing Pin
Luc Pattyn28-Jun-07 12:33
sitebuilderLuc Pattyn28-Jun-07 12:33 
AnswerRe: Image Processing Pin
Amar Chaudhary28-Jun-07 12:30
Amar Chaudhary28-Jun-07 12:30 
AnswerRe: Image Processing Pin
gumi_r@msn.com29-Jun-07 4:37
gumi_r@msn.com29-Jun-07 4:37 
QuestionScrollProperties.Value needs to be set twice? Pin
PhilDanger28-Jun-07 11:12
PhilDanger28-Jun-07 11:12 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
Luc Pattyn28-Jun-07 11:35
sitebuilderLuc Pattyn28-Jun-07 11:35 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
Mark Greenwood28-Jun-07 11:36
Mark Greenwood28-Jun-07 11:36 
Not sure why - but I just opened up System.Windows.Forms in reflector and looked at the Value property - the set_value has the following code;-

<br />
public void set_Value(int value)<br />
{<br />
    if (this.value != value)<br />
    {<br />
        if ((value < this.minimum) || (value > this.maximum))<br />
        {<br />
            throw new ArgumentOutOfRangeException("Value", SR.GetString("InvalidBoundArgument", new object[] { "Value", value.ToString(CultureInfo.CurrentCulture), "'minimum'", "'maximum'" }));<br />
        }<br />
        this.value = value;<br />
        this.UpdateScrollInfo();<br />
        this.parent.SetDisplayFromScrollProps(this.HorizontalDisplayPosition, this.VerticalDisplayPosition);<br />
    }<br />
}<br />


If you follow the UpdateScrollInfo call - it ends up calling into the Windows API and calling SetScrollInfo on the control...

If you follow SetDisplayFromScrollProps call it ends up calling a function called ApplyScrollbarChanges - which is one of the longest MS functions I have seen in a while - I'd look at the logic of that function and see if that is doing something weird....

Be interested to know if you crack the issue - my belief is that the first call fails (or appears to do nothing) - also maybe it's something simple like the control needs to be updated to reflect the change and ultimately calling the Value set property a second time causes that...

Mark
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
PhilDanger29-Jun-07 10:16
PhilDanger29-Jun-07 10:16 
AnswerRe: ScrollProperties.Value needs to be set twice? Pin
yurets__5-Jul-10 3:39
yurets__5-Jul-10 3:39 
QuestionSQL 2005 Connection Problem Pin
Muhammad Nauman Yousuf28-Jun-07 9:29
Muhammad Nauman Yousuf28-Jun-07 9:29 
AnswerRe: SQL 2005 Connection Problem Pin
Muhammad Qasim Pasta28-Jun-07 9:38
Muhammad Qasim Pasta28-Jun-07 9:38 
AnswerRe: SQL 2005 Connection Problem Pin
originSH28-Jun-07 22:06
originSH28-Jun-07 22:06 
QuestionXMLSerializer formatting xsi:xxx="whatever" in my namespace declaration. Pin
glenn8828-Jun-07 8:55
glenn8828-Jun-07 8:55 
AnswerRe: XMLSerializer formatting xsi:xxx="whatever" in my namespace declaration. Pin
BoneSoft28-Jun-07 12:04
BoneSoft28-Jun-07 12:04 
GeneralRe: XMLSerializer formatting xsi:xxx="whatever" in my namespace declaration. Pin
whenrybruce30-Mar-09 7:32
whenrybruce30-Mar-09 7:32 
QuestionForm Resizing Problems Pin
PhilDanger28-Jun-07 8:55
PhilDanger28-Jun-07 8:55 
AnswerRe: Form Resizing Problems Pin
Dave Kreskowiak28-Jun-07 9:30
mveDave Kreskowiak28-Jun-07 9:30 
GeneralRe: Form Resizing Problems Pin
PhilDanger28-Jun-07 9:42
PhilDanger28-Jun-07 9:42 
AnswerRe: Form Resizing Problems Pin
Luc Pattyn28-Jun-07 10:12
sitebuilderLuc Pattyn28-Jun-07 10:12 
GeneralRe: Form Resizing Problems Pin
PhilDanger28-Jun-07 10:58
PhilDanger28-Jun-07 10:58 
GeneralRe: Form Resizing Problems Pin
Luc Pattyn28-Jun-07 11:19
sitebuilderLuc Pattyn28-Jun-07 11:19 
Questionexecute Pin
SVb.net28-Jun-07 8:09
SVb.net28-Jun-07 8:09 
AnswerRe: execute Pin
ednrgc28-Jun-07 8:19
ednrgc28-Jun-07 8:19 
Questionexecute Pin
SVb.net28-Jun-07 8:07
SVb.net28-Jun-07 8:07 

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.