Hi,
I would like to have my user control to support scrollbars. So that when the
user control is embeded in a pane/view, and the view size is reduced to less
than the size of the usercontrol, the user control must show scroll bars.
Currently I tried by setting the AutoScroll property to true. Also, I
handled the 'Form1_SizeChan ged' event for the form. Here I invoke a 'Resize'
routine defined by the UserControl - 'ResizeControl' :-
public void ResizeControl(i nt width, int height)
{
this.Left = 10;
this.Top = 10;
this.Height = (height - 20) ;
this.Width = (width - 20) ;
}
But I am finding that the scrolbars are not appearing correctly. Only one
scrollbar appears at a time?
Please suggest possible solutions!
Thanks & Regards,
Rajendra 1 7673
Hi,
To force the scroll bars to appear, you might try to adjust the value of the
AutoScrollMinSi ze property rather than changing the size of the control
itself.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Raj" <ra************ *@networkgenera l.com> wrote in message
news:eP******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I would like to have my user control to support scrollbars. So that when the user control is embeded in a pane/view, and the view size is reduced to less than the size of the usercontrol, the user control must show scroll bars.
Currently I tried by setting the AutoScroll property to true. Also, I handled the 'Form1_SizeChan ged' event for the form. Here I invoke a 'Resize' routine defined by the UserControl - 'ResizeControl' :-
public void ResizeControl(i nt width, int height)
{
this.Left = 10;
this.Top = 10;
this.Height = (height - 20) ;
this.Width = (width - 20) ;
}
But I am finding that the scrolbars are not appearing correctly. Only one scrollbar appears at a time?
Please suggest possible solutions!
Thanks & Regards,
Rajendra This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: msnews.microsoft.com |
last post by:
Hello,
I am trying to remove the scrollbars from any page I load up into the
browser control on a window form. I first tried the following:
browserDoc = (mshtml.HTMLDocument)browser.Document;
browserBody = (mshtml.HTMLBody)browserDoc.body;
browserBody.scroll = "no";
This worked for most pages but not all. When I navigated to the following
web site:
|
by: Kenneth H. Brannigan |
last post by:
Hello,
I am trying to remove the scrollbars from any page I load up into the
browser control on a window form. I first tried the following:
browserDoc = (mshtml.HTMLDocument)browser.Document;
browserBody = (mshtml.HTMLBody)browserDoc.body;
browserBody.scroll = "no";
This worked for most pages but not all. When I navigated to the following
web site:
|
by: Tor Inge Rislaa |
last post by:
How to control the scrollbars in datagrid
In VB 6.0 you could control if you wanted the scrollbars to be automatic on
when needed or if you just wanted to show vertical or horizontal scrollbar.
Is this possible in a datagrid in VB.net and how?
TIRislaa
|
by: GTi |
last post by:
I have a popup window, If this window is to smaal the scrollbars is
visible.
Is there any JavaScript available so I can check if the scrollbars is
visible on page (right and bottom side)?
Then I can auto resize the window so it dosen't show (until a maximums
size).
|
by: james |
last post by:
How can I control the placement of scrollbars in mdi child windows? I need
to place a control at the top of my child form and this control needs to
always be visible. The rest of the page needs to scroll. However the
default behavior has the control scroll with the rest of the page. Even a
toolstrip demonstrates this same behavior. Any ideas.
| |
by: TomasFloyd |
last post by:
Hi Everyone
I'm using the standard ListView control of VS 2003.
I would like to know if there is a way to catch the event of the scrollbars
attached to a ListView being 'scrolled' or 'clicked'? I would like populate a
ListView with 20 items at first, and then add items as the user scrolls.
If anyone has done this before, some code example would greatly be
appreciated.
Thanks a lot
|
by: Sin Jeong-hun |
last post by:
I need to create a table user control. The table will display many
cells so this control requires scrollbars should be displayed when some
cells cannot be displayed. At first, I draw the table on a UserControl,
and resized the UserControl to the exact size of table and placed it on
a Panel whose AutoScroll is true. So when the table(actually a
UserControl) gets bigger, the Panel displays scrollbars automaticaly,
this seemed fine.
But...
|
by: panks2007 |
last post by:
Hi,
The scrollbars property in one activex which works similar to scrollbars property of textbox control when click on the region between slilder and arrow its moving either end.
so, how to make it move smoothly when click between Slider and arrow
Pankaj
|
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= |
last post by:
Hi,
Is there a way to detect whenever scrollbars (the vertical) are shown on a
treeview
I need to know.
1) If scrollbars are visible after a rezise
2) If scrollbars are visible after change in content (e.g. nodes
collapsed/expanded, nodes added/deleted ). Any event to hook into?
|
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...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
|
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...
|
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
| |
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...
| |