Solved

Problem with Graphics

Posted on 2004-04-19
3
213 Views
Last Modified: 2010-04-24
Hi

I wrote a program to display some graphs on a PictureBox using Graphics functions from VB.Net

The graph displays nicely, but it seems to have a little problem

Everytime I minimize the program or having another window cover the graph (even partialy), the graph's portion that has been covered is gone!!! (when minimize, all graph is gone)!!!

I would like to know what is the problem and how to solve it
(it is not related to focus, if another window is selected, as long i don't cover the graph, it stays there)
0
Comment
Question by:yako_c
3 Comments
 
LVL 15

Expert Comment

by:Timbo87
ID: 10864921
Is the graph dynamically drawn or loaded from a file?
0
 
LVL 6

Expert Comment

by:zulu_11
ID: 10865811
I think that you'll have to override the base class redraw sub so that everytime the form is redrawn you call the code to redraw whatever was there in the first time..
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 125 total points
ID: 10865982
You need to place the code for drawing your chart into your Forms or PictureBoxes Paint event.

Idle_Mind
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

778 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