开发者

how to Make a form to always stay in desktop...in vb.net c#

开发者 https://www.devze.com 2023-02-07 20:55 出处:网络
i want to make a form that is perfectly fixed in desktop...it d开发者_Python百科oesnt come when other application r opened and niether comes when the same form is clicked....stay fixed in desktop like

i want to make a form that is perfectly fixed in desktop...it d开发者_Python百科oesnt come when other application r opened and niether comes when the same form is clicked....stay fixed in desktop like icons in desktop....


http://www.vbforums.com/showthread.php?t=351533

Try that out? I think that is what you're looking for. I wasn't able to test it myself, but the description seems to match what you are looking for to the best of my understanding.


Try to use this:

[DllImport("user32")]
public static extern int  SetParent(int   hWndChild, int   hWndNewParent)

hWndChild is handle of your form and hWndNewParent is desktop handle

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号