473,654 Members | 3,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The scroll bar is not appearing in the panel control - Please help me !

Hi All,

I am trying to draw a picture in a panel control. It is drawing up
correctly.

When the picture size is greater than the panel control, I am expecting
horizontal and vertical scroll bars to draw up but for some reason it is not
appearing.

I have set Autoscroll = true and even the margin values for scroll but the
scroll bars are not appearing.

What am I missing? Any suggestions please.

Thanks for your time.

Regards
Anand Ganesh
Nov 15 '05 #1
1 7901
Hi,

Try host a PictureBox control inside the panel. Leave the panel's AutoScroll
property as True, and set the PictureBox's AutoSize property to true. Now,
use the PictureBox and not the Panel to display pictures.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Anand Ganesh" <an**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi All,

I am trying to draw a picture in a panel control. It is drawing up
correctly.

When the picture size is greater than the panel control, I am expecting
horizontal and vertical scroll bars to draw up but for some reason it is not appearing.

I have set Autoscroll = true and even the margin values for scroll but the
scroll bars are not appearing.

What am I missing? Any suggestions please.

Thanks for your time.

Regards
Anand Ganesh


Nov 15 '05 #2

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

Similar topics

14
49906
by: Open Wound | last post by:
What method can I call to programmatically scroll a panel? There is ScrollControlIntoView() but I don't have a control to scroll into view. I just want the panel to scroll up by 100 pixels. Setting AutoScrollPosition doesn't seem to work either. The values I set are not honored, and are apparently modified by the framework. By the way, what I am trying to implement is the behavior seen in Notepad (and other Windows apps) where you...
1
2475
by: Tia Carr | last post by:
When I try to place a child control on top of a panel control, the mouse pointer remains as a pointer instead of changing to a cross. I tried both the ShowGrid on/off, doesn't make a difference.. Can someone please point out the obvious... I have the 2002 version of VS.NET. TIA
9
7378
by: Kevin | last post by:
I would like to print the panel control. The panel controls contains images and lables. If i can capture as image i can use it for other purposes like Zooming etcc.. Any body have any idea ,,, ?
2
1619
by: Nicky Smith | last post by:
Hello, I'm making a kind of toolbar with a non-standard back color and a transparency effect. It looks kind of cool, but not with the ugly grey scrollbar appearing on the panel. I'd like to still be able to scroll (perhaps with 2 directional buttons - scroll left, scroll right), but avoid displaying the scroll bar.
17
1681
by: n. Smith | last post by:
Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen. Any suggestions. N.
0
1048
by: vijaykumarairbee | last post by:
hi, i have panel control with network images pan,routers etc. when i scroll my panel control the images refresh rate is very slow.it means while i scroll the panel images go inside the panel after it comes out the images are redraw. any one give me a solution.please.. thank u.
0
992
by: vijaykumarairbee | last post by:
hi, i have panel control with network images pan,routers etc. when i scroll my panel control the images refresh rate is very slow.it means while i scroll the panel images go inside the panel after it comes out the images are redraw. any one give me a solution.please.. thank u.
0
1413
by: canteloup | last post by:
Hi, I need to find a way to determinate where a control is on a windows form or panel control. I have a panel contro setted with autoscroll = true and when I move a control contained by it, I need to know where the control really is on the panel. So what the location show me is the position on the part of panel show in screen, it means that if I scroll the panel, the position of that control change. It's an c# app. Could some one help me?
1
1525
by: semomaniz | last post by:
I have a panel set up in a webpage and inside that panel i have various labels and textboxes setup. I am trying to assign a value to the label when the page loads. panel is named cpanel and a label is named lbltext. i am positive that we cannot directly have lbltext.text = "this is a simple test" on the page load event since the control is present inside a panel control. Please advice. Forgot to mention i am using C#.
0
8375
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
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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
8707
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
4149
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
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
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
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.