Solved

Problem with Graphics

Posted on 2004-04-19
3
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 86

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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