public static void Houssam_Plugin_Func() { try { if (frmInput == null) { frmInput = new FrmInput(); } frmInput.IsOK = false; frmInput.Show(); //NppTbData _nppTbData = new NppTbData(); //_nppTbData.hClient = frm.Handle; //_nppTbData.pszName = "Go To Line #"; //_nppTbData.dlgID = 15; //_nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; //_nppTbData.hIconTab = (uint)tbIcon.Handle; //_nppTbData.pszModuleName = PluginName; //IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); //Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); //Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); // Following message will toogle both menu item state and toolbar button //Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_SETMENUITEMCHECK, PluginBase._funcItems.Items[idFrmGotToLine]._cmdID, 1); } catch (Exception ex) { MessageBox.Show(ex.Message); } /*frm.Show(); */ }