473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Expanding Class Capabilities...

Is there a control, class, or technique that will allow me to add features
from another control to an existing control. For example is it possible to
take the carat position (in text) or SelStart & SelLength properties of the
Rich Text Box and add them to a control that doesn't offer these features
such as the WebBrowser Object or the DHTMLEdit Object?

Alternatively, can you take the property that contains and displays the
document HTML in the WebBrowser Object and add it to the Rich Text Object so
that the Rich Text box can display HTML without you having to recode to the
w3c specification yourself?

Alternatively, is there a straight HTML WYSIWYG edit box with all the
functionality of the Rich Text Edit Box available to VB2005Pro?

Thanks in Advance...

--
Timothy Casey GPEMC! >11950 is the nu****@fieldcraft.com.au 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover valid interoperable web menus, IE security, TSR Control,
& the most advanced speed reading application @ www.fieldcraft.biz
Jun 23 '07 #1
2 1236
"Number 11950 - GPEMC! Replace number with 11950" <nu****@fieldcraft.biz>
wrote in message
news:46***********************@lon-reader.news.telstra.net...
[SNIP]

Put another way; all I need to do is gain *complete* control of how user
input affects the HTML while displaying the text as formatted text. All I
need from VB2005Pro is an accurate display of the formatted text. Coding
markup, particularly valid markup is my specialty but I am unwilling to
rewrite an entire browser component just to include some basic text-handling
functions - it would probably prove easier to learn IL (Intermediate
Language), decompile both WebBrowser and Rich Text objects, and then mix and
match...

So, using the WebBrowser object with design mode on eg.

doc11 = DirectCast(WebBrowser1.Document.DomDocument, MSHTML.IHTMLDocument2)
doc11.DesignMode = "On"

And, after typing away, the user shifts the position of the carat by
clicking within WebBrowser1 with the mouse. How do I return either the plain
text position or the formatted text position of the carat? IE how do I get
the cursor position?

Likewise, a slection of text is highlighted. Let's say that the selection
highlighted or selected is repeated many times prior to and after the
selection in the text being edited. How do I retrieve the beginning and
length or end of the selection or highlight?

Or is learning to shuffle in IL the way to go...?

TIA
--
Timothy Casey GPEMC! >11950 is the nu****@fieldcraft.com.au 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover valid interoperable web menus, IE security, TSR Control,
& the most advanced speed reading application @ www.fieldcraft.biz
Jun 23 '07 #2

If you want a little more control over the web browser control from
..Net you might want to take a look at
http://www.netrixcomponent.net/
The author of that component has done a great deal of work to
make all sorts of features accessible to mere mortals. Far too much
work to do yourself if your end product is not a competing component.

The web browser and RichTextBox controls are not implemented
in .Net, so you would have a difficult time "decompiling" them to
learn what makes them tick (if that was what you meant).

Regards,

Joergen Bech

On Sat, 23 Jun 2007 22:22:33 +1000, "Number 11950 - GPEMC! Replace
number with 11950" <nu****@fieldcraft.bizwrote:
>"Number 11950 - GPEMC! Replace number with 11950" <nu****@fieldcraft.biz>
wrote in message
news:46***********************@lon-reader.news.telstra.net...
[SNIP]

Put another way; all I need to do is gain *complete* control of how user
input affects the HTML while displaying the text as formatted text. All I
need from VB2005Pro is an accurate display of the formatted text. Coding
markup, particularly valid markup is my specialty but I am unwilling to
rewrite an entire browser component just to include some basic text-handling
functions - it would probably prove easier to learn IL (Intermediate
Language), decompile both WebBrowser and Rich Text objects, and then mix and
match...

So, using the WebBrowser object with design mode on eg.

doc11 = DirectCast(WebBrowser1.Document.DomDocument, MSHTML.IHTMLDocument2)
doc11.DesignMode = "On"

And, after typing away, the user shifts the position of the carat by
clicking within WebBrowser1 with the mouse. How do I return either the plain
text position or the formatted text position of the carat? IE how do I get
the cursor position?

Likewise, a slection of text is highlighted. Let's say that the selection
highlighted or selected is repeated many times prior to and after the
selection in the text being edited. How do I retrieve the beginning and
length or end of the selection or highlight?

Or is learning to shuffle in IL the way to go...?

TIA
Jun 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ma740988 | last post by:
Faced with the need to instrument/log data I've decided to create an instrumentation/log class. My initial thoughts (baby steps) on this instrumentation/log class is as follows: 1. Time Stamping...
1
by: Bhiksha Raj | last post by:
Hi, I created an expanding menu on one of the frames in my webpage using code I got from http://www.dynamicdrive.com/dynamicindex1/navigate1.htm I have embedded the code (with minor...
18
by: qwweeeit | last post by:
Hi all, when I moved from Windows to Linux I choosed Python as my language of reference and as GUI, Qt (not much investigated up to now). Till now I didn't regret but one thing: Python can't act...
2
by: Greg | last post by:
Say I have a database with a table called "Customers" and I want to create a class that has the properties CustomerID and CustomerName, which I want to be able to read as well as update. So if I...
6
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. ...
28
by: braver | last post by:
I need a magical expanding hash with the following properties: * it creates all intermediate keys meh = 1 -- works even if meh didn't exist before * allows pushing new elements to leaves...
18
by: Peter Gummer | last post by:
This is a design question. I have a project containing a dozen or so classes with protected internal constructors. My reason for having protected internal constructors is to prevent classes...
26
by: JJ | last post by:
Is there any way you can expand a parent node on the treeview control _without a postback_ by clicking on the node text (NOT clicking the expand image URL) ? I want to format the treeview node...
1
by: Rahsaan Page | last post by:
Hello Everybody, I am trying to write a file Explorer program in Java, i go the Frame, Basic Menu and Tree going. But now i have the C: listed and i need some help expanding and collaping the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.