當前位置: 首頁>>代碼示例>>C#>>正文


C# HelpProvider.SetHelpString方法代碼示例

本文整理匯總了C#中System.Windows.Forms.HelpProvider.SetHelpString方法的典型用法代碼示例。如果您正苦於以下問題:C# HelpProvider.SetHelpString方法的具體用法?C# HelpProvider.SetHelpString怎麽用?C# HelpProvider.SetHelpString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Windows.Forms.HelpProvider的用法示例。


在下文中一共展示了HelpProvider.SetHelpString方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: LabelViewer

        public LabelViewer()
        {
            InitializeComponent();

            source_path = "";
            archive_path = "";

            /* Setting up refresh timer to enable and disable the buttons. */
            global_timer = new Timer();
            global_timer.Interval = 500;
            global_timer.Tick += new EventHandler(refresh_label_viewer);
            global_timer.Start();

            /* Populating the file_extensions and adding it to the checklist */
            file_extensions.Add("Zebra Labels: .zpl");
            file_extensions.Add("Intermec Labels: .ipl");
            file_extensions.Add("Sato Labels: .lbl");
            file_extensions.Add("Datamax Labels: .dpl");

            int counter = 0;

            while (counter < file_extensions.Count)
            {
                extensionsList.Items.Add(file_extensions.ElementAt(counter));
                counter++;
            }

            extensionsList.CheckOnClick = false;

            helpProvider1 = new HelpProvider();

            helpProvider1.SetShowHelp(directoryText, true);
            helpProvider1.SetHelpString(directoryText, "Enter the path to the source directory.");

            helpProvider1.SetShowHelp(archiveText, true);
            helpProvider1.SetHelpString(archiveText, "Enter the path to the archive directory.");

            helpProvider1.SetShowHelp(revertButton, true);
            helpProvider1.SetHelpString(revertButton, "Moves ALL the files from the archive to source directory.");

            helpProvider1.SetShowHelp(searchButton, true);
            helpProvider1.SetHelpString(searchButton, "Starts the polling process on the source directory.");

            helpProvider1.SetShowHelp(InstructionsButton, true);
            helpProvider1.SetHelpString(InstructionsButton, "Follow these set of instructions.");

            helpProvider1.SetShowHelp(ExitButton, true);
            helpProvider1.SetHelpString(ExitButton, "Exit (Esc)");

            helpProvider1.HelpNamespace = "help.chm";

            helpProvider1.SetHelpNavigator(directoryText, HelpNavigator.TableOfContents);
        }
開發者ID:aditya7iyengar,項目名稱:Label-Viewer,代碼行數:53,代碼來源:LabelViewer.cs

示例2: BasicPropertiesTest

		public void BasicPropertiesTest ()
		{
			SWF.HelpProvider swfHelpProvider = new SWF.HelpProvider ();
			
			SWF.Button swfButton = new SWF.Button ();
			swfButton.Location = new SD.Point (3, 3);
			swfButton.Size = new SD.Size (272, 72);
			swfButton.Text = "With help";
			
			SWF.Button swfButtonNoHelp = new SWF.Button ();
			swfButtonNoHelp.Location = new SD.Point (3, 30);
			swfButtonNoHelp.Size = new SD.Size (272, 72);
			swfButtonNoHelp.Text = "No help";
			
			//We have to use an event to fake the user click
			swfButton.Click += new System.EventHandler (OnControlClicked);

			swfHelpProvider.SetShowHelp (swfButton, true);
			swfHelpProvider.SetHelpString (swfButton, "I'm showing a button tooltip.");
			
			Form.Controls.Add (swfButton);
			Form.Controls.Add (swfButtonNoHelp);
			
			//Testing ToolTipOpenedEvent
			bridge.ResetEventLists ();
			swfButton.PerformClick (); //Clicking the button will fake the event!

			StructureChangedEventTuple eventTuple 
				= bridge.GetStructureChangedEventAt (0, StructureChangeType.ChildAdded);
			Assert.IsNotNull (eventTuple, "GetAutomationEventAt (0)");
			
			//We have the HelpProvider!
			IRawElementProviderFragment helpProvider = eventTuple.provider as IRawElementProviderFragment;
			
			Assert.IsNotNull (helpProvider, "helpProvider is null");
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.IsControlElementProperty,
			              true);
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.IsContentElementProperty,
			              false);			

			TestProperty (helpProvider,
			              AutomationElementIdentifiers.HelpTextProperty,
			              null);

			TestProperty (helpProvider,
			              AutomationElementIdentifiers.LocalizedControlTypeProperty,
			              "tool tip");
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.ControlTypeProperty,
			              ControlType.ToolTip.Id);
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.LabeledByProperty,
			              null);
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.NameProperty,
			              swfHelpProvider.GetHelpString (swfButton));
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.IsKeyboardFocusableProperty,
			              false);
			
			TestProperty (helpProvider,
			              AutomationElementIdentifiers.ClickablePointProperty,
			              null);

			// TODO: How to allow it?
//			bridge.ResetEventLists ();
//
//			swfButtonNoHelp.PerformClick (); //Clicking this button will close the tooltip
//			
//			Assert.AreEqual (1,
//			                 bridge.GetAutomationEventCount (InvokePatternIdentifiers.InvokedEvent),
//			                 "AutomationElementIdentifiers.InvokedEvent");
//	
//			Assert.IsNotNull (bridge.GetStructureChangedEventAt (0, StructureChangeType.ChildRemoved),
//			                 "AutomationElementIdentifiers.ChildRemoved");
		}
開發者ID:mono,項目名稱:uia2atk,代碼行數:84,代碼來源:HelpProviderTest.cs

示例3: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Windows.Forms.Button btnHelp;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddCnvtrDlg));
			System.Windows.Forms.Button btnClose;
			System.Windows.Forms.HelpProvider helpProvider1;
			this.label1 = new System.Windows.Forms.Label();
			this.m_addCnvtrTabCtrl = new System.Windows.Forms.TabControl();
			this.propertiesTab = new System.Windows.Forms.TabPage();
			this.m_cnvtrPropertiesCtrl = new SIL.FieldWorks.FwCoreDlgs.CnvtrPropertiesCtrl();
			this.testTab = new System.Windows.Forms.TabPage();
			this.m_converterTest = new SIL.FieldWorks.FwCoreDlgs.ConverterTest();
			this.advancedTab = new System.Windows.Forms.TabPage();
			this.m_advancedEncProps = new SIL.FieldWorks.FwCoreDlgs.AdvancedEncProps();
			this.availableCnvtrsListBox = new System.Windows.Forms.ListBox();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnCopy = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			btnHelp = new System.Windows.Forms.Button();
			btnClose = new System.Windows.Forms.Button();
			helpProvider1 = new System.Windows.Forms.HelpProvider();
			this.m_addCnvtrTabCtrl.SuspendLayout();
			this.propertiesTab.SuspendLayout();
			this.testTab.SuspendLayout();
			this.advancedTab.SuspendLayout();
			this.SuspendLayout();
			//
			// btnHelp
			//
			resources.ApplyResources(btnHelp, "btnHelp");
			btnHelp.Name = "btnHelp";
			helpProvider1.SetShowHelp(btnHelp, ((bool)(resources.GetObject("btnHelp.ShowHelp"))));
			btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
			//
			// btnClose
			//
			resources.ApplyResources(btnClose, "btnClose");
			helpProvider1.SetHelpString(btnClose, resources.GetString("btnClose.HelpString"));
			btnClose.Name = "btnClose";
			helpProvider1.SetShowHelp(btnClose, ((bool)(resources.GetObject("btnClose.ShowHelp"))));
			btnClose.Click += new System.EventHandler(this.btnClose_Click);
			//
			// label1
			//
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			helpProvider1.SetShowHelp(this.label1, ((bool)(resources.GetObject("label1.ShowHelp"))));
			//
			// m_addCnvtrTabCtrl
			//
			resources.ApplyResources(this.m_addCnvtrTabCtrl, "m_addCnvtrTabCtrl");
			this.m_addCnvtrTabCtrl.Controls.Add(this.propertiesTab);
			this.m_addCnvtrTabCtrl.Name = "m_addCnvtrTabCtrl";
			this.m_addCnvtrTabCtrl.SelectedIndex = 0;
			helpProvider1.SetShowHelp(this.m_addCnvtrTabCtrl, ((bool)(resources.GetObject("m_addCnvtrTabCtrl.ShowHelp"))));
			this.m_addCnvtrTabCtrl.SelectedIndexChanged += new System.EventHandler(this.AddCnvtrTabCtrl_SelectedIndexChanged);
			//
			// propertiesTab
			//
			this.propertiesTab.Controls.Add(this.m_cnvtrPropertiesCtrl);
			resources.ApplyResources(this.propertiesTab, "propertiesTab");
			this.propertiesTab.Name = "propertiesTab";
			helpProvider1.SetShowHelp(this.propertiesTab, ((bool)(resources.GetObject("propertiesTab.ShowHelp"))));
			this.propertiesTab.Tag = "ktagProperties";
			this.propertiesTab.UseVisualStyleBackColor = true;
			//
			// m_cnvtrPropertiesCtrl
			//
			this.m_cnvtrPropertiesCtrl.BackColor = System.Drawing.Color.Transparent;
			this.m_cnvtrPropertiesCtrl.ConverterChanged = true;
			resources.ApplyResources(this.m_cnvtrPropertiesCtrl, "m_cnvtrPropertiesCtrl");
			this.m_cnvtrPropertiesCtrl.Name = "m_cnvtrPropertiesCtrl";
			this.m_cnvtrPropertiesCtrl.OnlyUnicode = false;
			helpProvider1.SetShowHelp(this.m_cnvtrPropertiesCtrl, ((bool)(resources.GetObject("m_cnvtrPropertiesCtrl.ShowHelp"))));
			//
			// testTab
			//
			this.testTab.Controls.Add(this.m_converterTest);
			resources.ApplyResources(this.testTab, "testTab");
			this.testTab.Name = "testTab";
			helpProvider1.SetShowHelp(this.testTab, ((bool)(resources.GetObject("testTab.ShowHelp"))));
			this.testTab.Tag = "ktagTest";
			this.testTab.UseVisualStyleBackColor = true;
			//
			// m_converterTest
			//
			resources.ApplyResources(this.m_converterTest, "m_converterTest");
			this.m_converterTest.Name = "m_converterTest";
			helpProvider1.SetShowHelp(this.m_converterTest, ((bool)(resources.GetObject("m_converterTest.ShowHelp"))));
			//
			// advancedTab
			//
			this.advancedTab.Controls.Add(this.m_advancedEncProps);
			resources.ApplyResources(this.advancedTab, "advancedTab");
			this.advancedTab.Name = "advancedTab";
			helpProvider1.SetShowHelp(this.advancedTab, ((bool)(resources.GetObject("advancedTab.ShowHelp"))));
//.........這裏部分代碼省略.........
開發者ID:sillsdev,項目名稱:WorldPad,代碼行數:101,代碼來源:AddCnvtrDlg.cs

示例4: GetProvider

		protected override IRawElementProviderSimple GetProvider ()
		{
			SWF.HelpProvider swfHelpProvider = new SWF.HelpProvider ();
			
			SWF.Button swfButton = new SWF.Button ();
			swfButton.Location = new SD.Point (3, 3);
			swfButton.Size = new SD.Size (272, 72);
			swfButton.Text = "With help";
			
			SWF.Button swfButtonNoHelp = new SWF.Button ();
			swfButtonNoHelp.Location = new SD.Point (3, 30);
			swfButtonNoHelp.Size = new SD.Size (272, 72);
			swfButtonNoHelp.Text = "No help";
			
			//We have to use an event to fake the user click
			swfButton.Click += new System.EventHandler (OnControlClicked);

			swfHelpProvider.SetShowHelp (swfButton, true);
			swfHelpProvider.SetHelpString (swfButton, "I'm showing a button tooltip.");
			
			Form.Controls.Add (swfButton);
			Form.Controls.Add (swfButtonNoHelp);
			
			//Testing ToolTipOpenedEvent
			bridge.ResetEventLists ();
			swfButton.PerformClick (); //Clicking the button will fake the event!

			StructureChangedEventTuple eventTuple 
				= bridge.GetStructureChangedEventAt (0, StructureChangeType.ChildAdded);
			return eventTuple.provider as IRawElementProviderSimple;
		}
開發者ID:mono,項目名稱:uia2atk,代碼行數:31,代碼來源:HelpProviderTest.cs

示例5: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Windows.Forms.Button selectFileButton;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterTest));
			System.Windows.Forms.Label label2;
			System.Windows.Forms.Label label3;
			System.Windows.Forms.HelpProvider helpProvider1;
			this.outputFontCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.convertButton = new System.Windows.Forms.Button();
			this.OutputPanel = new System.Windows.Forms.Panel();
			this.saveFileButton = new System.Windows.Forms.Button();
			this.txtInputFile = new System.Windows.Forms.TextBox();
			this.toolTipInputFile = new System.Windows.Forms.ToolTip(this.components);
			selectFileButton = new System.Windows.Forms.Button();
			label2 = new System.Windows.Forms.Label();
			label3 = new System.Windows.Forms.Label();
			helpProvider1 = new HelpProvider();
			this.SuspendLayout();
			//
			// selectFileButton
			//
			helpProvider1.SetHelpString(selectFileButton, resources.GetString("selectFileButton.HelpString"));
			resources.ApplyResources(selectFileButton, "selectFileButton");
			selectFileButton.Name = "selectFileButton";
			helpProvider1.SetShowHelp(selectFileButton, ((bool)(resources.GetObject("selectFileButton.ShowHelp"))));
			selectFileButton.Click += new System.EventHandler(this.selectFileButton_Click);
			//
			// label2
			//
			resources.ApplyResources(label2, "label2");
			helpProvider1.SetHelpString(label2, resources.GetString("label2.HelpString"));
			label2.Name = "label2";
			helpProvider1.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp"))));
			//
			// outputFontCombo
			//
			resources.ApplyResources(this.outputFontCombo, "outputFontCombo");
			this.outputFontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			helpProvider1.SetHelpString(this.outputFontCombo, resources.GetString("outputFontCombo.HelpString"));
			this.outputFontCombo.Name = "outputFontCombo";
			helpProvider1.SetShowHelp(this.outputFontCombo, ((bool)(resources.GetObject("outputFontCombo.ShowHelp"))));
			this.outputFontCombo.SelectedIndexChanged += new System.EventHandler(this.outputFontCombo_SelectedIndexChanged);
			//
			// convertButton
			//
			resources.ApplyResources(this.convertButton, "convertButton");
			helpProvider1.SetHelpString(this.convertButton, resources.GetString("convertButton.HelpString"));
			this.convertButton.Name = "convertButton";
			helpProvider1.SetShowHelp(this.convertButton, ((bool)(resources.GetObject("convertButton.ShowHelp"))));
			this.convertButton.Click += new System.EventHandler(this.convertButton_Click);
			//
			// label3
			//
			resources.ApplyResources(label3, "label3");
			label3.Name = "label3";
			helpProvider1.SetShowHelp(label3, ((bool)(resources.GetObject("label3.ShowHelp"))));
			//
			// OutputPanel
			//
			resources.ApplyResources(this.OutputPanel, "OutputPanel");
			this.OutputPanel.BackColor = System.Drawing.SystemColors.Control;
			this.OutputPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			helpProvider1.SetHelpString(this.OutputPanel, resources.GetString("OutputPanel.HelpString"));
			this.OutputPanel.Name = "OutputPanel";
			helpProvider1.SetShowHelp(this.OutputPanel, ((bool)(resources.GetObject("OutputPanel.ShowHelp"))));
			//
			// saveFileButton
			//
			resources.ApplyResources(this.saveFileButton, "saveFileButton");
			helpProvider1.SetHelpString(this.saveFileButton, resources.GetString("saveFileButton.HelpString"));
			this.saveFileButton.Name = "saveFileButton";
			helpProvider1.SetShowHelp(this.saveFileButton, ((bool)(resources.GetObject("saveFileButton.ShowHelp"))));
			this.saveFileButton.Click += new System.EventHandler(this.saveFileButton_Click);
			//
			// txtInputFile
			//
			resources.ApplyResources(this.txtInputFile, "txtInputFile");
			this.txtInputFile.BackColor = System.Drawing.SystemColors.Window;
			this.txtInputFile.Cursor = System.Windows.Forms.Cursors.Arrow;
			this.txtInputFile.Name = "txtInputFile";
			this.txtInputFile.ReadOnly = true;
			helpProvider1.SetShowHelp(this.txtInputFile, ((bool)(resources.GetObject("txtInputFile.ShowHelp"))));
			this.txtInputFile.TabStop = false;
			//
			// ConverterTest
			//
			this.Controls.Add(this.txtInputFile);
			this.Controls.Add(this.convertButton);
			this.Controls.Add(this.saveFileButton);
			this.Controls.Add(this.OutputPanel);
			this.Controls.Add(label3);
			this.Controls.Add(label2);
			this.Controls.Add(this.outputFontCombo);
			this.Controls.Add(selectFileButton);
			this.Name = "ConverterTest";
//.........這裏部分代碼省略.........
開發者ID:sillsdev,項目名稱:FieldWorks,代碼行數:101,代碼來源:ConverterTest.cs

示例6: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Windows.Forms.ColumnHeader columnHeader1;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedEncProps));
			System.Windows.Forms.ColumnHeader columnHeader2;
			System.Windows.Forms.HelpProvider helpProvider1;
			this.lvConverterInfo = new System.Windows.Forms.ListView();
			columnHeader1 = new System.Windows.Forms.ColumnHeader();
			columnHeader2 = new System.Windows.Forms.ColumnHeader();
			helpProvider1 = new HelpProvider();
			this.SuspendLayout();
			//
			// lvConverterInfo
			//
			this.lvConverterInfo.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			columnHeader1,
			columnHeader2});
			resources.ApplyResources(this.lvConverterInfo, "lvConverterInfo");
			this.lvConverterInfo.FullRowSelect = true;
			helpProvider1.SetHelpString(this.lvConverterInfo, resources.GetString("lvConverterInfo.HelpString"));
			this.lvConverterInfo.MultiSelect = false;
			this.lvConverterInfo.Name = "lvConverterInfo";
			helpProvider1.SetShowHelp(this.lvConverterInfo, ((bool)(resources.GetObject("lvConverterInfo.ShowHelp"))));
			this.lvConverterInfo.UseCompatibleStateImageBehavior = false;
			this.lvConverterInfo.View = System.Windows.Forms.View.Details;
			//
			// columnHeader1
			//
			resources.ApplyResources(columnHeader1, "columnHeader1");
			//
			// columnHeader2
			//
			resources.ApplyResources(columnHeader2, "columnHeader2");
			//
			// AdvancedEncProps
			//
			this.Controls.Add(this.lvConverterInfo);
			this.Name = "AdvancedEncProps";
			helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
			resources.ApplyResources(this, "$this");
			this.ResumeLayout(false);

		}
開發者ID:bbriggs,項目名稱:FieldWorks,代碼行數:47,代碼來源:AdvancedEncProps.cs

示例7: InitializeComponent

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void InitializeComponent()
		{
			System.Windows.Forms.Button m_btnExit;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FwDeleteProjectDlg));
			System.Windows.Forms.Button m_btnHelp;
			System.Windows.Forms.Label label1;
			System.Windows.Forms.Label label2;
			System.Windows.Forms.HelpProvider m_helpProvider;
			this.m_lstProjects = new System.Windows.Forms.ListBox();
			this.m_btnDelete = new System.Windows.Forms.Button();
			this.m_lstProjectsInUse = new System.Windows.Forms.ListBox();
			m_btnExit = new System.Windows.Forms.Button();
			m_btnHelp = new System.Windows.Forms.Button();
			label1 = new System.Windows.Forms.Label();
			label2 = new System.Windows.Forms.Label();
			m_helpProvider = new System.Windows.Forms.HelpProvider();
			this.SuspendLayout();
			//
			// m_btnExit
			//
			m_btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			resources.ApplyResources(m_btnExit, "m_btnExit");
			m_btnExit.Name = "m_btnExit";
			m_helpProvider.SetShowHelp(m_btnExit, ((bool)(resources.GetObject("m_btnExit.ShowHelp"))));
			//
			// m_btnHelp
			//
			m_helpProvider.SetHelpString(m_btnHelp, resources.GetString("m_btnHelp.HelpString"));
			resources.ApplyResources(m_btnHelp, "m_btnHelp");
			m_btnHelp.Name = "m_btnHelp";
			m_helpProvider.SetShowHelp(m_btnHelp, ((bool)(resources.GetObject("m_btnHelp.ShowHelp"))));
			m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
			//
			// label1
			//
			resources.ApplyResources(label1, "label1");
			label1.Name = "label1";
			m_helpProvider.SetShowHelp(label1, ((bool)(resources.GetObject("label1.ShowHelp"))));
			//
			// label2
			//
			resources.ApplyResources(label2, "label2");
			label2.Name = "label2";
			m_helpProvider.SetShowHelp(label2, ((bool)(resources.GetObject("label2.ShowHelp"))));
			//
			// m_lstProjects
			//
			resources.ApplyResources(this.m_lstProjects, "m_lstProjects");
			this.m_lstProjects.Name = "m_lstProjects";
			this.m_lstProjects.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
			m_helpProvider.SetShowHelp(this.m_lstProjects, ((bool)(resources.GetObject("m_lstProjects.ShowHelp"))));
			this.m_lstProjects.Sorted = true;
			this.m_lstProjects.SelectedIndexChanged += new System.EventHandler(this.m_lstProjects_SelectedIndexChanged);
			//
			// m_btnDelete
			//
			resources.ApplyResources(this.m_btnDelete, "m_btnDelete");
			this.m_btnDelete.Name = "m_btnDelete";
			m_helpProvider.SetShowHelp(this.m_btnDelete, ((bool)(resources.GetObject("m_btnDelete.ShowHelp"))));
			this.m_btnDelete.Click += new System.EventHandler(this.m_btnDelete_Click);
			//
			// m_lstProjectsInUse
			//
			resources.ApplyResources(this.m_lstProjectsInUse, "m_lstProjectsInUse");
			this.m_lstProjectsInUse.Name = "m_lstProjectsInUse";
			this.m_lstProjectsInUse.SelectionMode = System.Windows.Forms.SelectionMode.None;
			m_helpProvider.SetShowHelp(this.m_lstProjectsInUse, ((bool)(resources.GetObject("m_lstProjectsInUse.ShowHelp"))));
			this.m_lstProjectsInUse.Sorted = true;
			//
			// FwDeleteProjectDlg
			//
			resources.ApplyResources(this, "$this");
			this.CancelButton = m_btnExit;
			this.Controls.Add(label2);
			this.Controls.Add(label1);
			this.Controls.Add(this.m_lstProjectsInUse);
			this.Controls.Add(m_btnHelp);
			this.Controls.Add(m_btnExit);
			this.Controls.Add(this.m_btnDelete);
			this.Controls.Add(this.m_lstProjects);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "FwDeleteProjectDlg";
			m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
			this.ShowInTaskbar = false;
			this.ResumeLayout(false);
			this.PerformLayout();

		}
開發者ID:sillsdev,項目名稱:WorldPad,代碼行數:96,代碼來源:FwDeleteProjectDlg.cs

示例8: fAltersvorsorgerechner_Load

 private void fAltersvorsorgerechner_Load(object sender, EventArgs e)
 {
     HelpProvider hp = new HelpProvider();
     hp.SetHelpString(nudGaInflation, "Geben Sie hier die durchschnittliche Inflation pro Jahr an.");
     hp.SetHelpString(tbGAName1Per, "Geben Sie hier den Namen der ersten Person an.");
     hp.SetHelpString(cbGaZweitePerson, "Aktivieren Sie dieses Kontrollfeld, um eine zweite Person zu aktivieren.");
     hp.SetHelpString(tbGAName2Per, "Geben Sie hier den Namen der optionalen zweiten Person an.");
     hp.SetHelpString(nudGAInRenteGehenImJahr, "Geben Sie hier das Jahr an, in dem Sie vorraussichtlich in Rente gehen werden.");
     hp.SetHelpString(nudGaRentnerjahre, "Geben Sie hier die vorraussichtliche Zeit als Rentner/in an.");
     hp.SetHelpString(nudGaJahreBisZurRente, "Geben Sie hier an, wie viele Jahre es wahrscheinlich noch bis zur Rente sind.");
     hp.SetHelpString(nudGAInRenteGehenImJahr, "Geben Sie hier das Jahr an, in dem die zweite Person vorraussichtlich in Rente gehen werden.");
     hp.SetHelpString(nudGaRentnerjahre, "Geben Sie hier die vorraussichtliche Zeit der zweiten Person als Rentner/in an.");
     hp.SetHelpString(nudGaJahreBisZurRente, "Geben Sie hier an, wie viele Jahre es für die zweite Person wahrscheinlich noch bis zur Rente sind.");
     hp.SetHelpString(nudFAMonatKosten, "Die jetztigen monatlichen, gesamten Kosten");
 }
開發者ID:GURKE,項目名稱:Altersvorsorgeplanung,代碼行數:15,代碼來源:fAltersvorsorgerechner.cs

示例9: InitializeComponent

		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		/// -----------------------------------------------------------------------------------
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Windows.Forms.Label lblLookup;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageSetup));
			System.Windows.Forms.Label lblFindPattern;
			System.Windows.Forms.ColumnHeader hdrLanguageName;
			System.Windows.Forms.ColumnHeader hdrCountry;
			System.Windows.Forms.ColumnHeader hdrEthnologueCode;
			System.Windows.Forms.GroupBox grpCurrentLang;
			System.Windows.Forms.Label lblCurrentEthCode;
			System.Windows.Forms.Label lblCurrentLangName;
			System.Windows.Forms.Label lblOtherNames;
			System.Windows.Forms.Label lblInstructions1;
			System.Windows.Forms.Label lblInstructions2;
			System.Windows.Forms.HelpProvider helpProvider1;
			this.txtFindPattern = new System.Windows.Forms.TextBox();
			this.btnFind = new System.Windows.Forms.Button();
			this.lvFindResult = new System.Windows.Forms.ListView();
			this.lblCurrentEthCodeValue = new System.Windows.Forms.Label();
			this.txtCurrentLangName = new System.Windows.Forms.TextBox();
			this.lblOtherNamesList = new System.Windows.Forms.Label();
			this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
			this.cboLookup = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			lblLookup = new System.Windows.Forms.Label();
			lblFindPattern = new System.Windows.Forms.Label();
			hdrLanguageName = new System.Windows.Forms.ColumnHeader();
			hdrCountry = new System.Windows.Forms.ColumnHeader();
			hdrEthnologueCode = new System.Windows.Forms.ColumnHeader();
			grpCurrentLang = new System.Windows.Forms.GroupBox();
			lblCurrentEthCode = new System.Windows.Forms.Label();
			lblCurrentLangName = new System.Windows.Forms.Label();
			lblOtherNames = new System.Windows.Forms.Label();
			lblInstructions1 = new System.Windows.Forms.Label();
			lblInstructions2 = new System.Windows.Forms.Label();
			helpProvider1 = new System.Windows.Forms.HelpProvider();
			grpCurrentLang.SuspendLayout();
			this.SuspendLayout();
			//
			// lblLookup
			//
			resources.ApplyResources(lblLookup, "lblLookup");
			lblLookup.Name = "lblLookup";
			helpProvider1.SetShowHelp(lblLookup, ((bool)(resources.GetObject("lblLookup.ShowHelp"))));
			//
			// txtFindPattern
			//
			this.txtFindPattern.AcceptsReturn = true;
			resources.ApplyResources(this.txtFindPattern, "txtFindPattern");
			helpProvider1.SetHelpString(this.txtFindPattern, resources.GetString("txtFindPattern.HelpString"));
			this.txtFindPattern.Name = "txtFindPattern";
			helpProvider1.SetShowHelp(this.txtFindPattern, ((bool)(resources.GetObject("txtFindPattern.ShowHelp"))));
			this.txtFindPattern.Enter += new System.EventHandler(this.txtFindPattern_Enter);
			this.txtFindPattern.Leave += new System.EventHandler(this.txtFindPattern_Leave);
			this.txtFindPattern.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtFindPattern_KeyPress);
			this.txtFindPattern.TextChanged += new System.EventHandler(this.txtFindPattern_TextChanged);
			//
			// btnFind
			//
			resources.ApplyResources(this.btnFind, "btnFind");
			helpProvider1.SetHelpString(this.btnFind, resources.GetString("btnFind.HelpString"));
			this.btnFind.Name = "btnFind";
			helpProvider1.SetShowHelp(this.btnFind, ((bool)(resources.GetObject("btnFind.ShowHelp"))));
			this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
			//
			// lblFindPattern
			//
			resources.ApplyResources(lblFindPattern, "lblFindPattern");
			lblFindPattern.Name = "lblFindPattern";
			helpProvider1.SetShowHelp(lblFindPattern, ((bool)(resources.GetObject("lblFindPattern.ShowHelp"))));
			//
			// lvFindResult
			//
			resources.ApplyResources(this.lvFindResult, "lvFindResult");
			this.lvFindResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			hdrLanguageName,
			hdrCountry,
			hdrEthnologueCode});
			this.lvFindResult.FullRowSelect = true;
			helpProvider1.SetHelpString(this.lvFindResult, resources.GetString("lvFindResult.HelpString"));
			this.lvFindResult.HideSelection = false;
			this.lvFindResult.MultiSelect = false;
			this.lvFindResult.Name = "lvFindResult";
			helpProvider1.SetShowHelp(this.lvFindResult, ((bool)(resources.GetObject("lvFindResult.ShowHelp"))));
			this.lvFindResult.UseCompatibleStateImageBehavior = false;
			this.lvFindResult.View = System.Windows.Forms.View.Details;
			this.lvFindResult.Enter += new System.EventHandler(this.lvFindResult_Enter);
			this.lvFindResult.SelectedIndexChanged += new System.EventHandler(this.lvFindResult_SelectedIndexChanged);
			this.lvFindResult.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvFindResult_ColumnClick);
			//
			// hdrLanguageName
			//
			resources.ApplyResources(hdrLanguageName, "hdrLanguageName");
			//
//.........這裏部分代碼省略.........
開發者ID:sillsdev,項目名稱:WorldPad,代碼行數:101,代碼來源:LanguageSetup.cs

示例10: InitializeComponents

        // This method is used in the forms designer.
        // Change this method on you own risk
        void InitializeComponents()
        {
            //
            //  Set up generated class MainForm
            //
            this.SuspendLayout();
            this.Name = "MainForm";
            this.Text = "This is my form";
            this.Size = new Size(600, 400);
            //implement a help provider for this form.
            hlp = new HelpProvider();

            list              = new ListBox();
            list.Size         = new Size(520,145);
            list.Location     = new Point(1,1);
            list.MultiColumn  = true;
            list.DrawMode     = DrawMode.OwnerDrawFixed;
            list.MouseDown   += new MouseEventHandler(this.OnMouseDown);
            list.DoubleClick += new EventHandler(this.OnDblClick);
            list.DrawItem    += new DrawItemEventHandler(this.OnDrawItem);
            //set the helpstring for the list and enable the dispalying of help when
            //the listbox has focus and user presses F1.
            hlp.SetHelpString(list,"Shows files and folders in the current folder");
            hlp.SetShowHelp(list,true);

            prev          = new Button();
            prev.Text     = "Back";
            prev.Size     = new Size(50,30);
            prev.Location = new Point(530,60);
            prev.Click   += new EventHandler(this.OnPrevClicked);
            //set the helpstring for the button and enable the dispalying of help when
            //the Back button has focus and user presses F1.
            hlp.SetHelpString(prev,"Click to go to parent folder");
            hlp.SetShowHelp(prev,true);

            fileLabel          = new Label();
            fileLabel.Size     = new Size(590,40);
            fileLabel.Location = new Point(1,147);

            rich            = new RichTextBox();
            rich.Size       = new Size(590,180);
            rich.Location   = new Point(1,190);
            rich.AllowDrop  = true;
            rich.DragEnter +=new DragEventHandler(this.OnDragEnter);
            rich.DragDrop  += new DragEventHandler(this.OnDragDrop);
            //set the helpstring for the text box and enable the dispalying of help when
            //the rich textbox has focus and user presses F1.
            hlp.SetHelpString(rich,"Shows contents of file dropped");
            hlp.SetShowHelp(rich,true);
            this.ResumeLayout(false);

            Controls.Add(list);
            Controls.Add(prev);
            Controls.Add(fileLabel);
            Controls.Add(rich);
        }
開發者ID:mzkabbani,項目名稱:XMLParser,代碼行數:58,代碼來源:Form1.cs

示例11: txtKullaniciAdi_MouseClick

        private void txtKullaniciAdi_MouseClick(object sender, MouseEventArgs e)
        {
            HelpProvider helper = new HelpProvider();

            helper.SetShowHelp(this.txtKullaniciAdi, true);

            helper.SetHelpString(this.txtKullaniciAdi, "Help text");
        }
開發者ID:recepbostanci,項目名稱:An-Automation-About-Sacrifaces-Commercial-Occupations,代碼行數:8,代碼來源:FrmLogin.cs

示例12: HelpSetup

        /// <summary>
        /// setup help messages
        /// </summary>
        void HelpSetup()
        {
            nshredHelp = new HelpProvider();
            nshredHelp.SetShowHelp(tbPath, true);
            nshredHelp.SetHelpString(tbPath, rm.GetString("enter_file_name"));

            nshredHelp.SetShowHelp(cmdSelect, true);
            nshredHelp.SetHelpString(cmdSelect, rm.GetString("open_file_select"));

            nshredHelp.SetShowHelp(optFile, true);
            nshredHelp.SetHelpString(optFile, rm.GetString("use_shred_file"));

            nshredHelp.SetShowHelp(optFolder, true);
            nshredHelp.SetHelpString(optFolder, rm.GetString("use_shred_files"));

            nshredHelp.SetShowHelp(chkCloseInstance, true);
            nshredHelp.SetHelpString(chkCloseInstance, rm.GetString("terminate_running"));

            nshredHelp.SetShowHelp(chkSubfolders, true);
            nshredHelp.SetHelpString(chkSubfolders, rm.GetString("delete_files_parent"));

            nshredHelp.SetShowHelp(cmdShred, true);
            nshredHelp.SetHelpString(cmdShred, rm.GetString("begin_shredding"));
        }
開發者ID:nullkuhl,項目名稱:fsu-dev,代碼行數:27,代碼來源:FormMain.cs

示例13: Form1_Load

 private void Form1_Load(object sender, EventArgs e)
 {
     System.Windows.Forms.HelpProvider hp = new HelpProvider();
     hp.SetHelpString(tbArGesamteAusgaben, "Hilfe1.0");
 }
開發者ID:GURKE,項目名稱:Altersvorsorgeplanung,代碼行數:5,代碼來源:Form1.cs


注:本文中的System.Windows.Forms.HelpProvider.SetHelpString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。