Solved

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

Posted on 2006-11-20
1
411 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now