时间: 2021-07-31 作者:daque
开始在一个模块中做如次证明: public const sw_hide = 0 public const gw_owner = 4 declare function getwindow lib "user32" alias "getwindow" (byval hwnd as _ long, byval wcmd as long) as long declare function showwindow lib "user32" alias "showwindow" (byval hwnd _ as long, byval ncmdshow as long) as long 将底下的代码增添到窗体的load事变中: dim rc as long dim ownerhwnd as long '让窗体不看来 me.visible = false '从工作处置器列表中移除 ownerhwnd = getwindow(me.hwnd, gw_owner) rc = showwindow(ownerhwnd, sw_hide) 请看正文中所用到的两个api因变量getwindow和showwindow的用法。