Solved

Problem with Graphics

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now