Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / March 2008

Tip: Looking for answers? Try searching our database.

Is there a equivalent for ScrollWindow in dotnet?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bolo - 08 Mar 2008 02:23 GMT
I wrote a winform control, and want to scroll some part of the control, but
other parts.

Can I use DisplayRectangle? dotnet document only explain it very simply.

Thanks.
Bob Powell [MVP] - 08 Mar 2008 19:05 GMT
Use interop to call the Win32 ScrollWindow API.

Signature

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

>I wrote a winform control, and want to scroll some part of the control, but
>other parts.
>
> Can I use DisplayRectangle? dotnet document only explain it very simply.
>
> Thanks.
Bill Woodruff - 09 Mar 2008 07:34 GMT
"I wrote a winform control, and want to scroll some part of the control, but
[not ?] other parts.

Can I use DisplayRectangle? dotnet document only explain it very simply."

Hi Bolo,

I think giving a little more specific information about what you are doing
(is this a UserControl hosted in a Form ?  what type of container are you
referring to :  a Form ?  A Panel ?) would help us give you a more focused
response. In this case are the things you want to move in one container, and
the things you don't want to move in another container, or are they all in
the same container ?

best, Bill
bolo - 10 Mar 2008 10:40 GMT
Hi, Bill:

Thanks for your more detailed consideration.
Actually  my userControl will be hosted in IE, so if use interop to call the
Win32 ScrollWindow API will
cause secrurity problem.

The logic difficulty is, I want implement a feature like MS Excel's freezing
window. The top left area is
frozen, the left area, top area, and bottom right can be scrolled.

> "I wrote a winform control, and want to scroll some part of the control,
> but
[quoted text clipped - 13 lines]
>
> best, Bill
Michael C - 11 Mar 2008 03:58 GMT
> Hi, Bill:
>
[quoted text clipped - 6 lines]
> freezing window. The top left area is
> frozen, the left area, top area, and bottom right can be scrolled.

Dot net supports a scrollable control feature by setting by using the 3
Autoscroll properties. This applies to the entire control though so in order
to do what you want you'll need to use 2 usercontrols.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.