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.GetConverted Text(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.GetConverted Text(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(tem p.IndexOf("<htm l>") + 1, "<br><Font Color
= Blue>" & Sender.Name & "(" & Now.ToLongTimeS tring & ")" & ": </font")
Me.webRecv.Docu mentText = Me.webRecv.Docu mentText & temp
Else
Dim temp As String = str
temp = temp.Insert(tem p.IndexOf("<htm l>") + 1, "<br><Font Color
= Blue>" & Sender.Name & ": </font")
Me.webRecv.Docu mentText = Me.webRecv.Docu mentText & temp
End If
Call ChangeImageInde x(2)
If Me.ContainsFocu s Then
ChangeImageInde x(0)
End If
End Sub
yet this wont add anything to the web document.....wh ats going on here?
theres no error or anything, it just wont show up!
--
-iwdu15 1 3014
Try to use .Document.All.< TagID>.OuterHtm l instead of DocumentText
or .Document.Body. AppendChild http://msdn2.microsoft.com/en-us/lib...ld(d=ide).aspx
"iwdu15" <jmmgoalsteraty ahoodotcomwrote in message news:06******** *************** ***********@mic rosoft.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.GetConverted Text(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.GetConverted Text(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(tem p.IndexOf("<htm l>") + 1, "<br><Font Color
= Blue>" & Sender.Name & "(" & Now.ToLongTimeS tring & ")" & ": </font")
Me.webRecv.Docu mentText = Me.webRecv.Docu mentText & temp
Else
Dim temp As String = str
temp = temp.Insert(tem p.IndexOf("<htm l>") + 1, "<br><Font Color
= Blue>" & Sender.Name & ": </font")
Me.webRecv.Docu mentText = Me.webRecv.Docu mentText & temp
End If
Call ChangeImageInde x(2)
If Me.ContainsFocu s Then
ChangeImageInde x(0)
End If
End Sub
yet this wont add anything to the web document.....wh ats going on here?
theres no error or anything, it just wont show up!
--
-iwdu15
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 with little success.
- When a new window is trying to pop up, how do I determine the target URL?
How can I get the page to open in the current browser control?
- When printing from the webbrowser control is there a way to ensure it
prints...
|
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
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
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:
////////////////////////////////////////////////
Public Sub DisplayHyperlinks(ByVal sender As Object, ByVal e As
System.Windows.Forms.HtmlElementEventArgs)
|
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 with a list of values as suggestions to the user. This feature is called auto completion. In case of Eclipse editor, you must have
seen while writing java code, if the developers presses "Ctrl+Space" a dynamic list box come up with multiple...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |