vb.net - Why XP visual styles are not working with ShowDialog or without MdiParent? -


i'm confused how ask question efficiently.

it seems cannot xp visual styles work on winforms in visual studio 2013 on windows 8.1 if use .showdialog() or if use .show() without first setting .mdiparent.

for example, code:

frmcheckrecon.mdiparent = frmmainparent frmcheckrecon.show() 

or code:

dim l_dialog frmcheckrecon l_dialog = new frmcheckrecon l_dialog.mdiparent = frmmainparent l_dialog.show() 

gives me correct xp visual style (blue soft window border , nice control buttons)

but code:

' frmcheckrecon.mdiparent = frmmainparent   <-- commented out frmcheckrecon.show() 

or this:

dim l_dialog frmcheckrecon l_dialog = new frmcheckrecon     ' l_dialog.mdiparent = frmmainparent  <-- commented out l_dialog.show() 

gives me non-xp style window (gray hard window edges, ugly control icons on window title bar, etc)

because can't set .mdiparent property if i'm calling form .showdialog, using .showdialog shows non-xp (ugly) window style.

maybe it's easy? missing?


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -