Open Button Click Event
-
craigMUTOKOKAI wrote:
how do you open the file browser dailog Using "Open" button click
The same way as you'd handle any button click event. In your event handler code you need to create an OpenFileDialog, set it up as you want (or not, if you are happy with the default behaviour) and then call ShowDialog() on it. The DialogResult will indicate whether the user Cancelled the dialog or not.
Recent blog posts: *Method hiding Vs. overriding *Microsoft Surface *SQL Server / Visual Studio install order My Blog
-
DialogResult DialogResult_Logout = MessageBox.Show("Do you want to logout and return to Page Login?", "Logout", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (DialogResult_Logout == DialogResult.Yes)
{
UserControl_PageLogin_Visible(true);
}Is this what you want? :doh:
nelsonpaixao@yahoo.com.br trying to help & get help