Yazı Font Küçült Yazı Font Büyült

MS Office Uygulamalarını Açma

Bu örneğimizde Process metodu ile MS Office e ait Word,Excel, Access vb... uygulamalarını aşağıdaki kod ile açacağız.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Notepad.exe");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Winword.exe");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Excel.exe");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("MSaccess.exe");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Powerpnt.exe");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Outlook.exe");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("MSPub.exe");
        }

        private void button8_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("InfoPath.exe");
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Text = "Ofis Kısayolları";
            this.MaximizeBox = false;
        }
    }
}

//Bir sonraki makalede görüşmek üzere...Bahadır