⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hellofromnet.cs

📁 java 调用windows的api
💻 CS
字号:
using System.Runtime.InteropServices; // necessary for the Guid and ProgId attributes

namespace Org.Jawin.NETTest {

	[Guid("25c2f5a2-1afe-36ce-BE27-84E040F5E19A")]
	[ProgId("Jawin.HelloFromNET")] // Register the CLSID under this shortcut ProgId
	public class HelloFromNET : HelloFromNETItf {
	
		// Need a public default no-arg constructor for COM Interop.
		public HelloFromNET() {
		}

		public string Caption {
			set { this.caption = value; }
		}
	
		public void ShowDialog(string str) {
			System.Windows.Forms.MessageBox.Show(str, caption);
		}
	
		private string caption;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -