473,396 Members | 2,081 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,396 software developers and data experts.

Invokation of Form.Paint

Hi,

Is there a way like in MFC's InvalidateRect function to call some function
that in turns will fire a forms Paint event. The Paint event is fired
automatically when you e.g. rezise your form - can you invoke this call
manually if the basis of what needs to be painted is altered.

best regards
Jesper
Nov 16 '05 #1
2 8430

Yes, use just Form.Invalidate(Rectangle)

"Jesper" <Je****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
Hi,

Is there a way like in MFC's InvalidateRect function to call some function
that in turns will fire a forms Paint event. The Paint event is fired
automatically when you e.g. rezise your form - can you invoke this call
manually if the basis of what needs to be painted is altered.

best regards
Jesper

Nov 16 '05 #2
There's also Update() method which you might need to call to force the
painting to occur.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Jesper" <Je****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
Hi,

Is there a way like in MFC's InvalidateRect function to call some function
that in turns will fire a forms Paint event. The Paint event is fired
automatically when you e.g. rezise your form - can you invoke this call
manually if the basis of what needs to be painted is altered.

best regards
Jesper


Nov 16 '05 #3

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

Similar topics

4
by: Marc | last post by:
When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe works fine but the initial show looks like the...
0
by: lucasimone | last post by:
Hi, i need some help to a pocket PC application. I need to implement a Form that contains a WebBrowser to display somes HTML forms. But when users invoke a submit, of that form, i need to capture...
4
by: ChadDiesel | last post by:
Hello, I have a form that users type in a part number and a due date. I then run a report that prints the part number, the components needed and the processes needed. For example: ...
2
by: Serge Klokov | last post by:
Hi! 1. Please, help with example "paint on form by mouse" 2. Below is my example, but it clear the line after each Refresh()... how to fix? 3. How to draw the line in Mouse_Move event? ...
1
by: Steve Teeples | last post by:
How do you force a form to refresh itself if the contents of the form become corrupted? For example, while moving a second form over the first, I want to force a refresh of the first. -- Steve
1
by: miguelfc | last post by:
Hi, I've searched a lot and couldn't find an answer to my problem. I want to have a field in my form that allow me to paste an image from the clipboard to, for example, a Paint field. Then, I...
2
by: Steve | last post by:
I use the paint event to call an external object that will write text and or drawings to the form - (to make it persistant) If i have the form property DoubleBuffered set to true the text will...
2
by: =?Utf-8?B?UlJK?= | last post by:
Hello, I would like to add the Paint handler to the form. How to do it? Thanks in advance.
1
by: woshicike | last post by:
Hi, I created a web service. When I place it under visual studio development server, the asynchronous invokation of web methd works fine. But when I publish the web service under IIS 5.1, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.