Monday, March 19, 2012

Open File Dialog C#

OpenFileDialog m_OpenFile = new OpenFileDialog();
m_OpenFile.Title = "Buscar Base de Datos";
m_OpenFile.Filter = "All Files(*.*)|*.*|Base de datos de Microsoft Access (*.mdb)|*.mdb";
m_OpenFile.FilterIndex = 2;
if (m_OpenFile.ShowDialog() == DialogResult.OK)
{
    txtSource.Text = m_OpenFile.FileName.ToString();
}

Please visit: www.TyroDeveloper.com

Please Click on +1

No comments:

Post a Comment