473,396 Members | 1,865 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,396 software developers and data experts.

webbrowser document text not adding text

ok, this is driving me insane, plz someone help. im attempting to add text to
a webbrowser document text by doing as follows, IM is an Instant Message
object in the AIM SDK, the line

Dim str As String = IM.GetConvertedText(decode)

get the text in the im, which works perfectly fine, ive tested it. all my
variables have a value


Public Sub ImRec(ByVal IM As IAccIm, ByVal Sender As IAccUser)

Dim str As String = IM.GetConvertedText(decode)

If str.Contains("<body>") Then

str = str.Remove(str.IndexOf("<body>"), 6)
str = str.Remove(str.IndexOf("</body>"), 7)

End If

If timestamp Then

Dim temp As String = str
temp = temp.Insert(temp.IndexOf("<html>") + 1, "<br><Font Color
= Blue>" & Sender.Name & "(" & Now.ToLongTimeString & ")" & ": </font")

Me.webRecv.DocumentText = Me.webRecv.DocumentText & temp

Else

Dim temp As String = str
temp = temp.Insert(temp.IndexOf("<html>") + 1, "<br><Font Color
= Blue>" & Sender.Name & ": </font")

Me.webRecv.DocumentText = Me.webRecv.DocumentText & temp

End If

Call ChangeImageIndex(2)

If Me.ContainsFocus Then

ChangeImageIndex(0)

End If

End Sub

yet this wont add anything to the web document.....whats going on here?
theres no error or anything, it just wont show up!

--
-iwdu15
Jul 15 '06 #1
1 2999
Try to use .Document.All.<TagID>.OuterHtml instead of DocumentText

or .Document.Body.AppendChild

http://msdn2.microsoft.com/en-us/lib...ld(d=ide).aspx


"iwdu15" <jmmgoalsteratyahoodotcomwrote in message news:06**********************************@microsof t.com...
ok, this is driving me insane, plz someone help. im attempting to add text to
a webbrowser document text by doing as follows, IM is an Instant Message
object in the AIM SDK, the line

Dim str As String = IM.GetConvertedText(decode)

get the text in the im, which works perfectly fine, ive tested it. all my
variables have a value


Public Sub ImRec(ByVal IM As IAccIm, ByVal Sender As IAccUser)

Dim str As String = IM.GetConvertedText(decode)

If str.Contains("<body>") Then

str = str.Remove(str.IndexOf("<body>"), 6)
str = str.Remove(str.IndexOf("</body>"), 7)

End If

If timestamp Then

Dim temp As String = str
temp = temp.Insert(temp.IndexOf("<html>") + 1, "<br><Font Color
= Blue>" & Sender.Name & "(" & Now.ToLongTimeString & ")" & ": </font")

Me.webRecv.DocumentText = Me.webRecv.DocumentText & temp

Else

Dim temp As String = str
temp = temp.Insert(temp.IndexOf("<html>") + 1, "<br><Font Color
= Blue>" & Sender.Name & ": </font")

Me.webRecv.DocumentText = Me.webRecv.DocumentText & temp

End If

Call ChangeImageIndex(2)

If Me.ContainsFocus Then

ChangeImageIndex(0)

End If

End Sub

yet this wont add anything to the web document.....whats going on here?
theres no error or anything, it just wont show up!

--
-iwdu15

Jul 16 '06 #2

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

Similar topics

5
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.