Programming, Music, Games. Creation.

Bermuda Service Stopper v1.1

I AM NOT RESPONSIBLE IF U STOP AN ESSENTIAL SERVICE FOR WINDOWS AND STH GOES WRONG!
(rebooting will probably fix it anyway ;P this is just ‘stopping’ service)
**downloading link below**

 

Code for Form1.cs

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

namespace WindowsFormsApplication1
{
    public partial class BermudaZ : Form
    {
        int max = 0;
        public BermudaZ()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.ClientSize = new System.Drawing.Size(434,230);
        }

        private void checkBox1_CheckStateChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                button1.Enabled = true;
            }
            else
            {
                button1.Enabled = false;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (checkBox2.Checked == true)
            {
                Process.Start(“cmd.exe”, “/c sc stop ” + textBox1.Text + ” && pause”);
            }
            else
            {
                Process.Start(“cmd.exe”, “/c sc stop ” + textBox1.Text);
            }
            button1.Enabled = false;
            checkBox1.Enabled = false;
            checkBox2.Enabled = false;
            textBox1.Enabled = false;
            button1.Text = “DONE!”;
        }

        private void textBox1_Click(object sender, EventArgs e)
        {
            textBox1.Text = “”;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (max == 0)
            {
                this.ClientSize = new System.Drawing.Size(434, 432);
                max++;
            }
            else
            {
                this.ClientSize = new System.Drawing.Size(434, 230);
                max–;
            }
        }
    }
}

 

Download : Skydrive
file name : Bermuda_Service_Stopper

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s