1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Diagnostics;
- using System.Windows.Forms;
- namespace HelloNppPluginDockWindow
- {
- public partial class SayHiForm : Form
- {
- public SayHiForm()
- {
- InitializeComponent();
- }
- protected override void OnHandleCreated(EventArgs e)
- {
- base.OnHandleCreated(e);
- textBox1.Text = Handle.ToInt64().ToString("X8");
- }
- private void SayHiForm_Shown(object sender, System.EventArgs e)
- {
- Debug.WriteLine($"{nameof(SayHiForm)}#{Handle.ToInt32():X8} {nameof(Shown)}");
- }
- private void SayHiForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- Debug.WriteLine($"{nameof(SayHiForm)}#{Handle.ToInt32():X8} {nameof(FormClosing)}");
- }
- private void SayHiForm_FormClosed(object sender, FormClosedEventArgs e)
- {
- Debug.WriteLine($"{nameof(SayHiForm)}#{Handle.ToInt32():X8} {nameof(FormClosed)}");
- }
- private void SayHiForm_ParentChanged(object sender, System.EventArgs e)
- {
- Debug.WriteLine($"{nameof(SayHiForm)}#{Handle.ToInt32():X8} {nameof(ParentChanged)}");
- }
- }
- }
|