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

How to create a user control with scrollbars?

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 the problem is, I need to place controls like TextBox on some
cells. When the Panel's AutoScroll is set to true, if a TextBox gets
focused while some part of the TextBox is not in visible area , the
Panel automatically scrolls the table to display the whole TextBox.
This caused problems. The TextBox is not exactly displayed in the
location of the cell.

Anyways, that's why I'm trying to create a real scrollable table
control. I want to implement scrolling by myself. But I've never done
something like this before. So Is there any good articles or howtos I
can get started with? I need to know the basic concept of displaying
portion of an area of the entire visible area,. and update the portion
of area when user scrolls the scrollbar.

Thank you very much in advance!

Aug 19 '06 #1
0 1546

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

Similar topics

6
by: mmac | last post by:
I am trying to create something like this: Response.Write "<a href=""javascript:openWindow('www.domain.com/events/EventDetails.asp?EventID=" & rsEvents("OccID") &...
2
by: Dropstengel | last post by:
Hi, How to open a new window without any window decoration? Frank
1
by: Gerben van Loon | last post by:
Hi, I've drawn my own control using GDI+. But the control is bigger than a normal form could display, so I want to add scrollbars. Saw somewhere that you have to inherit from...
0
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;...
0
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;...
1
by: Raj | last post by:
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,...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
5
by: Charlie Brown | last post by:
I have a user control where I override the paint event and draw the control myself. When I sraw outside of the visible area, I need the scrollbars to appear and allow the user to scroll the...
2
by: jfolland | last post by:
I am trying to add a basic user control to a web site; coming from visual studio 2003 this was extremely easy. I would just add the user control and then add the controls that I want on that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.