I have a Textbox in my program.I wanna When a person clicks on the help button and then clicks on the textbox sees something like "connect Dial-up Connection" window. What should I do
I have a Textbox in my program.I wanna When a person clicks on the help button and then clicks on the textbox sees something like "connect Dial-up Connection" window. What should I do
Why dont you use a tooTip control from your toolbox property, so that when the user hover/clicks on the control (e.g Button, textBox, whatever) it displays a message which you can set in the control tooTip in Tooltip properties.
Hope this Helps
I wanna when a person clicks on the help button sees a message box and if he/she closed that messagebox then when he/she clicks on my textbox see sometig. else if he/she doesn't click on the help button at first and clicks on the textbox doesn't see anyting.what should I do
Im scratching my head here, What are you trying to do
A sample code or a detailed description please.
for example when you wanna connect to internet via dial-up you see http://img.majidonline.com/pic/39011/Untitled-5.gif I wanna have a button like that . but when a person click on that buton see a messagebox that have something about my program .
Why dont you use a tooTip control from your toolbox property, so that when the user hover/clicks on the control (e.g Button, textBox, whatever) it displays a message which you can set in the control tooTip in Tooltip properties.
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
Add "Help" button
Whitney Weaver
Hi
Thank for replying here is the Solution.
Step 1
Step 2
Add a new event Handler to FormName.Designer.cs for the HelpButton like :-
Ron Shepherd
Hi
Im scratching my head here, What are you trying to do
A sample code or a detailed description please.
nicola.giannetti
sorry . I added it a minute ago.
Todd Landstad MSFT
I need more help,please.
n-k
umer riaz
Tank you . But where should I add
------------------Form1.cs------------------
using
System;using
System.Collections.Generic;using
System.ComponentModel;using
System.Data;using
System.Drawing;using
System.Text;using
System.Windows.Forms;namespace
WindowsApplication1{
public partial class Form1 : Form{
public Form1(){
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e){
}
}
}
-------------------------------------------------
rjaeger
Marked with Red Hope this does the trick
Lorin
I wanna when a person clicks on the help button sees a message box and if he/she closed that messagebox then when he/she clicks on my textbox see sometig. else if he/she doesn't click on the help button at first and clicks on the textbox doesn't see anyting.what should I do
SLeGendre
for example when you wanna connect to internet via dial-up you see
http://img.majidonline.com/pic/39011/Untitled-5.gif
I wanna have a button like that . but when a person click on that buton see a messagebox that have something about my program .
DishanF
Where is the picture
Where and how you want to have Help implemented
cprufo
Hi
Why dont you use a tooTip control from your toolbox property, so that when the user hover/clicks on the control (e.g Button, textBox, whatever) it displays a message which you can set in the control tooTip in Tooltip properties.
Hope this Helps
Brock Andrew
and Embed this code to your Form1.cs
private void Form1_HelpButtonClicked(Object sender, CancelEventArgs e)
{
MessageBox.Show("My Program Details", "Version 1", MessageBoxButtons.OK ,MessageBoxIcon.Information);
}
Rudemusik
Hi,
You should set MaximizeBox and MinimizeBox properties of your form to False, and then set HelpButton property True.
Max
lperrin
And where should I add
--------------------------------Form1.Designer.cs-----------------------------
namespace WindowsApplication1
{
partial class Form1
{
/// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing){
if (disposing && (components != null)){
components.Dispose();
}
base.Dispose(disposing);}
#region
Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent(){
this.SuspendLayout(); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 266); this.HelpButton = true; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false);}
#endregion
}
}
------------------------------------------------------------------------------