08-13-2011, 03:17 AM
MessageBox Code Generator
Download link:
Preview:
Spoiler (Click to View)
Source code:
Spoiler (Click to View)
PHP Code:
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;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
MessageBox.Show(textBox1.Text, textBox2.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
else if (radioButton2.Checked == true)
{
MessageBox.Show(textBox1.Text, textBox2.Text, MessageBoxButtons.OK, MessageBoxIcon.Question);
}
else if (radioButton3.Checked == true)
{
MessageBox.Show(textBox1.Text, textBox2.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (radioButton4.Checked == true)
{
MessageBox.Show(textBox1.Text, textBox2.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button2_Click(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
textBox3.Text = "MessageBox.Show(" + '"' + textBox1.Text + '"' + "," + '"' + textBox2.Text + '"' + ",MessageBoxButtons.OK,MessageBoxIcon.Warning);";
}
else if (radioButton2.Checked == true)
{
textBox3.Text = "MessageBox.Show(" + '"' + textBox1.Text + '"' + "," + '"' + textBox2.Text + '"' + ",MessageBoxButtons.OK,MessageBoxIcon.Question";
}
else if (radioButton3.Checked == true)
{
textBox3.Text = "MessageBox.Show(" + '"' + textBox1.Text + '"' + "," + '"' + textBox2.Text + '"' + ",MessageBoxButtons.OK,MessageBoxIcon.Error);";
}
else if (radioButton4.Checked == true)
{
textBox3.Text = "MessageBox.Show(" + '"' + textBox1.Text + '"' + "," + '"' + textBox2.Text + '"' + ",MessageBoxButtons.OK,MessageBoxIcon.Information);";
}
}
}
}
i know that this is not something speciel, but it can be very usefull for begginers