Any .NET / WinForms gurus on here
#1
Scooby Regular
Thread Starter
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#2
Scooby Regular
iTrader: (6)
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
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
#3
Scooby Regular
Thread Starter
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
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
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
Thread
Thread Starter
Forum
Replies
Last Post
Doofus
Computer & Technology Related
2
11 November 2003 03:19 PM