Forcing a NumericUpDown control to only accept powers of two

前端 未结 4 805
天涯浪人
天涯浪人 2021-01-16 03:51

I present the user a NumericUpDown control so he can specify the size of a texture. It is important that this texture is of power of two size (32, 64, 128...).

I hav

4条回答
  •  情话喂你
    2021-01-16 04:21

    Hmm, well you could make your own. Using a textbox and a couple picture boxes you can set up a form that sets only powers of two.

提交回复
热议问题