473,480 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ScrollBar Location

I have a panel on a form. The panel is larger than the form and it contains
user controls of the same width as the panel. (Therefore, not all area of
user control/panel are visible. The panel AutoScroll property is set to
True.

The problem is that when the user control on the panel recieves the focus,
the panel moves tovard right little bit (it scrolls to the right). I would
like to make not to scroll untill user wants to scroll it to the right. Is
there a way to do that?

Thank you,
Dino

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com

Nov 20 '05 #1
1 1518
* "Dino M. Buljubasic" <di*************@rivusglobal.com> scripsit:
I have a panel on a form. The panel is larger than the form and it contains
user controls of the same width as the panel. (Therefore, not all area of
user control/panel are visible. The panel AutoScroll property is set to
True.

The problem is that when the user control on the panel recieves the focus,
the panel moves tovard right little bit (it scrolls to the right). I would
like to make not to scroll untill user wants to scroll it to the right. Is
there a way to do that?


I am not sure if this can be done. Notice that you can set the auto
scroll position by setting the conrol's 'AutoScrollPosition' property.

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

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

Similar topics

4
6246
by: simon lee | last post by:
Dear all, I have a html code like <a href="product.html" target=new>product</a> Although the file "product.html" can be opened at the new page, but with scrollbar, menu, location, and so...
3
5272
by: simon lee | last post by:
Dear all, I have a html code like <a href="product.html" target=new>product</a> Although the file "product.html" can be opened at the new page, but with scrollbar, menu, location, and so...
1
1488
by: Adam | last post by:
Hi I have a script for a scrollbar that appears at the top of my webpage, I want to be able to call the script from a central file so I can add the scrollbar to all my pages and I will only have...
3
9875
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
6
10917
by: Colin McGuire | last post by:
Hello experts, this is a repost but I have been (much) more clear. I want to know the position of the horizontal scrollbar in a textbox as a percentage - if the horizontal scrollbar is hard...
22
2328
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
0
1011
by: Ron Dahl | last post by:
I have a form containing a panel and a picturebox inside the panel. The form load code changes the panel size to 400x400 and the picturebox size to 800x800 Autoscroll on the panel is set to true....
0
1069
by: SAL | last post by:
I have the following line of code in my Page_Load Event of my ASP.net page: txtExplanationofChange.Attributes.Add ("style","overflow :hidden"); which allows me to can turn off the Scrollbar of my...
1
3276
by: Matt S | last post by:
I have an advertiser that delivers content in an iFrame. Because of space limitations on my page, I have set the height of the iFrame to be half that of it's contents. The problem is that the width...
1
13702
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
0
7037
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,...
0
7032
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,...
0
7076
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...
0
5321
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,...
1
4767
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
2990
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
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
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 ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.