Home All Groups Group Topic Archive Search About

Need help to invalidate my control.

Author
4 Jul 2005 7:07 PM
Scott Gunn
Hello all

I have this control which I am writing - sort of a grid with rows and
columns. I have a collection for columns so in code I can use
mycontrol.columns.add("Column1") I want to know how I can get the control to
invalidate so the changes are painted to the control instantly.

I have attached my VB.Net source code for you to take a look at.

You will see in the class ColumnHeader the property for Text which is where
I need the invalidation to happen.

Many thanks
Scott.


[attached file: tbsListView.vb]

Author
4 Jul 2005 7:10 PM
Mike D Sutton
> I have this control which I am writing - sort of a grid with rows and
> columns. I have a collection for columns so in code I can use
> mycontrol.columns.add("Column1") I want to know how I can get the control to
> invalidate so the changes are painted to the control instantly.
>
> I have attached my VB.Net source code <snip>

Http://EDais.mvps.org/DotNet/
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/
Author
5 Jul 2005 1:56 AM
Michael C
me.invalidate() ?
Show quoteHide quote
"Scott Gunn" <n***@thebigspider.co.uk> wrote in message
news:e0q9NuMgFHA.3304@TK2MSFTNGP12.phx.gbl...
> Hello all
>
> I have this control which I am writing - sort of a grid with rows and
> columns. I have a collection for columns so in code I can use
> mycontrol.columns.add("Column1") I want to know how I can get the control
> to
> invalidate so the changes are painted to the control instantly.
>
> I have attached my VB.Net source code for you to take a look at.
>
> You will see in the class ColumnHeader the property for Text which is
> where
> I need the invalidation to happen.
>
> Many thanks
> Scott.
>
>
>
>