I have difficulties finding out if there is a way to create a link in a TextBox, that triggers another function in a program I made, basically what I have right now is this:
We have a database containing orders, and sometimes we need to search using wildcards, so we can search for ie orders from companies that contains foo. That part is OK, I have a function that then gives me the last 50 orders where CompanyName contains foo, output them in a TextBox including ordernumber, CompanyName and some other information.
So the output is 50 lines in my TextBox, each line with the information I need. Right now, we double click the ordernumber, and copy/paste that into another TextBox, and have a Button that calls the database with another call, that gives all information about the specific order.
Obviously, it would be much smarter if we could just click on the ordernumber, and get the same info without the hassle of copy/paste! I've searched deep and far, but all I can find is about links that opens a browser, but nothing that triggers an event / function.
Does anyone now of a method to acquire what I'm looking for?