Solved

Problem with Graphics

Posted on 2004-04-19
3
224 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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