ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Any .NET / WinForms gurus on here (https://www.scoobynet.com/computer-and-technology-related-34/594802-any-net-winforms-gurus-on-here.html)

Iain Young 29 March 2007 04:07 PM

Any .NET / WinForms gurus on here
 
Hi folks,

I know plenty of c# / cpp / mfc etc, but am just starting to look into the .net winform stuff and have hit a problem.

Basically I'm looking to create a control which I can populate with a document, then be able to highlight specific areas within that document programatically, (by scrolling the view to the approprate area and changing the background colour). Finally, I need to be able to create "hotspots" on words / phrases in that document so that I can right-click on the text and invoke new windows / forms based upon that selection.

Anyone got any ideas or links to example of this sort of thing? Google isn't turning up much...

Thanks,
Iain

pimmo2000 30 March 2007 11:33 AM

what you're asking is a pretty tall order.

You need some kind of powerful custom control. Maybe based on a rich edit control. Or maybe you could use an embedded HTML page. Or an embedded MS Word doc.

Check out the 'editor controls' section here:
CodeGuru: Controls

...or maybe here:
http://www.codeproject.com/cs/miscctrl/
GotDotNet: The Microsoft .NET Framework Community

Iain Young 30 March 2007 12:28 PM

Thanks, I think I've got found what I'm going to do now.

I'm extending a RichTextBox control, and adding my own syntax coloring etc to it. Seems quite straightforward so far. Just need to work out how to detect right mouse click positions (i.e. row/column) and I think I'll be sorted :)


All times are GMT +1. The time now is 06:08 AM.


© 2024 MH Sub I, LLC dba Internet Brands