Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Any .NET / WinForms gurus on here

Thread Tools
 
Search this Thread
 
Old 29 March 2007, 04:07 PM
  #1  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default 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
Old 30 March 2007, 11:33 AM
  #2  
pimmo2000
Scooby Regular
iTrader: (6)
 
pimmo2000's Avatar
 
Join Date: Sep 2004
Location: On a small Island near France
Posts: 14,660
Received 4 Likes on 4 Posts
Default

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
Old 30 March 2007, 12:28 PM
  #3  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Lust4Life
Computer & Technology Related
11
02 December 2003 08:20 PM
Doofus
Computer & Technology Related
2
11 November 2003 03:19 PM
starstruck
Computer & Technology Related
4
19 September 2003 05:57 PM
dsmith
Computer & Technology Related
4
13 September 2003 02:02 PM
Nick1
Computer & Technology Related
0
12 June 2003 11:14 AM



Quick Reply: Any .NET / WinForms gurus on here



All times are GMT +1. The time now is 02:47 AM.