- 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 WindowsFormsApplication1
- {
- public partial class Form3 : Form
- {
- public Form3()
- {
- InitializeComponent();
- }
- private void Form3_Load(object sender, EventArgs e)
- {
- label3.Text = Application.OpenForms.Count.ToString();
- foreach (Form frm in Application.OpenForms)
- {
- label1.Text = frm.Name;
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Form1 frm1 = new Form1();
- frm1.Show();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Form2 frm2 = new Form2();
- frm2.Show();
- }
- private void button3_Click(object sender, EventArgs e)
- {
- label3.Text = Application.OpenForms.Count.ToString();
- label1.Text = "";
- foreach (Form frm in Application.OpenForms)
- {
- label1.Text += frm.Name + "\n";
- }
- }
- }
- }
C# kaynak kodları ile projelerinize yardımcı açık source code örnekleri bulun.Programlama ile uraşan coderlara yardımcı olur.