|
-
Jul 29th, 2017, 02:25 AM
#1
Thread Starter
Member
Want to retain property of Autoredraw and clipcontrol.
Hi All,
Kindly suggest me how to retain property like Clipcontrol and Autoredraw property for forms.
After running my application, if i press Window+E button ,it start flickering. So i have make paint method in paint event and make doublebuffered property true, but yet it is flickering .
After that i make one bitmap by using this code
bitmap1 = new bitmap(Me.width,me.height,Me.creategraphics)
graphic1= graphic.fromimage(bitmap)
graphic1.drawimage(Image.jpg,0, 0, Me.width,Me.Height)
Me.creategraphics.drawimage(bitmap1,0,0,Me.width,Me.height)
Me.backgroundimage= bitmap1
It start working, it is not flickering now but i drw some string in above that image in runtime through drawstring. That string is always frickering.
My application has to run in multmonitor. So i have done same thing for multimonitor. I want to persist that string as well in form.
I am converting code from vb 6.0 to vb.net, previously in vb 6.0 they simply call Form1.paintpicture(image,0,0,Me.Height,Me.width) and through print method they print string to form and they make autoredraw poperty and clipcontrol to true, but this property is not available in vb.net. How can i solve thid flickering issue.
After pressing window+E, each time form_paint method gets fire and they call drawstring and drawimage . But through above procedure, flickering is stopped in image but string is yet flicker.
Kindly suggest me.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|