c# - Timepicker does not show the arrow beside it -


i know have removed application.enablevisualstyles () program develop progress bar easier if remove statement of "application.enablevisualstyles". problem face was, when put datetimepicker set showupdown true, arrow in show down not display formerly statement "application.enabledstyles". there way can solve without addding "application.enablevisualstyles". thanks

it datetimepicker enter image description here

i want datetimepicker enabled visual style removed enter image description here

if want use old progressbar, hans passant answer how disable visual styles 1 control, , not children? shows how turn visual styles off single control. i've adapted code progress bar:

public class oldprogressbar : progressbar {    [dllimportattribute("uxtheme.dll")]   private static extern int setwindowtheme(intptr hwnd, string appname, string idlist);    protected override void onhandlecreated(eventargs e) {     setwindowtheme(this.handle, "", "");     base.onhandlecreated(e);   } } 

now can use application.enablevisualstyles(); , still use old progress bar control.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -