PC Review


Reply
Thread Tools Rate Thread

Custom Button in Designer -> Problem

 
 
Rudolf Ball
Guest
Posts: n/a
 
      2nd Sep 2003
Hi NG,

its a tiny problem, but it is When painting my custom button in the
designer and then resizing it, it doesn`t clear repaints the button. The
button is full of stripes, everything is blurred. What have I forgotten in
code?

Thank you

Rudi


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      2nd Sep 2003
Hello,
"Rudolf Ball" <(E-Mail Removed)> schrieb:
> its a tiny problem, but it is When painting my custom button in the
> designer and then resizing it, it doesn`t clear repaints the button. The
> button is full of stripes, everything is blurred.


Maybe you should add the control style 'ControlStyles.ResizeRedraw'. Have a
look at the documentation on how to use it.

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Rudolf Ball
Guest
Posts: n/a
 
      2nd Sep 2003
Danke!

"Herfried K. Wagner [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> "Rudolf Ball" <(E-Mail Removed)> schrieb:
> > its a tiny problem, but it is When painting my custom button in the
> > designer and then resizing it, it doesn`t clear repaints the button. The
> > button is full of stripes, everything is blurred.

>
> Maybe you should add the control style 'ControlStyles.ResizeRedraw'. Have

a
> look at the documentation on how to use it.
>
> HTH,
> Herfried K. Wagner
> --
> MVP · VB Classic, VB.NET
> http://www.mvps.org/dotnet
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I create a custom control with a designer like a form designer trant Microsoft C# .NET 5 22nd Dec 2009 11:03 PM
custom button problem jasfalk@gmail.com Microsoft Outlook VBA Programming 1 27th May 2006 03:32 AM
Designer problem with CF Custom Control INCA Hellas Ltd Microsoft Dot NET Compact Framework 0 6th Jul 2005 09:55 AM
Problem: Custom control not drawing on Form from Designer. Brian McVay Microsoft Dot NET Compact Framework 9 7th Apr 2005 04:49 PM
custom control designer problem Tim Bücker Microsoft C# .NET 1 4th Dec 2003 07:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:49 AM.