i have a program and i want it to visit a pre-set list of websites which will be in a richtextbox and i want it to visit all the sites in order BUT heres my problem that idk how to fix it will only load the last page of the list it will not load any other ones. Heres my code for it to visit the websites
For i = 0 To RichTextBox1.Lines.Count - 1
WebBrowser1.Navigate(RichTextBox1.Lines(i))
1. I want to load pages in web browser without loading scripts and Pictures(Jpeg,gif,png).
2. When Web Page Loads my Application Stops Responding. After that it responds. In one place of my Code i have added thread.sleep(10000). is it reason for that?
My boss has given me an asp.net web application that was done by his former employee. Now my boss has no contact with that employee. He wants me to make some changes in that web application. I went through the application. There is no documentation present for that application . Its a huge application. It contains many directories. I think it was a team work. It has many asp pages, aspx pages, jsp pages, xml pages, css pages, etc... How to understand other person or team's website or web application that was written in asp or asp.net and vb or vb.net?
making a general functions class library that will be used in several applications and asp pages, sometimes running at the same time.I've looked at a lot of samples on the web and they all show you to create an instance of the classlibrary namespace or the classlibrary class.
IE. dim obj2 as new mycompany.mynamespace.myclass dim n2 as integer n2 = obj2.somefunction(...)
What I did was create my class library and put a class in it and declared a function as sharred, then created my dll.I don't have to create an instance of it and I can use it like the net framework by just coding
The net framework does this, I mean once I imports it I don't have to make an instance of it in every function.All the samples I've seen about class libraries do not use the shared keyword.
I'm making a program to open specific web pages with button clicks. I have a form with the buttons and 'WebBrowser1'. Everything works ok, except that when clicking on certain links within a website, it opens a full-screen window of Internet Explorer.How can I prevent it from opening a new window. It should just navigate to the link within the WebBrowser1 window.
I'm trying to print 2 pages of business cards with different images on each card. When I use the code below it overprints both pages on top of each other.
Private Sub PrintDocument1_BeginPrint(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles PrintDocument1.BeginPrint mPage = 0 End Sub
Is there a way to work the web browser control for viewing off-line (Cached web pages) only? Is it possible to view cached web pages from IE9 on a web browser control off-line? The reason i am asking this question is because IE9 automatically switches from off-line mode to on-line mode when it cannot find something in the cache by default. For forensic purposes this is not acceptable for these reasons: Active content (Viruses, java script, activex cookies etc)
I have a list of web pages that load into a CheckedListBox at run time.These pages are user selectable.
Scenario One: Single Selection.The application loads the selected web pages and parse's the content, this could take a short time, or it can take a few minutes.No problem here. I am using a BackgroundWorker to perform the parse.
Scenario Two: Multiple Selection My query relates to a method that I can employ to deal with iteration of the CheckedListBox to process the next selected web page back on the UI.
I need to wait till the BW has finished before we can move on to the next page.I'm sure the above example is not best practice to hold up the UI's iteration of the CheckedListBox, until the current web page is processed.
I am making an application that uses multiple WebBrowser controls, and multiple proxies.The code for changing the proxy settings are as such:
#Region "Proxy" Public Structure Struct_INTERNET_PROXY_INFO Public dwAccessType As Integer Public proxy As IntPtr
[code]....
Note: getRandomProxy gets a random proxy from a list.Problem is that whenever RefreshIESettings(getRandomProxy()) is applied, the proxy will be applied to all of the WebBrowsers, while i would need to have a unique proxy for each WebBrowser. Not having this would just error out the page in the other browsers and so on.
I've inherited some VB.Net code that I think needs some restructuring. The project has three forms, each of which is its own Windows Form file that inherits from System.Windows.Forms.Form.The problem is that all these forms share a common navigation menu bar that does not change as the user switches between forms, and so the original programmer has duplicated the menu code in each of the three files to generate the menu on each one! I figure this can't be right.
To restructure it, I thought I would create a base form that implemented the menu, and then let the other forms inherit from that, but I ran into the problem that Windows forms already inherit from the class mentioned above, and can't inherit from another class.I noticed I can add an item called "inherited form", but is that the way to go here? The problem of creating multiple screens with a common menu bar has to be incredibly common. Is there one true way to do this? Should I use inherited forms, or should I by have just one base form and make the other screens just plain classes and not forms at all? Or something else I'm not thinking of?
I want to print multiple pages with vb.net So I have al my data in 2 lists, containing objects ( let's call them list1 and list2). e.g I have in list1 all the kind of cars and in list2 all the available types of those cars. So he first loops through list1 and then looks in list2 which types are linked to the kind. The amount of types per kind of car is unknown. Now I want to print the whole list. He first puts the kind of car. Then I have to write every type of car vertically under each other... So I need to construct a function that checks whether I'm at the end of my page to hit a hasMorePages = true .
I was already wondering if I can print it first all on a image and then I take blocks of that image and put them on different pages.
to printpreview multiple pages,we can use hasmorepages.. but how to printout multiple pages?y program can printpreview multiple pages,then when i try to printout them, my printer only roll a
I want to create a UI that uses a tab control to display multiple listview controls, one on each tab page. The number of tab pages/listviews is dynamic and could reach around 20. The listviews are in virtual mode and are populated from an object (custom class) in memory.It seems very wasteful to create 20 listviews. I seem to remember that back in VB4 days the tab control had only one page, and you changed the display yourself in code. Is there a way to do something similar with VB.net (VS2008/Framework 2.0) i.e. just show one listview and repopulate it according to which tab was clicked by the user? Something like this:
Private Sub Tab_Click listview.load(MyObject(TabClickedIndex)) End Sub
My application has a TabControl which has 5 tab pages. Each page represents a "department" and each department has to run this software. So when the user opens the application, they navigate to their department's page.
The software runs a serious of automated and manual tests. The tests are customized for each department. But I need to update the UI during each section of the test.
On the main tab, there is one panel that has 17 PictureBoxes. Each PictureBox represents one test. The PictureBox can either represent a test in progress, a test passed, or a test failed.
All of the tests are in their own code files, for the most part. And in the main form is when I call the tests and update the UI from a single method.
The issue I'm having is how to update the PictureBoxes without creating a bunch of redundant code.
When the test runs, I update the first PictureBox with "in progress", then when it completes, it's update again with pass or fail. So for a single test, I could need to place the UI update in several places, within the same code block, for planning out all the possible conditions.[code]...
I am writing an application, and i have a user form, which will be the same for the users and the administrators. on different pages.
i want to only create the form once, and then be able to put it on two different aspx files.
i tried it with the "control" , but it then gets really complicated trying to access fields on the control from the aspx page to do the calculation, etc.
I have like 10 aspx pages (junior_class_students1.aspx-...10.aspx). They all have the same master page in the back (class_students.master). Everytime i load a page i want the master page background-color to change, to the one that i can specify per page. so
I'm trying to screenscrape a website that requires a POST login authentication. I can authenticate fine on my first request, but when I attempt to turn back around and hit the next page, I get a redirect back to the login page (basically it's saying I'm not logged in).
[Code]...
I notice two things... first, the ORA_WX_SESSION has its quotes stripped from it (even if I attempt to force them back in between response and request). Also the XYZCustomerServiceUserName and XYZ values are stripped. Other than that, the session information is identical between the two connection attempts.
I am trying to get things to print on multiple pages. I am just printing the same thing over and over with slightly different values. At the moment the print out is only one page and it overwrites it's self. How do I make a page break?
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage ' Set up earnings statement information and send to graphics page object.
I want to create a document with several pages and with one wpf window depicted on each page. I managed to print one window using PrintDialog and PrintVisual. However this seem to only work with one single page? How I can build a document with several pages and print the complete set. Can I insert that visual (referred in code) and insert it as a page in a document and print it after that?
Sub Print (Dim ele As FrameWorkElement) Dim margin As Double = 30 Dim titlePadding As Double = 10 Dim printDlg As PrintDialog = New PrintDialog() [Code] .....
Private Sub GetPrintFunction(ByVal printopt As Array) Dim Print_Document As New System.Drawing.Printing.PrintDocument AddHandler Print_Document.PrintPage, AddressOf PrintPage
[code]....
The web service returns 6 items per array. If the array return 2 sets of array (12 items), then i have to split it into 2 pages. how can i do it?
Example scenario:The web service should return at least 6 items(1 array)
example data *redemption date *reference number
[code]....
if i have two sets of these, then it should be printed on different pages.
I have a drop down list that populates a set of data from a calculation. There are multiple pages in my asp.net site that I want to show a label with the current data from the dropdownlist on my main page.[code]...
I am new to programming and I need some help. How do I print multiple pages? What am I doing wrong?
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
What the problem is that when there are a lot of lines they just continue on the first page, but what i want is to get a second page. I have google't for it and find e.HasMorePages = True and e.HasMorePages = false.. but i did not get this to work properly. can somebody take a look at the code pleas?
I have been trying to print multiple pages from a listbox. This is the code I have been trying to get to work. It prints the entire contents of listbox6, which is good but it only prints on one page and the text overlaps once it starts to print from the top of the page again.
Code: Private Sub PrintDocument3_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument3.PrintPage Dim lpp As Integer Dim lno As Integer
[code]....
All I need to do is print the entire contents of listbox6 whether it has 1 page of data or 19 pages of data.