vb.net - VB Net - Is it possible call a function before complete loaded program? -
i'm new on vb net, confused how phone call function before finish loaded program, on python it's simple
def test(): print 1 test() #and print 1 but how on vb ? test
public class form2 function main_func() combobox1.selectedindex = 0 combobox2.selectedindex = 0 textbox1.text = "hello world" end function main_func() end class but showing error, 1 can help me ?
in designer, double-click on form's title bar. take code form ready-made form_load method can type code showed:
private sub form1_load(sender object, e eventargs) handles mybase.load combobox1.selectedindex = 0 combobox2.selectedindex = 0 textbox1.text = "hello world" end sub vb.net
No comments:
Post a Comment