Hi, I used your code but for the first time it gives the below error:
SelectFileDialog : The term ‘SelectFileDialog’ is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try
again.
At line:22 char:21
+ $objTextBox1.Text = SelectFileDialog
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (SelectFileDialog:String) [], Co
mmandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
And from second time, if i click select button, file dialog opens up correctly. do i have to change anything else?
Chaitanya.