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