protected override void OnHelpRequested(HelpEventArgs hevent) { // Get the active control Control activeControl = HelpUtils.GetActiveControl(this); // Figure out the context DataConnectionDialogContext context = DataConnectionDialogContext.AddProperty; if (activeControl == propertyTextBox) { context = DataConnectionDialogContext.AddPropertyTextBox; } if (activeControl == okButton) { context = DataConnectionDialogContext.AddPropertyOkButton; } if (activeControl == cancelButton) { context = DataConnectionDialogContext.AddPropertyCancelButton; } // Call OnContextHelpRequested ContextHelpEventArgs e = new ContextHelpEventArgs(context, hevent.MousePos); _mainDialog.OnContextHelpRequested(e); hevent.Handled = e.Handled; if (!e.Handled) { base.OnHelpRequested(hevent); } }
private void ControlHelpRequested(object sender, HelpEventArgs helpEvent) { if (!SupressHelpRequests && !string.IsNullOrEmpty(Url)) { helpEvent.Handled = true; OpenUrl(); } }
public void Catch_HelpRequested(object sender, HelpEventArgs hlpevent) { string message; if (_listeMessage.TryGetValue(sender, out message)) { helpToolTip.Show(message, sender as IWin32Window); } }
private void CurrentControl_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs e) { if (System.Windows.Forms.Control.MouseButtons == System.Windows.Forms.MouseButtons.Left) { Provider.ShowTip(CurrentControl, Skybound.VisualTips.VisualTipDisplayOptions.HideOnMouseLeave | Skybound.VisualTips.VisualTipDisplayOptions.HideOnLostFocus); } e.Handled = true; }
/// <summary> /// Dit is de eventhandler voor het functioneren van de tooltips. /// </summary> /// <param name="sender">Het UI element waarover help wordt opgevraagt.</param> /// <param name="hlpevent"></param> public void View_HelpRequested(object sender, HelpEventArgs hlpevent) { Control requestingControl = (Control)sender; this.tooltip.ToolTipIcon = ToolTipIcon.Info; this.tooltip.ToolTipTitle = requestingControl.Text; this.tooltip.UseAnimation = true; this.tooltip.Show(requestingControl.Tag.ToString(), requestingControl, 5000); hlpevent.Handled = true; }
private void textBox_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { // This event is raised when the F1 key is pressed or the // Help cursor is clicked on any of the address fields. // The Help text for the field is in the control's // Tag property. It is retrieved and displayed in the label. Control requestingControl = (Control)sender; helpLabel.Text = (string)requestingControl.Tag; hlpevent.Handled = true; }
protected override void OnHelpRequested(HelpEventArgs hevent) { // Get the active control Control activeControl = this; ContainerControl containerControl = null; while ((containerControl = activeControl as ContainerControl) != null && containerControl != propertyGrid && containerControl.ActiveControl != null) { activeControl = containerControl.ActiveControl; } // Figure out the context DataConnectionDialogContext context = DataConnectionDialogContext.Advanced; if (activeControl == propertyGrid) { context = DataConnectionDialogContext.AdvancedPropertyGrid; } if (activeControl == textBox) { context = DataConnectionDialogContext.AdvancedTextBox; } if (activeControl == okButton) { context = DataConnectionDialogContext.AdvancedOkButton; } if (activeControl == cancelButton) { context = DataConnectionDialogContext.AdvancedCancelButton; } // Call OnContextHelpRequested ContextHelpEventArgs e = new ContextHelpEventArgs(context, hevent.MousePos); _mainDialog.OnContextHelpRequested(e); hevent.Handled = e.Handled; if (!e.Handled) { base.OnHelpRequested(hevent); } }
private void OnControlHelp(object sender, HelpEventArgs hevent) { Control ctl = (Control) sender; string helpString = this.GetHelpString(ctl); string helpKeyword = this.GetHelpKeyword(ctl); HelpNavigator helpNavigator = this.GetHelpNavigator(ctl); if (this.GetShowHelp(ctl)) { if (((Control.MouseButtons != MouseButtons.None) && (helpString != null)) && (helpString.Length > 0)) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } if (!hevent.Handled && (this.helpNamespace != null)) { if ((helpKeyword != null) && (helpKeyword.Length > 0)) { Help.ShowHelp(ctl, this.helpNamespace, helpNavigator, helpKeyword); hevent.Handled = true; } if (!hevent.Handled) { Help.ShowHelp(ctl, this.helpNamespace, helpNavigator); hevent.Handled = true; } } if ((!hevent.Handled && (helpString != null)) && (helpString.Length > 0)) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } if (!hevent.Handled && (this.helpNamespace != null)) { Help.ShowHelp(ctl, this.helpNamespace); hevent.Handled = true; } } }
private void GetPassword_HelpRequested(object sender, HelpEventArgs hlpevent) { //Translate the screen coordinates to client coordinates.......... Point p = this.PointToClient(hlpevent.MousePos); Control b = FindControl(this, p); if (b != null) { if (b == tbOldPassword || b == label1) { ttHelp.Show("previously set password for sealth mode ", b,5000); } else if (b == tbPassword || b == label2) { ttHelp.Show("Enter new password for sealth mode ", b,5000); } else if (b == tbConfirmPassowrd || b == label3) { ttHelp.Show("Confirm newly entered password by reentering here", b,5000); } } hlpevent.Handled = true; }
private void Form1_HelpRequested(System.Object sender, System.Windows.Forms.HelpEventArgs hlpevent) { // Create a custom Help window in response to the HelpRequested event. Form helpForm = new Form(); // Set up the form position, size, and title caption. helpForm.StartPosition = FormStartPosition.Manual; helpForm.Size = new Size(200, 400); helpForm.DesktopLocation = new Point(this.DesktopBounds.X + this.Size.Width, this.DesktopBounds.Top); helpForm.Text = "Help Form"; // Create a label to contain the Help text. Label helpLabel = new Label(); // Add the label to the form and set its text. helpForm.Controls.Add(helpLabel); helpLabel.Dock = DockStyle.Fill; // Use the sender parameter to identify the context of the Help request. // The parameter must be cast to the Control type to get the Tag property. Control senderControl = sender as Control; helpLabel.Text = "Help information shown in response to user action on the '" + (string)senderControl.Tag + "' message."; // Set the Help form to be owned by the main form. This helps // to ensure that the Help form is disposed of. this.AddOwnedForm(helpForm); // Show the custom Help window. helpForm.Show(); // Indicate that the HelpRequested event is handled. hlpevent.Handled = true; }
private void HistoryWindow_HelpRequested(object sender, HelpEventArgs hlpevent) { Help.HelpManager.Launch("LogWindow"); hlpevent.Handled = true; }
protected override void OnHelpRequested(HelpEventArgs e) { e.Handled = true; this.GetHelp(); }
// can't override the function in control. bug in compiler. Fixed? protected override void OnHelpRequested(HelpEventArgs e){ }
private void undockedForm_HelpRequested(object sender, HelpEventArgs hlpevent) { Help.HelpManager.Launch("TabPageConsole"); hlpevent.Handled = true; }
private void Form_HelpRequested(object sender, HelpEventArgs e) { this.editor.ShowHelp(); }
private void frmCountByDocument_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { ShowHelp myHelp = new ShowHelp(); myHelp.MakeHelp("countbydoc"); }
/// <summary> /// Handles the help event by displaying the property pages help from WiX.chm. /// </summary> /// <param name="sender">The control sending the event.</param> /// <param name="hlpevent">Event parameters.</param> private void PropertyPagePanel_HelpRequested(object sender, HelpEventArgs hlpevent) { WixHelperMethods.ShowWixHelp(this.PropertyPagePanel, @"html\votive_property_pages.htm"); }
private void Form1_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { MessageBox.Show(this, Application.ProductName + " " + Application.ProductVersion + "\r\n\r\n©2006 Joel McBeth. All rights reserved.", "About", MessageBoxButtons.OK, MessageBoxIcon.Information); hlpevent.Handled = true; }
private void DeleteCourseDialog_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { Microsoft.VisualStudio.VSHelp.Help help = (Microsoft.VisualStudio.VSHelp.Help)m_applicationObject.GetObject("Help"); help.DisplayTopicFromF1Keyword("vs.AMDeleteCourse"); }
private void ControlHelpRequested(object sender, System.Windows.Forms.HelpEventArgs args) { args.Handled |= FindAndInvokeHelp((WinForms.Control)sender); }
private void frmLogon_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { ShowHelp myHelp = new ShowHelp(); myHelp.MakeHelp("login"); }
private void WizardFrom_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { ShowActivePaneHelp(); }
// Process a help request on the form. protected override void OnHelpRequested(HelpEventArgs e) { base.OnHelpRequested(e); dialog.EmitHelpRequest(e); }
/// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.OnControlHelp"]/*' /> /// <devdoc> /// Handles the help event for any bound controls. /// </devdoc> /// <internalonly/> private void OnControlHelp(object sender, HelpEventArgs hevent) { Control ctl = (Control)sender; string helpString = GetHelpString(ctl); string keyword = GetHelpKeyword(ctl); HelpNavigator navigator = GetHelpNavigator(ctl); bool show = GetShowHelp(ctl); if (!show) { return; } // If the mouse was down, we first try whats this help // if (Control.MouseButtons != MouseButtons.None && helpString != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: Mouse down w/ helpstring"); if (helpString.Length > 0) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } } // If we have a help file, and help keyword we try F1 help next // if (!hevent.Handled && helpNamespace != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: F1 help"); if (keyword != null) { if (keyword.Length > 0) { Help.ShowHelp(ctl, helpNamespace, navigator, keyword); hevent.Handled = true; } } if (!hevent.Handled) { Help.ShowHelp(ctl, helpNamespace, navigator); hevent.Handled = true; } } // So at this point we don't have a help keyword, so try to display // the whats this help // if (!hevent.Handled && helpString != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: back to helpstring"); if (helpString.Length > 0) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } } // As a last resort, just popup the contents page of the help file... // if (!hevent.Handled && helpNamespace != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: contents"); Help.ShowHelp(ctl, helpNamespace); hevent.Handled = true; } }
private void CreateSessionForm_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { }
private void frmSupplierSearch_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { ShowHelp myHelp = new ShowHelp(); myHelp.MakeHelp("supsearch"); }
// Process a help request on the form. protected override void OnHelpRequested(HelpEventArgs e) { base.OnHelpRequested(e); dialog.EmitHelpRequest(e); }
private void MainForm_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { Help.ShowHelp(this, "ToolsHelp.chm", HelpNavigator.KeywordIndex, "Device Relay"); }
/// <summary> /// Displays help, if available. /// </summary> /// <param name="sender">Event sender.</param> /// <param name="hlpevent">Event arguments.</param> public void PropertyHelpRequested( object sender, HelpEventArgs hlpevent ) { SetHelpTooltip( (Control) sender, this.Annotation ); }
private void OnHelpRequested(object sender, HelpEventArgs e) { OnClickHelpButton(null, null); }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// helpeventhandler.BeginInvoke(sender, hlpevent, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this HelpEventHandler helpeventhandler, Object sender, HelpEventArgs hlpevent, AsyncCallback callback) { if(helpeventhandler == null) throw new ArgumentNullException("helpeventhandler"); return helpeventhandler.BeginInvoke(sender, hlpevent, callback, null); }
/// <summary> /// HelpRequested event handler of the mapPropertyEditor control. /// </summary> /// <param name="sender">The source object of this event.</param> /// <param name="hlpevent">The parameters of the help event.</param> void mapPropertyEditor_HelpRequested(object sender, HelpEventArgs hlpevent) { if (this.HelpRequested != null) this.HelpRequested(sender, hlpevent); }
protected override void OnHelpRequested(HelpEventArgs hlpevent) { ProtectDialogHelpHelper.ShowHelpByTopicId(this, ProtectDialogHelpHelper.TopicId.PesMobileClient); }
// private void mnuiDebugOn_Click(object sender, EventArgs e) // { // logger mylog = new logger(); // mylog.makelog("Debug Toggle"); // if (this.mnuiDebugOn.Text == "Debug On") // { // if (frmStart.debug == false) // { // frmStart.debug = true; // this.mnuiDebugOn.Text = "Debug Off"; // mylog.makelog("Debug On"); // } // } // else // { // //debug off // if (frmStart.debug == true) // { // frmStart.debug = false; // this.mnuiDebugOn.Text = "Debug On"; // mylog.makelog("Debug Off"); // } // } // } #endregion #region Help Links private void frmStockCountStart_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { ShowHelp myHelp = new ShowHelp(); myHelp.MakeHelp("stockcount"); }
/// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.OnControlHelp"]/*' /> /// <devdoc> /// Handles the help event for any bound controls. /// </devdoc> /// <internalonly/> private void OnControlHelp(object sender, HelpEventArgs hevent) { Control ctl = (Control)sender; string helpString = GetHelpString(ctl); string keyword = GetHelpKeyword(ctl); HelpNavigator navigator = GetHelpNavigator(ctl); bool show = GetShowHelp(ctl); if (!show) { return; } // If the mouse was down, we first try whats this help // if (Control.MouseButtons != MouseButtons.None && helpString != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: Mouse down w/ helpstring"); if (helpString.Length > 0) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } } // If we have a help file, and help keyword we try F1 help next // if (!hevent.Handled && helpNamespace != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: F1 help"); if (keyword != null) { if (keyword.Length > 0) { Help.ShowHelp(ctl, helpNamespace, navigator, keyword); hevent.Handled = true; } } if (!hevent.Handled) { Help.ShowHelp(ctl, helpNamespace, navigator); hevent.Handled = true; } } // So at this point we don't have a help keyword, so try to display // the whats this help // if (!hevent.Handled && helpString != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: back to helpstring"); if (helpString.Length > 0) { Help.ShowPopup(ctl, helpString, hevent.MousePos); hevent.Handled = true; } } // As a last resort, just popup the contents page of the help file... // if (!hevent.Handled && helpNamespace != null) { Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: contents"); Help.ShowHelp(ctl, helpNamespace); hevent.Handled = true; } }
private void tbPtoVta_HelpRequested(object sender, HelpEventArgs hlpevent) { formAyuda fa = CrearAyudaSucursales(); if (fa.ShowDialog() == System.Windows.Forms.DialogResult.OK) { tbPtoVta.Text = ((sucursales)fa.ElementoDevuelto).id.ToString(); } }
private void Config_HelpRequested(object sender, HelpEventArgs hlpevent) { IrssHelp.Open(sender); }
protected sealed override void OnHelpRequested(HelpEventArgs hevent) { ShowHelp(); hevent.Handled = true; }
/// <summary> /// Defines the event delegate when help is requested. /// </summary> /// <param name="sender"></param> /// <param name="hlpevent"></param> private void OnHelpRequested(object sender, HelpEventArgs hlpevent) { if (String.IsNullOrEmpty(this.helpTopic)) { return; } this.ShowHelp(); hlpevent.Handled = true; }
private void DataGridViewColumnCollectionDialog_HelpRequested(object sender, HelpEventArgs e) { this.DataGridViewColumnCollectionDialog_HelpRequestHandled(); e.Handled = true; }
private void btnGetOffsetFromEditor_HelpRequested(object sender, HelpEventArgs hlpevent) { ToolBarHelpDLG HelpInfo = new ToolBarHelpDLG(); string fileName = AssemblyDirectory + "/Help/GetOffsetFromEditor.htm"; HelpInfo.webBrowser1.Url = new Uri(fileName); HelpInfo.Location = btnGetOffsetFromEditor.Location; HelpInfo.Owner = this; HelpInfo.Show(); hlpevent.Handled = true; }
private void Form1_HelpRequested(object sender, HelpEventArgs hlpevent) { button1_Click(sender, hlpevent); }
private void XenDialogBase_HelpRequested(object sender, HelpEventArgs hlpevent) { Help.HelpManager.Launch(HelpName); hlpevent.Handled = true; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Handle the F1 help request. We treat it as the user pressing the help button (i.e. /// us). /// </summary> /// <param name="sender">The sender.</param> /// <param name="hlpevent">The <see cref="T:System.Windows.Forms.HelpEventArgs"/> /// instance containing the event data.</param> /// ------------------------------------------------------------------------------------ private void OnParentHelpRequested(object sender, HelpEventArgs hlpevent) { hlpevent.Handled = true; OnClick(EventArgs.Empty); }
private void XenWizardBase_HelpRequested(object sender, HelpEventArgs hlpevent) { Help.HelpManager.Launch(WizardPaneHelpID()); }
private void OnHelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent) { messageBoxDisplayService.Show($"Help for {sender.ToString()}"); }