Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a textbox in my winform application and textbox contain data like
(Companyid=<exp>)&&(userid=<exp>)
When user click <exp> of companyid it will show a dialog box and get the value and replace it.

What I have tried:

I have no idea how to open dialog box when user click <exp> text on textbox
Posted
Updated 5-May-17 21:58pm

1 solution

You just need to add an event handler for the Click event, and then get the details of where the click happened. See TextBox Class (System.Windows.Forms)[^].
 
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