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.

enter image description here

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.

enter image description here enter image description here enter image description here

please let me know if answer.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -