Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM, Design a file viewer (Similar to explorer) for Windows C#.NET.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace Practical2
{
public partial class FormFileViewer : Form
{
public FormFileViewer()
{
InitializeComponent();
}
private void btnBrowse_Click(object sender, EventArgs e)
{
string FileName;
openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
openFileDialog1.Filter = openFileDialog1.Filter = "All Files (*.*)|*.*";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
FileName = openFileDialog1.FileName;
txtFileViewer.Text = FileName;
}
}
private void btnRun_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = txtFileViewer.Text;
p.Start();
}
}
}
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM, Design a file viewer (Similar to explorer) for Windows C#.NET.
OUT PUT
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM, Design a file viewer (Similar to explorer) for Windows C#.NET.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace Practical2
{
public partial class FormFileViewer : Form
{
public FormFileViewer()
{
InitializeComponent();
}
private void btnBrowse_Click(object sender, EventArgs e)
{
string FileName;
openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
openFileDialog1.Filter = openFileDialog1.Filter = "All Files (*.*)|*.*";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
FileName = openFileDialog1.FileName;
txtFileViewer.Text = FileName;
}
}
private void btnRun_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = txtFileViewer.Text;
p.Start();
}
}
}
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM, Design a file viewer (Similar to explorer) for Windows C#.NET.
OUT PUT
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM, Design a file viewer (Similar to explorer) for Windows C#.NET.
No comments:
Post a Comment