Control.SetStyle - is calling this method cumulative?

  • Thread starter Thread starter Justin Rogers
  • Start date Start date
J

Justin Rogers

Yes it is cumulative. You can set multiple styles at once by or'ing them
together
or make multiple calls in different places to achieve the same result.
 
Does calling the Control.SetStyle method repeatedly with different flag
values have a cumulative effect?? or does it reset the value to the last
flag passed.

I'm wanting to call this from different places, potentially at different
times, and I'm not sure if I have to pass a bitwise set of flags or not
(that is - all values separated by OR).

Thanks everyone.
 
Lovely - thank you Justin.


Justin Rogers said:
Yes it is cumulative. You can set multiple styles at once by or'ing them
together
or make multiple calls in different places to achieve the same result.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top