public HelpInfo(string helpfilepath, string keyword) { this.helpFilePath= helpfilepath; this.keyword = keyword; this.navigator = HelpNavigator.TableOfContents; this.param = null; this.option = NativeMethods.HLP_KEYWORD; }
public HelpInfo(string helpfilepath) { this.helpFilePath= helpfilepath; this.keyword = ""; this.navigator = HelpNavigator.TableOfContents; this.param = null; this.option = NativeMethods.HLP_FILE; }
public HelpInfo(string helpfilepath, HelpNavigator navigator) { this.helpFilePath= helpfilepath; this.keyword = ""; this.navigator = navigator; this.param = null; this.option = NativeMethods.HLP_NAVIGATOR; }
public HelpInfo(string helpfilepath, HelpNavigator navigator, object param) { this.helpFilePath= helpfilepath; this.keyword = ""; this.navigator = navigator; this.param = param; this.option = NativeMethods.HLP_OBJECT; }
public HelpInfo(string helpfilepath, HelpNavigator navigator) { this.helpFilePath = helpfilepath; this.keyword = ""; this.navigator = navigator; this.param = null; this.option = 3; }
public HelpInfo(string helpfilepath) { this.helpFilePath = helpfilepath; this.keyword = ""; this.navigator = HelpNavigator.TableOfContents; this.param = null; this.option = 1; }
private void SimpleQueryByJdxzUI_HelpRequested(object sender, HelpEventArgs hlpevent) { string url = Application.StartupPath + "\\帮助.chm"; string parameter = "快速查询"; HelpNavigator command = HelpNavigator.KeywordIndex; Help.ShowHelp(this, url, command, parameter); }
/// ------------------------------------------------------------------------------------ /// <summary> /// This implementation displays the message in the Console and returns the first /// button as dialog result. /// </summary> /// ------------------------------------------------------------------------------------ public DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { Console.WriteLine("**** {0}: {1}{3}{2}", caption, text, buttons, Environment.NewLine); return(TranslateButtons(buttons)); }
public HelpInfo(string helpfilepath, HelpNavigator navigator, object param) { this.helpFilePath = helpfilepath; this.keyword = ""; this.navigator = navigator; this.param = param; this.option = 4; }
/// ------------------------------------------------------------------------------------ /// <summary> /// This implementation displays the message in the Console and returns the first /// button as dialog result. /// </summary> /// ------------------------------------------------------------------------------------ public DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { Console.WriteLine("**** {0}: {1}{3}{2}", caption, text, buttons, Environment.NewLine); return TranslateButtons(buttons); }
private static int MapCommandToHTMLCommand(HelpNavigator command, string param, out object htmlParam) { htmlParam = param; if (string.IsNullOrEmpty(param) && ((command == HelpNavigator.AssociateIndex) || (command == HelpNavigator.KeywordIndex))) { return(2); } switch (command) { case HelpNavigator.Topic: return(0); case HelpNavigator.TableOfContents: return(1); case HelpNavigator.Index: return(2); case HelpNavigator.Find: { System.Windows.Forms.NativeMethods.HH_FTS_QUERY hh_fts_query = new System.Windows.Forms.NativeMethods.HH_FTS_QUERY { pszSearchQuery = param }; htmlParam = hh_fts_query; return(3); } case HelpNavigator.AssociateIndex: case HelpNavigator.KeywordIndex: break; case HelpNavigator.TopicId: try { htmlParam = int.Parse(param, CultureInfo.InvariantCulture); return(15); } catch { return(2); } break; default: return((int)command); } System.Windows.Forms.NativeMethods.HH_AKLINK hh_aklink = new System.Windows.Forms.NativeMethods.HH_AKLINK { pszKeywords = param, fIndexOnFail = true, fReserved = false }; htmlParam = hh_aklink; if (command != HelpNavigator.KeywordIndex) { return(0x13); } return(13); }
public static DialogResult Show (IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { MessageBoxForm form = new MessageBoxForm (owner, text, caption, buttons, icon, defaultButton, options, true); form.SetHelpData (helpFilePath, null, navigator, param); return form.RunDialog (); }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { using (new DialogCenteringService(owner)) { return(MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param)); } }
private static int MapCommandToHTMLCommand(HelpNavigator command, string param, out object htmlParam) { htmlParam = param; if (string.IsNullOrEmpty(param) && ((command == HelpNavigator.AssociateIndex) || (command == HelpNavigator.KeywordIndex))) { return 2; } switch (command) { case HelpNavigator.Topic: return 0; case HelpNavigator.TableOfContents: return 1; case HelpNavigator.Index: return 2; case HelpNavigator.Find: { System.Windows.Forms.NativeMethods.HH_FTS_QUERY hh_fts_query = new System.Windows.Forms.NativeMethods.HH_FTS_QUERY { pszSearchQuery = param }; htmlParam = hh_fts_query; return 3; } case HelpNavigator.AssociateIndex: case HelpNavigator.KeywordIndex: break; case HelpNavigator.TopicId: try { htmlParam = int.Parse(param, CultureInfo.InvariantCulture); return 15; } catch { return 2; } break; default: return (int) command; } System.Windows.Forms.NativeMethods.HH_AKLINK hh_aklink = new System.Windows.Forms.NativeMethods.HH_AKLINK { pszKeywords = param, fIndexOnFail = true, fReserved = false }; htmlParam = hh_aklink; if (command != HelpNavigator.KeywordIndex) { return 0x13; } return 13; }
internal static void ShowHelp(Form frm, string url, HelpNavigator command) { //* frm not used, but included for compatability if (frmDummyHelp == null) { frmDummyHelp = new Form(); } Help.ShowHelp(frmDummyHelp, url, command); }
private static void ShowHTMLFile(Control parent, string url, HelpNavigator command, object param) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "Help:: ShowHTMLHelp:: " + url + ", " + command.ToString("G") + ", " + param); Uri file = Resolve(url); if (file == null) { throw new ArgumentException(string.Format(SR.HelpInvalidURL, url), "url"); } switch (file.Scheme) { case "http": case "https": Debug.WriteLineIf(IntSecurity.SecurityDemand.TraceVerbose, "WebPermission Demanded"); // new WebPermission(NetworkAccess.Connect, url).Demand(); break; default: Debug.WriteLineIf(IntSecurity.SecurityDemand.TraceVerbose, "UnmanagedCode Demanded"); IntSecurity.UnmanagedCode.Demand(); break; } switch (command) { case HelpNavigator.TableOfContents: case HelpNavigator.Find: case HelpNavigator.Index: // nothing needed... // break; case HelpNavigator.Topic: if (param != null && param is string) { file = new Uri(file.ToString() + "#" + (string)param); } break; } HandleRef handle; if (parent != null) { handle = new HandleRef(parent, parent.Handle); } else { handle = new HandleRef(null, UnsafeNativeMethods.GetActiveWindow()); } Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "\tExecuting '" + file.ToString() + "'"); UnsafeNativeMethods.ShellExecute_NoBFM(handle, null, file.ToString(), null, null, NativeMethods.SW_NORMAL); }
private void ShowHelp(Control ctl, string helpFile, HelpNavigator nav, string keyword, int context) { HelpIntfs.ISetActiveControl setControl = TApplication.Instance.HelpSystem as HelpIntfs.ISetActiveControl; if (setControl != null) { setControl.SetActiveControl(ctl); } try { switch (nav) { case HelpNavigator.Find: HelpIntfs.IHelpSystem3 searchHelp = TApplication.Instance.HelpSystem as HelpIntfs.IHelpSystem3; if (searchHelp != null) { searchHelp.ShowSearch(keyword, helpFile); } break; case HelpNavigator.AssociateIndex: case HelpNavigator.Index: HelpIntfs.IHelpSystem3 indexHelp = TApplication.Instance.HelpSystem as HelpIntfs.IHelpSystem3; if (indexHelp != null) { indexHelp.ShowIndex(keyword, helpFile); } break; case HelpNavigator.KeywordIndex: TApplication.Instance.HelpSystem.ShowHelp(keyword, helpFile); break; case HelpNavigator.TableOfContents: TApplication.Instance.HelpSystem.ShowTableOfContents(); break; case HelpNavigator.Topic: TApplication.Instance.HelpSystem.ShowTopicHelp(keyword, helpFile); break; case HelpNavigator.TopicId: TApplication.Instance.HelpSystem.ShowContextHelp(context, helpFile); break; default: break; } } finally { if (setControl != null) { setControl.SetActiveControl(null); } } }
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator) { MessageBoxForm form = new MessageBoxForm(null, text, caption, buttons, icon, defaultButton, options, true); form.SetHelpData(helpFilePath, null, navigator, null); return(form.RunDialog()); }
public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { ArgumentNullException.ThrowIfNull(ctl); SourceGenerated.EnumValidator.Validate(navigator, nameof(navigator)); _navigators[ctl] = navigator; SetShowHelp(ctl, true); UpdateEventBinding(ctl); }
public void ShowHelp(Object uiControl, HelpNavigator command, object parameter) { var control = uiControl as Control; if (control == null || !CheckUrl()) { return; } Help.ShowHelp(control, s_url, command, parameter); }
/// <summary> /// Sets the property HelpNavigator for a specific control /// </summary> /// <param name="control">control for which the HelpNavigator should be set</param> /// <param name="value">value to set</param> public void SetHelpNavigator(Control control, HelpNavigator value) { if (helpEvtHooks[control] == null) { control.HelpRequested += new HelpEventHandler(this.HandleHelpRequested); helpEvtHooks[control] = true; } helpNavigators[control] = value; }
public void ShowHelp(object uiControl, HelpNavigator navigator) { var control = uiControl as Control; if (control == null || !CheckUrl()) { return; } Help.ShowHelp(control, s_url, navigator); }
public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { if (!System.Windows.Forms.ClientUtils.IsEnumValid(navigator, (int)navigator, -2147483647, -2147483641)) { throw new InvalidEnumArgumentException("navigator", (int)navigator, typeof(HelpNavigator)); } this.navigators[ctl] = navigator; this.SetShowHelp(ctl, true); this.UpdateEventBinding(ctl); }
public CustomMessageBox() { m_messageBoxButtons = MessageBoxButtons.OK; m_messageBoxDefaultButton = MessageBoxDefaultButton.Button1; m_messageIcon = MessageIcon.None; m_messageBoxOptions = 0; m_helpNavigator = HelpNavigator.Topic; m_variableDictionary = new Dictionary<string, object>(); InitializeComponent(); }
public HelpProperty(HelpProvider hp, Control control) { this.control = control; this.hp = hp; keyword = null; navigator = HelpNavigator.AssociateIndex; text = null; show = false; control.HelpRequested += hp.HelpRequestHandler; }
/// <summary> /// Specifies the Help keyword to display when the user invokes Help for a control. /// </summary> public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { if (!ClientUtils.IsEnumValid(navigator, (int)navigator, (int)HelpNavigator.Topic, (int)HelpNavigator.TopicId)) { throw new InvalidEnumArgumentException(nameof(navigator), (int)navigator, typeof(HelpNavigator)); } _navigators[ctl] = navigator; SetShowHelp(ctl, true); UpdateEventBinding(ctl); }
/// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.SetHelpNavigator"]/*' /> /// <devdoc> /// <para> /// Specifies the Help keyword to display when /// the user invokes Help for a control. /// </para> /// </devdoc> public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { //validate the HelpNavigator enum if (!Enum.IsDefined(typeof(HelpNavigator), navigator)) { throw new InvalidEnumArgumentException("navigator", (int)navigator, typeof(HelpNavigator)); } navigators[ctl] = navigator; SetShowHelp(ctl, true); UpdateEventBinding(ctl); }
public override void OnClick() { if (m_Hook == null) { return; } string path = Application.StartupPath + "\\..\\Help\\基础地理信息数据库管理系统用户手册.chm"; HelpNavigator navigator = new HelpNavigator(); navigator = HelpNavigator.Index;//索引枚举 Help.ShowHelp(m_frmhook.MainForm, path, navigator); }
public static DialogResult Show( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator) { return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator)); }
public DialogResult ShowMessage( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator) { return MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator); }
/// <include file='doc\Help.uex' path='docs/doc[@for="Help.MapCommandToHTMLCommand"]/*' /> /// <devdoc> /// Maps one of the COMMAND_* constants to the HTML 1.0 Help equivalent. /// </devdoc> /// <internalonly/> private static int MapCommandToHTMLCommand(HelpNavigator command, string param, out object htmlParam) { htmlParam = param; if ((string.IsNullOrEmpty(param)) && (command == HelpNavigator.AssociateIndex || command == HelpNavigator.KeywordIndex)) { return(HH_DISPLAY_INDEX); } switch (command) { case HelpNavigator.Topic: return(HH_DISPLAY_TOPIC); case HelpNavigator.TableOfContents: return(HH_DISPLAY_TOC); case HelpNavigator.Index: return(HH_DISPLAY_INDEX); case HelpNavigator.Find: { NativeMethods.HH_FTS_QUERY ftsQuery = new NativeMethods.HH_FTS_QUERY(); ftsQuery.pszSearchQuery = param; htmlParam = ftsQuery; return(HH_DISPLAY_SEARCH); } case HelpNavigator.TopicId: { try { htmlParam = int.Parse(param, CultureInfo.InvariantCulture); return(HH_HELP_CONTEXT); } catch { // default to just showing the index return(HH_DISPLAY_INDEX); } } case HelpNavigator.KeywordIndex: case HelpNavigator.AssociateIndex: { NativeMethods.HH_AKLINK alink = new NativeMethods.HH_AKLINK(); alink.pszKeywords = param; alink.fIndexOnFail = true; alink.fReserved = false; htmlParam = alink; return((command == HelpNavigator.KeywordIndex) ? HH_KEYWORD_LOOKUP : HH_ALINK_LOOKUP); } default: return((int)command); } }
/// <summary> /// Modal show of dialog /// </summary> /// <param name="text">Text</param> /// <param name="caption">Caption</param> /// <param name="buttons">Message box buttons</param> /// <param name="icon">Message box icon</param> /// <param name="defaultButton">Message box default button</param> /// <param name="options">Message box options</param> /// <param name="helpFilePath">Help file</param> /// <param name="navigator">Help navigator</param> /// <param name="param">Parameter</param> /// <returns>Dialog result</returns> DialogResult IModalMessageBox.Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, Object param ) { return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param)); }
/// <summary> /// Modal show of dialog /// </summary> /// <param name="owner">Owner</param> /// <param name="text">Text</param> /// <param name="caption">Caption</param> /// <param name="buttons">Message box buttons</param> /// <param name="icon">Message box icon</param> /// <param name="defaultButton">Message box default button</param> /// <param name="options">Message box options</param> /// <param name="helpFilePath">Help file</param> /// <param name="navigator">Help navigator</param> /// <returns>Dialog result</returns> DialogResult IModalMessageBox.Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator ) { return(MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator)); }
/// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.SetHelpNavigator"]/*' /> /// <devdoc> /// <para> /// Specifies the Help keyword to display when /// the user invokes Help for a control. /// </para> /// </devdoc> public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { //valid values are 0x80000001 to 0x80000007 if (!ClientUtils.IsEnumValid(navigator, (int)navigator, (int)HelpNavigator.Topic, (int)HelpNavigator.TopicId)) { //validate the HelpNavigator enum throw new InvalidEnumArgumentException("navigator", (int)navigator, typeof(HelpNavigator)); } navigators[ctl] = navigator; SetShowHelp(ctl, true); UpdateEventBinding(ctl); }
public static void ShowHelp(Control parent, string url, HelpNavigator command, object parameter) { switch (GetHelpFileType(url)) { case 2: ShowHTML10Help(parent, url, command, parameter); return; case 3: ShowHTMLFile(parent, url, command, parameter); return; } }
/// <summary> /// Shows windows help. /// </summary> /// <param name="filePath">path of the help file.</param> /// <param name="helpCmd">help command.</param> /// <param name="helpKey">search key word.</param> public static void ShowWindowHelp(string filePath, HelpCommand helpCmd, string helpKey) { #if !PocketPC helpKey = helpKey.Trim(); switch (helpCmd) { case HelpCommand.Context: HelpNavigator navigator = HelpNavigator.TopicId; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Contents: navigator = HelpNavigator.TableOfContents; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Setcontents: navigator = HelpNavigator.TableOfContents; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Contextpopup: navigator = HelpNavigator.Index; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Key: navigator = HelpNavigator.KeywordIndex; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Command: navigator = HelpNavigator.Index; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Forcefile: navigator = HelpNavigator.TableOfContents; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Helponhelp: navigator = HelpNavigator.Index; Help.ShowHelp(null, filePath, navigator, helpKey); break; case HelpCommand.Quit: break; } #endif }
public static void showHelp(Control control, HelpNavigator navIn, string paramIn) { if (control != null) { control.Cursor = Cursors.WaitCursor; } Process.Start(string.Format(LINK_FMT, paramIn)); if (control != null) { control.Cursor = Cursors.Default; } }
public void HelpProvider_SetHelpNavigator_GetHelpNavigator_ReturnsExpected(HelpNavigator navigator) { using var provider = new HelpProvider(); using var control = new Control(); provider.SetHelpNavigator(control, navigator); Assert.Equal(navigator, provider.GetHelpNavigator(control)); Assert.True(provider.GetShowHelp(control)); // Set same. provider.SetHelpNavigator(control, navigator); Assert.Equal(navigator, provider.GetHelpNavigator(control)); Assert.True(provider.GetShowHelp(control)); }
private void showHelp_Click(object sender, System.EventArgs e) { // Display Help using the Help navigator enumeration // that is selected in the combo box. Some enumeration // values make use of an extra parameter, which can // be passed in through the Parameter text box. HelpNavigator navigator = HelpNavigator.TableOfContents; if (navigatorCombo.SelectedItem != null) { navigator = (HelpNavigator)navigatorCombo.SelectedItem; } Help.ShowHelp(this, helpfile, navigator, parameterTextBox.Text); }
/// <include file='doc\Help.uex' path='docs/doc[@for="Help.ShowHelp3"]/*' /> /// <devdoc> /// <para> /// Displays the contents of the Help file located at /// the Url /// supplied by the /// user. /// </para> /// </devdoc> public static void ShowHelp(Control parent, string url, HelpNavigator command, object parameter) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "Help:: ShowHelp"); switch (GetHelpFileType(url)) { case HTML10HELP: ShowHTML10Help(parent, url, command, parameter); break; case HTMLFILE: ShowHTMLFile(parent, url, command, parameter); break; } }
/// <summary> /// Displays the contents of the Help file found at the specified URL for a specific topic. /// </summary> /// <param name="parent">A <see cref="System.Windows.Forms.Control"/> that identifies the parent of the Help dialog box.</param> /// <param name="url">The path and name of the Help file.</param> /// <param name="navigator">One of the <see cref="HelpNavigator"/> values.</param> public static void ShowHelp(System.Windows.Forms.Control parent, string url, HelpNavigator navigator) { switch(navigator) { case HelpNavigator.Find: //start find applet Process.Start("shfind.exe"); break; case HelpNavigator.TableOfContents: //launch at default toc for specified helpfile Process.Start(helpexecutable, url + "#Main_Contents"); break; case HelpNavigator.Topic: //launch specified topic Process.Start(helpexecutable, url); break; } }
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator) {}
public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { GetHelpProperty(ctl).Navigator = navigator; }
private static void ShowHTMLFile(Control parent, string url, HelpNavigator command, object param) { HandleRef ref2; string str; Uri uri = Resolve(url); if (uri == null) { throw new ArgumentException(System.Windows.Forms.SR.GetString("HelpInvalidURL", new object[] { url }), "url"); } if (((str = uri.Scheme) != null) && ((str == "http") || (str == "https"))) { new WebPermission(NetworkAccess.Connect, url).Demand(); } else { System.Windows.Forms.IntSecurity.UnmanagedCode.Demand(); } switch (command) { case HelpNavigator.Topic: if ((param != null) && (param is string)) { uri = new Uri(uri.ToString() + "#" + ((string) param)); } break; } if (parent != null) { ref2 = new HandleRef(parent, parent.Handle); } else { ref2 = new HandleRef(null, System.Windows.Forms.UnsafeNativeMethods.GetActiveWindow()); } System.Windows.Forms.UnsafeNativeMethods.ShellExecute_NoBFM(ref2, null, uri.ToString(), null, null, 1); }
public virtual void SetHelpHelpNavigator(Control ctl, HelpNavigator helpNavigator) { this.getField(ctl).Navigator = helpNavigator; }
public Field(Control control) { this.Control = control; this.Navigator = HelpNavigator.AssociateIndex; this.ShowHelp = false; }
public static void ShowHelp (Control parent, string url, HelpNavigator command, object parameter) { }
public void SetHelpData (string file_path, string keyword, HelpNavigator navigator, object param) { help_file_path = file_path; help_keyword = keyword; help_navigator = navigator; help_param = param; }
public static void SetHelpNavigator(DependencyObject obj, HelpNavigator value) { obj.SetValue(HelpNavigatorProperty, value); }
public static void ShowHelp (Control parent, string url, HelpNavigator navigator) { ShowHelp(parent, url, navigator, null); }
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { Initialize(); return MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param); }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) {}
public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) {}
private void LaunchHelp(string url, HelpNavigator command, object parameter) { Help.ShowHelp(GetHelpParentWindow(), url, command, parameter); }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { System.Windows.Forms.HelpInfo hpi = new System.Windows.Forms.HelpInfo(helpFilePath, navigator, param); return ShowCore(owner, text, caption, buttons, icon, defaultButton, options, hpi); }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator) { _owner = owner; Initialize(); return MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator); }
/// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.SetHelpNavigator"]/*' /> /// <devdoc> /// <para> /// Specifies the Help keyword to display when /// the user invokes Help for a control. /// </para> /// </devdoc> public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { //valid values are 0x80000001 to 0x80000007 if (!ClientUtils.IsEnumValid(navigator, (int)navigator, (int)HelpNavigator.Topic, (int)HelpNavigator.TopicId)){ //validate the HelpNavigator enum throw new InvalidEnumArgumentException("navigator", (int)navigator, typeof(HelpNavigator)); } navigators[ctl] = navigator; SetShowHelp(ctl, true); UpdateEventBinding(ctl); }
public DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { return System.Windows.Forms.MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param); }