|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
webbrowser document text not adding texta 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 Try to use .Document.All.<TagID>.OuterHtml instead of DocumentText
or .Document.Body.AppendChild http://msdn2.microsoft.com/en-us/library/system.windows.forms.htmlelement.appendchild(d=ide).aspx Show quoteHide quote "iwdu15" <jmmgoalsteratyahoodotcom> wrote in message news:0637B27B-6931-4007-8BF8-52822254B3D4@microsoft.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
Resume next in VB.NET ?
C.NET VS VB6 Using A Bound Dataset to insert new Database Connection Problem. Please Help Seeking Design Advice ddl selectedindexchanged not firing on first item - I'm using a dataset to populate the ddl object reference not set to an instance of an object error What's wrong with the combobox in grid Why won't DateTimePicker work? Format(Date, "mmddyy") in VB.NET |
|||||||||||||||||||||||