473,769 Members | 5,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How set Scroll postion explicitely

I have a winform where I would like to explicitelty set the Horizontal
scroll postion for a panel.

I would have guessed something like the following would work but it does not

Contracts2_Fill _Panel.AutoScro llPosition.X = someNumber

Could someone give me the proper syntax?

Nov 20 '05 #1
4 16469
Hi,

If you have got AutoScroll enabled you can use the AutoScrollPosit ion
property.

James

--
Create interactive flowcharts, diagrams and UML models with ERM3 at
http://www.crainiate.net

"Woody Splawn" <wo***@splawns. com> wrote in message
news:ek******** ******@TK2MSFTN GP12.phx.gbl...
I have a winform where I would like to explicitelty set the Horizontal
scroll postion for a panel.

I would have guessed something like the following would work but it does not
Contracts2_Fill _Panel.AutoScro llPosition.X = someNumber

Could someone give me the proper syntax?


Nov 20 '05 #2
Thanks for responding.
If you have got AutoScroll enabled you can use the AutoScrollPosit ion
property.


Yes James but how?

Nov 20 '05 #3
Woody,
AutoScrollPosit ion is a Point structure you need to set it to a Point
structure. You cannot change just one part (X or Y) of the structure.

Me.AutoScrollPo sition = New Point(0,10)

Hope this helps
Jay

"Woody Splawn" <wo***@splawns. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Thanks for responding.
If you have got AutoScroll enabled you can use the AutoScrollPosit ion
property.


Yes James but how?


Nov 20 '05 #4
* "Woody Splawn" <wo***@splawns. com> scripsit:
I have a winform where I would like to explicitelty set the Horizontal
scroll postion for a panel.

I would have guessed something like the following would work but it does not

Contracts2_Fill _Panel.AutoScro llPosition.X = someNumber

Could someone give me the proper syntax?


Use '<...>.AutoScro llPosition = New Point(SomeNumbe r, <...>.AutoScrol lPosition.Y)'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

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

Similar topics

0
1374
by: wqhdebian | last post by:
I get a resutSet from one database as xml and want to insert these data to another database,and I want to form sql statement from the xml, and then using these sql statement to insert these data. First using jdom to get the rowdata from the xml as a collection,then catenate the element in the colletion on by ont.but does the postion of these element unchange? suppose the xml is <row> <name/> <address/>
6
2342
by: | last post by:
Hi all, I have a long web form on asp.net 2.0. When I go at the bottom and click on submit, a postback occurs and if there are any validation errors (no client-side checking being done), the page loads again, but this time the scroll position is at the bottom. This is annoying, because the actual validation error messages are on the top and the user cannot see them. Any ideas? I have turned off maintainscrollbackpositiononpostback in the...
3
2028
by: parm | last post by:
How do I preserve scroll position of a parent page when displaying a popup modal page. I have a page with a data grid on it (datagrid itself has no scrollbars, only the datagrid page has scrollbars), when I click on the grid row to display the details on a modal popup page the parent page (with datagrid on it) scrolls to the top before the popup page is displayed. I want the page to hold its current postion (it should show the row that I...
3
3321
by: Boni | last post by:
Dear all, I need a picturebox on which I can with GDI+ draw rectangles. The scroll and zoom should be supported. Do I have to manually resize rectangles,when zoom button clicked and change position when scroll done and redraw with new coordinates? Is there some standard procedure for that? Any link or advice is greatly appreciated. Thanks, Boni
7
11516
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this form is visible, the vertical scroll bar of the MDI parent appears automatically. What I want to do is write a routine within the MouseWheel event of the MDI
1
1536
by: Shyguy | last post by:
Is there a way to address the scroll bar on a form, to set its postion, with code?
1
2215
by: lg | last post by:
Is there a way to set/get vertical scroll postion without Javascript. At times I need to repaint the page but the page should scroll to certain postion depending on user input.
5
2349
by: googletired | last post by:
Hello, I have slight delima and not sure how to go about this. When a user clicks a link it brings them to a new page, when they have done what the need to do there is a link on that page to bring back to the original page that they were on. My question is. How can i retain the origianal scroll position that the user had on that page?
3
6391
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As you know, scroll position will be 0,0 after reloading page. But I want to go the postion where user click the link for popup windows.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3962
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 we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.