c# - Redraw issue with NumericUpDown -
hi have weird redraw issue numericupdown
control. if have control @ same location , set visible
property false
, visible
property of numericupdown
true
numericupdown
appears without border , parts of other control visible in background (even if visible
property false
). call refresh
of numericupdown
or parent container won't change anything. if control in background textbox
numericupdown
appears correctly assume case cause border equal , therefore looks it's drawn correctly.
is bug of numericupdown
control? how can fix it?
thanks help.
edit: here screenshot. change visible properties of combobox
, numericupdown
dependent of checked
properties of radiobuttons
.
private void button1_click_1(object sender, eventargs e) { panel p = new panel(); p.location = new point(10, 10); p.height = 200; p.width = 200; p.borderstyle = borderstyle.fixed3d; controls.add(p); numericupdown nud = new numericupdown(); nud.location = new point(150, 150); nud.height = 100; nud.width = 100; controls.add(nud); nud.bringtofront(); }
for code add:
numericupdown1.bringtofront();
the problem because have added numericupdown panel it's not inside panel , must bring front see complete view of numericupdown.
you can without code. in pictures.
please let me know if answer.
Comments
Post a Comment