How to draw string from selected text?

  • Thread starter Thread starter JOHN_97
  • Start date Start date
J

JOHN_97

Guest
I want to draw string at picturebox from selectedtext combo box from another form. The problem is it only choose the first text. Here is my code. i cannot to put the picture because my acc not verify yet.
Form7.Show()

label = Form7.ComboBox1.SelectedText
myfont = New System.Drawing.Font("Times new roman", 12, FontStyle.Regular)
mybrush = New Drawing.SolidBrush(Color.Black)
m_BufferGraphics.DrawString(label, myfont, mybrush, m_X1 - 20, m_Y1 - 40)

Continue reading...
 
Back
Top