vb.net - How to check if a folder exists automatically without ".click" function -


i have problem. have program written in visual basic using visual studio 2013 , works good. problem want program check if folder exists on program start-up , return text value in label without having manually "click" label. have searched , cannot find anything, maybe i'm not searching right thing?

here sample of check:

''//asdg_jr check private sub lbl_asdg_jr_pres_click(sender object, e eventargs) handles lbl_asdg_jr_pres.click     if my.computer.filesystem.directoryexists(user_txt_dir.text & "\@asdg_jr_v0.14")         lbl_asdg_jr_pres.text = "all good!"         btn_asdg_di.text = ".zip file downloaded already"         btn_asdg_unzip.text = "unzipped , installed already"         btn_asdg_di.enabled = false         btn_asdg_unzip.enabled = false     else         lbl_asdg_jr_pres.text = "use buttons ----->"         btn_asdg_di.enabled = true         btn_asdg_unzip.enabled = true     end if end sub 

place code inside form's load event.

private sub myform_load(sender system.object, e system.eventargs) handles myform.load     'if directoryexists update label end sub 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -