473,396 Members | 1,757 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,396 software developers and data experts.

ScrollControlIntoView problem when adding to a panel

1
I have a problem with ScrollControlIntoView() in .NET 2.0:

I have a UserControl that holds a Panel which is set to AutoScroll. To this panel, I add a list of Controls so the panel needs to scroll. This is done in a for loop with custom positioning logic (basically this: start at int _top = 0, set the Top property of the current control to _top, add to _top the Height of the current control).

I finish this method (the one that the adding takes place in) with a ScrollControlIntoView(myControl) call.

The problem is that when the control to scroll to is at the end of the list, my entire contents are not aligned to the top of the panel anymore. It appears to me that the adding and control positioning code is not yet finally executed/rendered/what ever when I reach ScrollControlIntoView.

Help on this issue would be very much appreciated.
Nov 28 '08 #1
0 2176

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there...
4
by: Kerry Sanders | last post by:
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first...
2
by: Richard Muller | last post by:
Hi All, I'm running MSDE 2002, ver. 7.0.9466 with Net Framework 1.0, ver. 1.0.3705 over Win2000ProSP4. I created a new Visual C# project using the Windows Application template. I'm trying...
5
by: Jeremy Ames | last post by:
I have run into a major road block with my page development projects. I am trying to add a literal control to my asp.net page and I got an error stating that the control could not be added because...
0
by: Egghead | last post by:
Hi all, I have a panel that have some child controls inside . I use the ScrollControlIntoView method to programatically scroll the scroll bar so that some of the controls are visible, without...
52
by: lovecreatesbeauty | last post by:
Why the C standard committee doesn't provide a standard implementation including the C compiler and library when the language standard document is published? C works on the abstract model of low...
0
by: spikedpunchvictim | last post by:
Maybe someone here can help me. I am programatically adding Controls to a Panel whose AutoScroll Property is set to True. When I add more controls than can visually fit on the Panel, they just...
4
by: hula | last post by:
Hello i have a problem with adding usercontrols to a panel. I use a panel to add up to 20 usercontrols to a panel that has autoscrol enabled. The number of usercontrols to add, and the data...
3
by: Rob Meade | last post by:
...does it matter which order? ie... I create a table/tablerow/tablecell, I then create a new update panel, I create a drop down list, I add list items to the drop down list, I then add the...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
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
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,...

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.