sahel65
یک شنبه 11 اردیبهشت 1390, 13:34 عصر
سلام؛
میخوام وقتی کاربر روی button کلیک کرد ، یه label ظاهر بشه؛
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();
}
Label LBL;
string title = "hello";
private void button1_Click(object sender, EventArgs e)
{
LBL = new Label();
LBL.Text = title;
LBL.Location = new Point(100, 120);
LBL.Parent = Parent;
LBL = new LBL(10, 50, title, this);
LBL.Show();
}
}
}
با این دستورات ولی ظاهر نمیشه!
میشه راهنماییم کنید؟
میخوام وقتی کاربر روی button کلیک کرد ، یه label ظاهر بشه؛
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();
}
Label LBL;
string title = "hello";
private void button1_Click(object sender, EventArgs e)
{
LBL = new Label();
LBL.Text = title;
LBL.Location = new Point(100, 120);
LBL.Parent = Parent;
LBL = new LBL(10, 50, title, this);
LBL.Show();
}
}
}
با این دستورات ولی ظاهر نمیشه!
میشه راهنماییم کنید؟