Re: Is this a bug?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



They document this in the help as being the way it is designed to work but
what I suspect is they found it was a bug so documented it into a feature.
Or is there another reason it would work this way?

I would work this way because that is how it was designed to work. You're a
programmer, right? So, you create the business rules in your code, right?
So, if you say that a property which is positive results in a result that
appears negative, that is the way it works. In this case, the result is a
distance, although it could be either horizontal or vertical, up, down,
right or left. A distance is never negative. Let's say that you and I are
standing 3 feet apart, and you are to my north. How far apart are we? (Hint:
3 feet)Now, you move to a position 3 feet to my south. How far apart are we?
(Hint: 3 feet) But are you still in the same postion relative to the North
Pole? (Hint: No) Is your distance from me, or your distance from the North
Pole, a negative number? (Hint: No)

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:OHT8vAiWGHA.924@xxxxxxxxxxxxxxxxxxxxxxx
I'm setting the AutoScrollPosition of a scrollable control. I was having
quite a bit of trouble with it not doing what I expected. Eventually I
worked out that if you want it to have a negative value you have to pass
in a positive value, eg

Point p = new Point(100,100);
Console.WriteLine(p.ToString());
this.AutoScrollPosition = p;
Console.WriteLine(this.AutoScrollPosition.ToString());

will output:

{X=100,Y=100}
{X=-100,Y=-100}

They document this in the help as being the way it is designed to work but
what I suspect is they found it was a bug so documented it into a feature.
Or is there another reason it would work this way?

Cheers,
Michael





.



Relevant Pages

  • Re: Free Will
    ... action at a distance is real. ... is a physical reason, not just a spooky action at a distance, ... We can *reason* as well as ... but the magnets and their motion exist in the universe. ...
    (comp.ai.philosophy)
  • Re: The Speed of Light
    ... the reason we use those units is that they match ... characteristic human distance and time scales. ... (1 mile = 804672000000/149896229 nils exactly.) ... might be called a ceskick or something, ...
    (sci.physics.relativity)
  • Re: WM password idiocy
    ... Can't think of any other reason. ... I also noticed the "hint" tab in WM. ... letter upper, plus "!" ... after it, padding it with zeros, capitalizing the first letter, or ...
    (microsoft.public.pocketpc)
  • Re: How long is a muon when at rest?
    ... If you're addressing me and you expect a reasonable response, ... Is there some reason you can't just ask the ... A and B are separated by a fixed distance. ... Draw a horizonal axis and label it `x'. ...
    (sci.physics.relativity)
  • Re: What exactly does "Maximum Distance Exceded" mean?
    ... but for some reason not setting their stratum to 16. ... Distance exceeded means that the combination of worst case round trip time induced error and an assumed drift of 15ppm since the last valid time on the root server has exceeded 1 second. ... What is described here is not what is conventionally called an island. ...
    (comp.protocols.time.ntp)