 |
|
อย่างเราเขียน Control มาตัวหนึ่งแล้วเราอยากบอกกล่าวกับคนอื่นว่า
control ของเรา มี Properties Methods Events อะไรบ้าง
ผมอยากได้ประมาณว่าพอเราเอาก๊อบโค้ดเรา ไปวางใน textbox RichTextBox หรือ จะคลิกเปิดไฟล์ .cs .vb ก็จะ list หัวข้อ หรือ ชื่อ Properties Methods Events ออกมาเลย แบบนี้ครับ
Code (C#)
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 UserControl_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Column1.ButtonColumnClick += new DataGridViewCellEventHandler(this.ButtonColumn_Click);
}
private void ButtonColumn_Click(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show("55555");
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'bA_210S_1_2554DataSet.ALS_F_717' table. You can move, or remove it, as needed.
this.aLS_F_717TableAdapter.Fill(this.bA_210S_1_2554DataSet.ALS_F_717);
// TODO: This line of code loads data into the 'bA_210S_1_2554DataSet.Data' table. You can move, or remove it, as needed.
this.dataTableAdapter.Fill(this.bA_210S_1_2554DataSet.Data);
// navigatortor1.InstallDatetime();
}
}
}
ออกมาเป็น
Code
namespace UserControl_1
class Form1 : Form
public Form1()
private void ButtonColumn_Click(object sender, DataGridViewCellEventArgs e)
private void Form1_Load(object sender, EventArgs e)
คร่าวๆก็ประมาณนี้ครับ
พอจะมีวิธีไม๊ครับ
Tag : .NET, Win (Windows App), C#, Windows
|
|
 |
 |
 |
 |
Date :
2017-01-21 17:49:12 |
By :
lamaka.tor |
View :
805 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |