[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to Call Paint Event in C# using a "Smart Device" VS 2008 Project Under Windows CE 5.0

Posted on 2009-02-12
2
Medium Priority
?
1,210 Views
Last Modified: 2013-12-17
Hi,
I have a simple application that draws colored lines and rectangles on the
main application form based on the receipt, or no receipt of status data.
I call the Refresh(); event to force a screen repaint and it works GREAT
when running Visual Studio 2008 under Windows XP.
However, the same application running as a "Smart Device" project with
Windows CE 5.0 does not call the paint event as a result of the Refresh()
call.
Any ideas on how to force the paint event for ths project??
The event method is:
private myMainForm_Paint( object sender, PaintEventArgs e)
{
     // I make calls here to draw different colored lines and
    // rectangles here.
}
A method that I could call that calls the above EVENT method would be best.
ANY HELP WOULD BE APPRECIATED.  THANKS VERY MUCH.
0
Comment
Question by:gmcorbe
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 900 total points
ID: 23625494
myMainForm.Invalidate()
Application.DoEvents()
0
 

Author Closing Comment

by:gmcorbe
ID: 31546216
Thanks for the help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month18 days, 11 hours left to enroll

834 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