|
-
Oct 26th, 2005, 10:05 AM
#1
Thread Starter
PowerPoster
Putting text into a WebBrowser
I'm working on an app that uses a database. I've been using a RichTextBox to show the data from a ListView_Click and when you click on the url it shows the page in the WebBrowser, that works perfectly. What I need is to display all this data in a WebBrowser. The format is HTML I would think. Would it be possible to click on the url and goto that site?
e.g.
<b>Name:</b>John Davis<br>
<b>URL:</b>www.hisurl.com
etc
The only suitable property in the WebBrowser is Navigate. I've tried posting the text into a temp.url and loading it from there but that doesn't work. I've tried WebBrowser.Print Text1.Text but that doesn't work either. As normal with additional controls there's no help.
Do anyone have any idea how you show text on a WebBrowser?
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 26th, 2005, 11:19 AM
#2
Re: Putting text into a WebBrowser
Heres a link to some of my code examples on automating and parsing data from a web page.
http://www.vbforums.com/showthread.php?t=330341
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2005, 11:31 AM
#3
Thread Starter
PowerPoster
Re: Putting text into a WebBrowser
Thanks RobDog. I did a search before posting and nothing came up that was relavant. There are plenty of topics how to receive data from a WebBrowser, link your link but none I could find about putting text into a WebBrowser.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 26th, 2005, 11:32 AM
#4
Re: Putting text into a WebBrowser
Is this webbrowser the webbrowser control or just the regular IE or FF?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2005, 11:41 AM
#5
Thread Starter
PowerPoster
Re: Putting text into a WebBrowser
Sorry its Microsoft Internet Control, Shdocvw.dll.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 26th, 2005, 11:46 AM
#6
Re: Putting text into a WebBrowser
So it is a web browser on your form. The link I posted is exactly what you need then. You can enter, submit, read webpages with it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2005, 01:45 PM
#7
Thread Starter
PowerPoster
Re: Putting text into a WebBrowser
Sorry RobDog there's nothing on that link that will suggest adding text to a WebBrowser. It only shows you how to link a url to a WebBrowser, which I already know.
All I want to do is show this in a WebBrowser, but how.
<b>Name:</b>John Davis<br>
<b>URL:</b>www.hisurl.com
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 26th, 2005, 02:54 PM
#8
Re: Putting text into a WebBrowser
So its not going to be from the web but just text you want to display?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2005, 03:13 PM
#9
Re: Putting text into a WebBrowser
IE.Navigate "about:blank"
in the doc complete event...
IE.Document.Write "<b>Name:</b>John Davis<br><b>URL:</b>www.hisurl.com"
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 26th, 2005, 06:32 PM
#10
Thread Starter
PowerPoster
Re: Putting text into a WebBrowser
 Originally Posted by Keithuk
What I need is to display all this data in a WebBrowser. The format is HTML I would think.
e.g.
<b>Name:</b>John Davis<br>
<b>URL:</b> www.hisurl.com
 Originally Posted by RobDog888
So its not going to be from the web but just text you want to display?
Correct.
 Originally Posted by [A51g]Static
IE.Navigate "about:blank"
in the doc complete event...
IE.Document.Write "<b>Name:</b>John Davis<br><b>URL:</b>www.hisurl.com"
So I will need a Reference to Internet Explorer with this code '[A51g]Static'
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|