Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Yo.

Im working in Visual Studio C# 2010 and i want to make a clickable link - like when you press it - a new form should pop up. I know the code to make a new form pop up when you press a button, so i guess it's the same code. But how do i make a action like when you douple-tap a button, then the whole code pops up. There's the action - e.g "button_1 Click".

How do i do the same thing, but with text? Thank you. And please explain it to me noob friendly, because im new to programming.
Posted

If there's no Click event for a control, just handle the LeftMouseButtonUp event.
 
Share this answer
 
take linkbutton and its clientclick write "javascript:pagename"
 
Share this answer
 
Assuming that when you say "link" you do not mean opening a web page, or refer to a URI/URL:

If you want to do something when "plain not-editable" text on your Form is Clicked, use a Label, and define a 'Click event handler for it, and in that Click event handler do what you need to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900