-
Windows form ( VB.NET ) with web Control
Hi
I like to have some help with how to display HTML data page inside a vb.net windows application . I am trying to generate a report and show that in the web control on my vb.net windows form . I have added a COM web control to the form . I like to to use a SQL Server stored procedure to get the data and use HTML control to create the format for the report which will be displayed into the web control . When user click a button on the form the report will display in the Web control . How to do that .
Thanks
-
I don't know if you've already tried this but here goes: You can add a webpage browser by right clicking on the Windows form on the toolbox and selecting "add/remove items". A dialog box will appear and you'll want to locate the COM Components tab. Click that tab and find the Microsoft Web Browser and then select it. You'll then be able to add this to your form. Add the web browser to your form and then manipulate it in a button click event.
Here's some example code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser.Navigate("insert a url or text with location here for the webbrowser to naviagate to")
End Sub
Similar Threads
-
By Stephen Russell in forum .NET
Replies: 1
Last Post: 04-24-2003, 05:46 AM
-
By John A Grandy in forum .NET
Replies: 3
Last Post: 07-06-2002, 11:45 PM
-
By David Campbell in forum dotnet.announcements
Replies: 0
Last Post: 05-09-2002, 07:06 AM
-
By Scott Sampson in forum ASP.NET
Replies: 0
Last Post: 05-25-2001, 12:10 AM
-
By Floyd McDonald in forum VB Classic
Replies: 1
Last Post: 03-30-2001, 02:17 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks