Wednesday, May 2, 2012

Biodata



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)
        {
            String s = textBox1.Text;
            MessageBox.Show(s);
            String da = dateTimePicker1.Value.ToString("dd/MM/yy");
            MessageBox.Show(da);
            string nu = numericUpDown1.Value.ToString();
            MessageBox.Show(nu);
            string ad = textBox2.Text;
            MessageBox.Show(ad);
            string ph = maskedTextBox1.Text;
            MessageBox.Show(ph);
            if (radioButton1.Checked == true)
            {
                MessageBox.Show(radioButton1.Text);
            }
            else
            {
                MessageBox.Show(radioButton2.Text);
            }
            MessageBox.Show(comboBox1.Text);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            comboBox1.Items.Add("Bsc");
        }
    }
}


No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...