SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

C++ LinkLabel Control.

The C++ LinkLabel control is similiar to the label control, with the exception of hyperlinks. The LinkLabel control can display single or multiple hyperlinks. When the user clicks a hyperlink, the process can be started in th event.

Namespace: System::Windows::Forms
System.Windows.Forms (in system.windows.forms.dll)

Creating an new C++ Windows forms LinkLabel.
LinkLabel^ linklabel = gcnew LinkLabel;

Assigning a AutoSize Value to the LinkLabel Control.
linklabel->AutoSize = false;

Docking the C++ LinkLabel Control.
linklabel->Dock = System::Windows::Forms::DockStyle::Top;

Assigning a text value to the C++ LinkLabel control.
linklabel->Text = "Link to Web Site";

Adding a C++ LinkLabel control to the form.
Controls->Add(linklabel);

Creating a LinkClicked Event for the C++ LinkLabel control.
this->linklabel->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &Form1::linklabel_LinkClicked);

Responding to the C++ LinkLabel LinkClicked event.
private: System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e)
{
MessageBox::Show("Link Clicked");
}


C++ LinkLabel control Tutorial.
Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces