vb.net - Passing variables between forms Visual Basic 2012 -


i'm quite noob when comes classes, subs , kind of stuff. i'm making program in vb 2012 create portable version of minecraft on usb key.

here's code ("port_cr"):

    'get %appdata%     dim appdata string = environ("userprofile") & "\appdata\roaming\.minecraft"     'get path     port_mc_getpath.showdialog()     dim save_mc string = port_mc_getpath.selectedpath     'copy     my.computer.filesystem.createdirectory(save_mc & "\data")     my.computer.filesystem.createdirectory(save_mc & "\bin")     my.computer.filesystem.createdirectory(save_mc & "\data\.minecraft")     my.computer.filesystem.copydirectory(appdata, save_mc & "\data\.minecraft", true)     'open form choose launcher want download     chooselauncher.show() 

"chooselauncher" form buttons download appopriate files path specified in "port_cr" form, can't figure out how do. if tell me how i'd appreciate it

create public properties on chooselauncher form , set them values before show form. instance, if chooselauncher form had public string property called savemc, this:

chooselauncher.savemc = save_mc chooselauncher.show() 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -