And I thought no one was listening.
Are there only 101? :-)
I just thought I'd sort out the "No Icon in a FlatStyle.Syste m Button" bug.
I thought it was going to be easy and to a certain extent it was, but I was
banging my head trying to figure out what I had done wrong to cause the
Paint errors I was seeing, and as it turns out it wasn't me, it was the
Tools I was using (does that make me a bad workman?).
I think I've finished it now, at least I can't think of any other things a
user might do to misuse a button.
Time to look over the code and see what improvements I can make.
"Codemonkey " <hu*********@ho tmail.com> wrote in message
news:Ot******** ******@TK2MSFTN GP12.phx.gbl...
Nice one Mick. Cheers for sharing with the group. I wish more people done
this more often.
If you ever feel like solving the other 101 bugs in dotnet and Visual
Studio, feel free to share them too ;)
"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote
in message news:er******** *****@tk2msftng p13.phx.gbl... For anyone who's interested, both bugs are related.
The actual Bug is the ButtonBase one which Button then Inherits.
Simple Solution is to Override the OnClick and OnDoubleClick events and
add:
MyBase.OnClick( e)
MyBase.OnLostFo cus(EventArgs.E mpty)
"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote
in message news:OI******** ******@TK2MSFTN GP12.phx.gbl... What's more:
Inherit from ButtonBase and the Button will not repaint after a click
by mouse. It stays Pushed until it loses focus.
"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]>
wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Steps to reproduce:
>
> Inherit from button.
> Add button to project's form.
> Run project.
> Make button Default.
> Press and Hold SpaceBar (so button is pressed)
> Move Mouse.
> Release SpaceBar.
>
> The button now recieves the first MouseDown and MouseUp events even
if the > cursor is not over the button.
>
> Has anyone else seen this? I couldn't find it documented.
>
>