Set ResizeRedraw property : Form Frame Window « GUI Windows Form « C# / C Sharp

C# / C Sharp
1. 2D Graphics
2. Class Interface
3. Collections Data Structure
4. Components
5. Data Types
6. Database ADO.net
7. Design Patterns
8. Development Class
9. Event
10. File Stream
11. Generics
12. GUI Windows Form
13. Language Basics
14. LINQ
15. Network
16. Office
17. Reflection
18. Regular Expressions
19. Security
20. Services Event
21. Thread
22. Web Services
23. Windows
24. XML
25. XML LINQ
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorial
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
C# / C Sharp » GUI Windows Form » Form Frame WindowScreenshots 
Set ResizeRedraw property
 


using System;
using System.Drawing;
using System.Windows.Forms;
   
class RandomClearResizeRedraw: Form
{
     public static void Main()      
     {
          Application.Run(new RandomClearResizeRedraw());
     }
     public RandomClearResizeRedraw()      
     {
          ResizeRedraw = true;
     }
     protected override void OnPaint(PaintEventArgs pea)
     {
          Graphics graphics = pea.Graphics;
          Random   rand = new Random();
   
          graphics.Clear(Color.FromArgb(rand.Next(256),
                                    rand.Next(256),
                                    rand.Next(256)));
     }
}

 
Related examples in the same category
1. Print out Form size and position related information
2. Use Font from Form to paint string on a form
3. Set ClientSize to change the form window size
4. FormStartPosition.CenterScreen
5. Form hideForm hide
6. Change Form window ownershipChange Form window ownership
7. Create Graphics Object from form window handleCreate Graphics Object from form window handle
8. Center form windowCenter form window
9. Assign Form window default valueAssign Form window default value
10. Change the background and text colors of a form using Color DialogChange the background and text colors of a form using Color Dialog
11. Draw image based on the window sizeDraw image based on the window size
12. Auto scroll form windowAuto scroll form window
13. Set Form window title and center the Form window on the desktopSet Form window title and center the Form window on the desktop
14. Add control to a form windowAdd control to a form window
15. Change Form window backgroundChange Form window background
16. Simplest form code: set window titleSimplest form code: set window title
17. Login fromLogin from
18. makes a new window out of a graphics path that has been traced on this forms spacemakes a new window out of a graphics path that has been traced on this forms space
19. Windows Forms Getting StartedWindows Forms Getting Started
20. A form-based Windows SkeletonA form-based Windows Skeleton
21. Simple formSimple form
22. Add controls to a formAdd controls to a form
23. Form for data inputForm for data input
24. Demonstrates creating a form in a console programDemonstrates creating a form in a console program
25. AutoScrollPosition
w__w___w__.___java___2_s.___c_om___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.