WELCOME TO MY WORLD

Hi THERE

I'M INDRAJIT. B.Tech [ CSE ] + MBA [ IT-HR ]. WORKING AS SAP BO-BI WITH S4 HANA SENOR CONSULTANT.

Subscribe to this blog!

Receive the latest posts by email. Just enter your email below if you want to subscribe!

My Other Works
Loading...

[ GET SET ]


[ INSERT COMMENTS ] 


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.Data.SqlClient;


namespace GET_SET
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public String Insert
        {
            get {return disp.Text;}
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
          
        }

        private void show_Click(object sender, EventArgs e)
        {
            if (disp.Text == "")
            {
                int Result = 0;
                //Result = (int)MessageBox.Show("You  Have Reached The Maximum Value Of Order. Reorder ?", "20 Cup At A time!", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                Result = (int)MessageBox.Show("You Have Not Written Anything","Message !" , MessageBoxButtons.RetryCancel , MessageBoxIcon.Error);
                if (Result == (int)DialogResult.Cancel)
                {
                    disp.Text = "Write here";
                }
            }
            else
            {
                Form2 F2 = new Form2();
                F2.display = Insert;
                F2.Show();
                this.Hide();
            }

        }

        private void exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

       
    }
}



[ DISPLAY WINDOW ]

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 GET_SET
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        public string display
        {
            set { disp.Text = value; }
        }


        private void Form2_Load(object sender, EventArgs e)
        {
           
        }

        private void show_Click(object sender, EventArgs e)
        {
            Form1 F1 = new Form1();
            F1.Show();
            this.Hide();

        }

        private void exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
Share on Google Plus

About AXEL BLAZE [ FATAL ERROR ]

0 comments:

Post a Comment