| 发表于:2007-08-13 14:35:22 楼主 |
代码如下,运行后窗体的虚线框没有随着一起变大,留在那还是 个小框,怎么解决 各位帮忙啦,谢!! public class form1 private host as idesignerhost private root as form private sub form1_load(byval sender as system.object, byval e as system.eventargs) handles mybase.load dim surface as new designsurface surface.beginload(gettype(form)) host = (ctype(surface.getservice(gettype(idesignerhost)), idesignerhost)) root = host.rootcomponent dim x as short = screen.primaryscreen.bounds.width dim y as short = screen.primaryscreen.bounds.height root.size = new size(x, y) dim view as control = surface.view view.dock = dockstyle.fill view.invalidate() me.controls.add(view) end sub end class |
|
|
|
|