473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ 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 1523
* "Dino M. Buljubasic" <di************ *@rivusglobal.c om> 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 'AutoScrollPosi tion' 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
6263
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 on, please help me to write the javascript code or others in order to remove all such features when open this page, thanks.
3
5283
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 on, please help me to write the javascript code or others in order to remove all such features when open this page, thanks.
1
1498
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 to edit the main file which will change the text on all my pages Can anyone help??? this is script for the scrollbar ---------------------------------------------------------------------------
3
9889
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 that I can enable vertical or horizontal scrollbars for the textbox and their wrapping but thats it for modifications of the scrollbar.
6
10928
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 left, I want to display 0% on the form. - if the horizontal scrollbar is smack in the middle, I want to display 50% on the form. - if the horizontal scrollbar is 2/3rd along the X-axis,
22
2342
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 the user autoscrolls the usercontrol (other things that are on the usercontrol I want to scroll, but haven't included any here). Here are the steps to reproduce my problem. 1. Launch Visual Studio and create a new Windows application with...
0
1030
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. The picturebox sizemode is set to AutoSize and StretchImage An image of size 400x400 is loadeded into the picturebox. Everything works as expected. I have also added the following code (see end of message). The pagedown does shift the visible...
0
1077
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 multiline textbox. This gets rid of the scrollbar just fine, however the textbox does not stay in the location where I had placed it on the webpage in design mode. All the controls I have on my webpage stay in the position where I put them in...
1
3283
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 of the iFrame is 960. That means the vertical scrollbar on the right side appears off screen for a lot of people. Is it possible for me to switch the scrollbar from the right side of the iFrame to the left side without having access to the...
1
13723
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 inconsistent in the detection of a vertical scrollbar. This involves situations when less than the client area is needed to hold the small amount of data. The inconsistency is when adjusting the panel size within or just below the bottom row....
0
8425
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
8418
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8288
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...
1
5886
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
5445
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
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...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2438
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
0
1271
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.