473,465 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trouble setting Autoscrollposition

I am using autoscroll on a standard windows form of 5000x5000 pixels.
However, when trying to set the autoscrollposition it completely ignores it
(negative/positive makes no difference)
I am doing this in page_load. Does that make a difference?
I want the app to start in the center of the drawing area (2500 - width/2,
2500 - height/2)

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #1
3 7095
You need to set the AutoScroll property to true.

Regards
Lee
"Morten Wennevik" <mo************@hotmail.com> wrote in message
news:oprtqtnigcge0n9a@localhost...
I am using autoscroll on a standard windows form of 5000x5000 pixels.
However, when trying to set the autoscrollposition it completely ignores it (negative/positive makes no difference)
I am doing this in page_load. Does that make a difference?
I want the app to start in the center of the drawing area (2500 - width/2,
2500 - height/2)

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Nov 15 '05 #2
On Mon, 11 Aug 2003 15:04:38 +0100, Lee Alexander
<lee@No_Spam_Please_Digita.com> wrote:
You need to set the AutoScroll property to true.

Regards
Lee
"Morten Wennevik" <mo************@hotmail.com> wrote in message
news:oprtqtnigcge0n9a@localhost...
I am using autoscroll on a standard windows form of 5000x5000 pixels.
However, when trying to set the autoscrollposition it completely ignores

it
(negative/positive makes no difference)
I am doing this in page_load. Does that make a difference?
I want the app to start in the center of the drawing area (2500 -
width/2,
2500 - height/2)

-- Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/



No, the autoscroll property is already set, I use autoscrolling in another
procedure to paint the background correctly.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3
Hello,
I have recently experienced the same problem. A temporary work-around is
to assign the AutoScrollPosition during or after the Paint event.
I hope this helps.
Regards,
Martin

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mr_burns | last post by:
Hi, I am trying to set the height percantage of a table but not having any luck. The URL is: www.martynbissett.co.uk/oarsome/ As you can see the home page doesnt reach to the bottom of the...
2
by: Jason Moore | last post by:
I am trying to set up a web application so that I can use the root relative paths, but if I set the site up at http://localhost VS.Net only gives me the option to user absolute paths (relative,...
9
by: TD | last post by:
I am trying to add transactions to my code. The original code worked fine until I followed an example to setup transactions, now the code does strange things, but no error messages. Could...
2
by: pemigh | last post by:
If I type www.microsoft.com into the control txtSearchString which is bound to a hyperlink field, I can click it and automatically zoom off to the web page. But if I try to set the field with...
1
by: James Dean | last post by:
I get the following message when i try to set a pixel in the bitmap.......whats wrong and how can i fix it....... "Additional information: SetPixel is not supported for images with indexed pixel...
1
by: Charles Fineblum | last post by:
Hi: I'm trying to add a parmater of OleDbType SmallInt. It supposed to map to int16, so I do the following: OleDbParameter* pP2 = new OleDbParameter(S"FK_tblRaces", OleDbType::SmallInt, 0);...
0
by: Mek | last post by:
Hey Everyone, I am building a store application that is on an unsecured server. We got one of those shared certificates that takes you from (ex. http://www.mydomain.net to...
6
randomfool
by: randomfool | last post by:
I'm having trouble setting an onmousedown function in firefox. It works fine in IE 7 but when I attempt to call the function in firefox I am getting an "event is not defined" error. ...
4
by: Jeff | last post by:
hi asp.net 2.0 I have created a custom web control, here is it's header: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditUserBox.ascx.cs" Inherits="Controls_EditUserBox" %> ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.