Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21835

Conflict between AutoRedraw and Gradient code

$
0
0
I have a custom form with no borders and a gradient background and a rich textbox. I have used code to make the rich text box transparent. So only the text in it willbe shown. But when the form is resized or when you write text in the rich text box, it kind of appears-disappears very quickly, as well as other elements such as the black picturebox in the image below.. I don't know if you get it. Like a lag.
If I set form's autoredraw to true, it removes the lag. But also removes the gradient background. But if I set the autoredraw=false then there will be both gradient and lag.
How can I solve this? I really want a good performance of my app.
Thank you.
Attachment 97741
Attached Images
 

Viewing all articles
Browse latest Browse all 21835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>