PC Review


Reply
Thread Tools Rate Thread

Can't get graphics to display

 
 
Harley
Guest
Posts: n/a
 
      30th Jan 2007
I am trying to build graphic charts in a vb.net module callable from another
form. I have translated this code from VB6 where it worked well. I can
make the code work to bring up and display the form and its command buttons.
I can track the code execution with debug. However, I cannot change the
background color of the form or see any of the drawline or drawtext
functions. Here are a few relevant lines of code:

Module SMPLOT3

Dim f As New Market_Charts.Form2()

Dim g As Graphics = f.CreateGraphics

f.BackColor = System.Drawing.Color.Black

g.DrawString(ymn1, myFont, New SolidBrush(Color.Yellow), currentx, currenty)

Any ideas?

Harley




 
Reply With Quote
 
 
 
 
Chris Dunaway
Guest
Posts: n/a
 
      30th Jan 2007
On Jan 29, 11:30 pm, "Harley" <harleyfeld...@msn.com> wrote:
> I am trying to build graphic charts in a vb.net module callable from another
> form. I have translated this code from VB6 where it worked well. I can
> make the code work to bring up and display the form and its command buttons.
> I can track the code execution with debug. However, I cannot change the
> background color of the form or see any of the drawline or drawtext
> functions. Here are a few relevant lines of code:
>
> Module SMPLOT3
>
> Dim f As New Market_Charts.Form2()
>
> Dim g As Graphics = f.CreateGraphics
>
> f.BackColor = System.Drawing.Color.Black
>
> g.DrawString(ymn1, myFont, New SolidBrush(Color.Yellow), currentx, currenty)


Where are you putting this code? The code you supplied will not
compile as is. Can you post a short but complete program that
illustrates your problem?

Try the following site for graphics related information for .Net:

www.bobpowell.net


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display of embedded graphics lags, sometimes they will not display =?Utf-8?B?a2w=?= Microsoft Word Document Management 1 21st Dec 2005 08:09 PM
Graphics display pgm? KiwiBrian Freeware 6 11th Dec 2004 10:18 AM
Some Graphics do not display =?Utf-8?B?RlBW?= Windows XP Internet Explorer 1 29th May 2004 03:29 PM
graphics won't display?? Steve_O Windows XP Internet Explorer 3 12th Feb 2004 06:33 PM
Graphics do not display Sharon Miller Windows XP Internet Explorer 3 10th Sep 2003 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:31 AM.