c sharp labels c sharp link labels

labels are you used For naming other Control in C# windows form applications . For example if you have a text.box in your project and you named it user name now when ever user run the  your program he will never know  what you call user name and where to Enter user name .

labels can be added as normal control from tool box in Visual studio.

In above form Text box 1 is named  as student name which  guide the user to enter his student and  textbox2 is named password same case tell user to enter their Password.

Link label this will provide a hyperlink to a webpage may be for more information about the software he is using or  some time used for developer own web site or company to details about  his software.

Using Link Label : In order to use link label first  use a name space called.

using System.Diagnostics;

Now go to the link label's click on click event and do as follow,

   private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
              process.start(" here provide your website link") ;
        }


this will open your system Default browser with the link you provided in Parameters.

No comments:

Post a Comment

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...