Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to add a scroll bar to a dialog window?  (.NET / C#)

Posted on 2006-11-20
1
436 Views
Last Modified: 2012-05-05
Can someone provide me an examable of how to add a scoll bar to a dialog window?  I need to display a dialog window that goes beyond the length of the visual display and therefore would need a scroll bar to see the rest of the contents.    

CookingCalc.frmViewCCReport frm = new CookingCalc.frmViewCompReport(this);
frm.ShowDialog();
frm.Dispose();
0
Comment
Question by:Hojoformo
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 17980049
You can set the AutoScroll() property of the Form to True.  Design the form the way you want it to look.  Then shrink it down to a manageable size.  With AutoScroll() True, scrollbars will appear to allow you to navigate to the other controls.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
send messages to whatsapp programatically 2 65
Video Player 12 28
insert value of checklistbox checked 4 32
how to remove duplicate code from my project 5 35
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question