.net - Taskbar icon not showing for winforms -
i doing testing building winforms application called class library vba. started vb.net winforms project in vs2013, created test form changed application type windows forms application class library.
i referenced dll in vba editor , called form using.
public viewer testpdf.form1 sub viewer() set viewer = new testpdf.form1 viewer.show end sub
this works unable icon form in taskbar. have checked form properties , both showintaskbar = true , formborderstyle = sizable. alt-tab shows form , default icon shows correctly in window header.
i have looked through other similar questions on stackoverflow, of suggest re-setting form properties in shown event solves issue. have tested this:
private sub form1_shown(sender object, e eventargs) handles mybase.shown me.formborderstyle = windows.forms.formborderstyle.sizable me.showintaskbar = true me.bringtofront() end sub
however still not solve issue.
can offer advice on i'm going wrong?
Comments
Post a Comment