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 |
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 |
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