本文整理汇总了C#中System.Windows.Forms.HelpEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# HelpEventArgs类的具体用法?C# HelpEventArgs怎么用?C# HelpEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HelpEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了HelpEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnHelpRequested
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);
}
}
开发者ID:kjbartel,项目名称:ConnectionDialog,代码行数:29,代码来源:AddPropertyDialog.cs
示例2: Catch_HelpRequested
public void Catch_HelpRequested(object sender, HelpEventArgs hlpevent)
{
string message;
if (_listeMessage.TryGetValue(sender, out message))
{
helpToolTip.Show(message, sender as IWin32Window);
}
}
开发者ID:KingJiangNet,项目名称:tortoise-redmine,代码行数:8,代码来源:AfficheurAide.cs
示例3: ControlHelpRequested
private void ControlHelpRequested(object sender, HelpEventArgs helpEvent)
{
if (!SupressHelpRequests && !string.IsNullOrEmpty(Url))
{
helpEvent.Handled = true;
OpenUrl();
}
}
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:8,代码来源:WebHelp.cs
示例4: View_HelpRequested
/// <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;
}
开发者ID:DutchSoldier,项目名称:FHSICT,代码行数:14,代码来源:VerhuurApplicatie.cs
示例5: OnHelpRequested
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);
}
}
开发者ID:sridhar19091986,项目名称:protocolmining,代码行数:40,代码来源:DataConnectionAdvancedDialog.cs
示例6: OnControlHelp
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;
}
}
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:38,代码来源:HelpProvider.cs
示例7: GetPassword_HelpRequested
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;
}
开发者ID:vineelkovvuri,项目名称:Detective-007,代码行数:23,代码来源:GetPassword.cs
示例8: OnHelpRequested
// Process a help request on the form.
protected override void OnHelpRequested(HelpEventArgs e)
{
base.OnHelpRequested(e);
dialog.EmitHelpRequest(e);
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:6,代码来源:FontDialog.cs
示例9: btnGetOffsetFromEditor_HelpRequested
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;
}
开发者ID:Esri,项目名称:parcel-fabric-desktop-addins,代码行数:12,代码来源:InverseDirectionDLG.cs
示例10: OnHelpRequested
/// <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;
}
开发者ID:Jeremiahf,项目名称:wix3,代码行数:15,代码来源:fileoverwritedialog.cs
示例11: Config_HelpRequested
private void Config_HelpRequested(object sender, HelpEventArgs hlpevent)
{
IrssHelp.Open(sender);
}
开发者ID:Azzuro,项目名称:IR-Server-Suite,代码行数:4,代码来源:Config.cs
示例12: OnControlHelp
/// <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;
}
}
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:65,代码来源:HelpProvider.cs
示例13: OnHelpRequested
protected override void OnHelpRequested(HelpEventArgs hlpevent)
{
ProtectDialogHelpHelper.ShowHelpByTopicId(this, ProtectDialogHelpHelper.TopicId.PesMobileClient);
}
开发者ID:killbug2004,项目名称:WSProf,代码行数:4,代码来源:ProtectRemovableMediaDialog.cs
示例14: mapPropertyEditor_HelpRequested
/// <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);
}
开发者ID:4g0st1n0,项目名称:MapManager,代码行数:10,代码来源:MapPropertyEditorForm.cs
示例15: OnHelpRequested
private void OnHelpRequested(object sender, HelpEventArgs e)
{
OnClickHelpButton(null, null);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:4,代码来源:QueuePathDialog.cs
示例16: BeginInvoke
/// <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);
}
开发者ID:peteraritchie,项目名称:ProductivityExtensions,代码行数:12,代码来源:HelpEventHandlerable.g.cs
示例17: undockedForm_HelpRequested
private void undockedForm_HelpRequested(object sender, HelpEventArgs hlpevent)
{
Help.HelpManager.Launch("TabPageConsole");
hlpevent.Handled = true;
}
开发者ID:ChrisH4rding,项目名称:xenadmin,代码行数:5,代码来源:VNCView.cs
示例18: tbPtoVta_HelpRequested
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();
}
}
开发者ID:joasilvab,项目名称:prueba,代码行数:8,代码来源:Form1.cs
示例19: Form_HelpRequested
private void Form_HelpRequested(object sender, HelpEventArgs e)
{
this.editor.ShowHelp();
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:4,代码来源:StringCollectionEditor.cs
示例20: OnHelpRequested
protected sealed override void OnHelpRequested(HelpEventArgs hevent)
{
ShowHelp();
hevent.Handled = true;
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:5,代码来源:DesignerForm.cs
注:本文中的System.Windows.Forms.HelpEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论