DrawString text disappears

gsilvey
04-16-2004, 03:03 PM
I am using very simple DrawString code. The text displays, but after resizing the form, it goes away. Is there some additioinal call I need?

The code is something like:

Dim gr As Graphics = Me.ipInkPicture.CreateGraphics
gr.DrawString("This is a test", Font, Brushes.Black, x, y)
gr.Flush(Drawing2D.FlushIntention.Sync)

LaVolpe
04-16-2004, 03:15 PM
I'm guessing this is .Net? We'll if forms are the same as VB6, then turn your form's autoredraw on and/or refresh the form: me.refresh

reboot
04-16-2004, 03:59 PM
Forms aren't the same as VB6.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum