H
Harley
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
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