如果没模块就放窗体模块里,就是form load所在代码窗口,但不是form load里,写sub main即可。其实么你放form load里也一样的
如果你有模块,就把 Sub Main 写进模块。