473,382 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Smooth panel scroll

Hi,

I have panel (with autoscroll property) on which I'm dynamicaly adding
of controls. When I want to scroll my panel using scrollbars it
freezes all the controls added on that panel, makes them nasty
stretch.

Is there any way to prevent that stretch, and scroll panel smoothly?

I tried to add DoEvents() to Scroll event of my panel, which prevent
controls from stretching, but after that new problem shows up. When
I'm scrolling my panel very fast from in ex. right to left, graphics
on panel hang over, and freez too.

I will be very gratefull for any kind of help, tpis or tricks how to
solve that problem.

Mateusz Zaj±kała
Jan 22 '08 #1
4 4668
On Tue, 22 Jan 2008 01:13:43 -0800, <ma**************@gmail.comwrote:
I have panel (with autoscroll property) on which I'm dynamicaly adding
of controls. When I want to scroll my panel using scrollbars it
freezes all the controls added on that panel, makes them nasty
stretch.

Is there any way to prevent that stretch, and scroll panel smoothly?
Normally, it would do so without any extra effort on your part. That
means that you've done something unusual that's causing the problem.

You should post a concise-but-complete sample of code that reliably
demonstrates the problem. Then we'll have a better idea of what problem
you're dealing with.

Pete
Jan 22 '08 #2
Normally, it would do so without any extra effort on your part. That
means that you've done something unusual that's causing the problem.
I don't think it would normaly works fine. Just try to add panel (ex.
400x300) to form, and then 15 columns of controls (textboxes) and 5
rows. Set panel autoscroll property to true, and you'll see what I
mean. When scrolling panel using thumb you'll see terrible scretch
effect.

Thanks for answer,
Mateusz Zaj±kała
Jan 24 '08 #3
Well, I tried exactly what you suggested. It works fine on my computer.
Sample code below.
Incredible. I tried your example, and I still have the same problem.
BUT when I run my application on another computer it worked just fine!
Looks like the problem is in my computer, not in code, so... Thank you
for your help, and sorry for posting problem which has nothing to do
with this group :>
Jan 24 '08 #4
On Thu, 24 Jan 2008 01:08:08 -0800, <ma**************@gmail.comwrote:
>Well, I tried exactly what you suggested. It works fine on my computer.
Sample code below.

Incredible. I tried your example, and I still have the same problem.
BUT when I run my application on another computer it worked just fine!
Looks like the problem is in my computer, not in code, so... Thank you
for your help, and sorry for posting problem which has nothing to do
with this group :>
That's okay...sometimes what's needed is independent confirmation that
your code is _correct_, so you can move on to other diagnostics. :)
Happy to help.

Jan 24 '08 #5

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

Similar topics

14
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. ...
3
by: Raymond Dynowski | last post by:
How do you force a panel to scroll in code. I have a large picture box inside my panel. I would like the panel to default to the centre of the screen, rather than the scrollbars showing the top...
0
by: Paul Loveless | last post by:
Hi all. I have a user control that contains a picturebox within a panel with the panel set to autoscroll the picturebox. One thing that I have noticed with the default functionality is when you...
2
by: Jason Chu | last post by:
Simple compatibility question, I have this: <table height="100%" width="50%" border="1"> <tr height="50%"> <td> <asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"...
0
by: deepuk75 | last post by:
Hi all, I have a user control that contains a picturebox within a panel. the panet has autoscroll property set to true.The problem I am facing is with the thumb track. if drag the scroll bar, the...
2
by: Paul E Collins | last post by:
I'm writing an application whose main window consists of a particular UserControl that I have placed inside a docked Panel so that it will fill the whole window. The panel also has the AutoScroll...
0
by: evan | last post by:
Hi, Pleeeeeaaaassseee help. I have spent literally days looking for a solution to this problem but cannot find the solution. Does anyone know how to smooth scroll a listbox? I can scroll using...
1
by: Bishman | last post by:
Hi, I have been trying to get text to scroll smoothly accross a windows form using GDI+ and a timer. Changing the position of the text by a configurable amount and calling invalidate to force a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.