Forms :: Visit List Of URLs While Moving Progress Bar
Jun 2, 2010I'm looking to be able to open a .txt file (with sites 1 per line) and visit all of those sites silently while moving a progress bar.
View 4 RepliesI'm looking to be able to open a .txt file (with sites 1 per line) and visit all of those sites silently while moving a progress bar.
View 4 RepliesI have a list of 100,000 urls in list(Of string) which can contain urls in the form. [URL] i have tried using a combination of regex and the Uri class, but that didn't help, so i dumped the code. How do i filter these duplicates and keep just one of these url
View 8 RepliesI'm currently building a program where there are two list box's and a button to copy the selected array item in listBox1 to listBox2 in a separate array.[code]
View 2 RepliesWill the elements in myList always be visited in the same order with a For Each loop (assuming I don't alter the list)?
Dim myList As New List(Of MyElement)
....
For Each myElem As MyElement In myList
' yadda yadda yadda
Next
2008 Is there a way to keep a progress bar moving in a VB .Net windows application during long database calls (SQL Server - 10 seconds or so)? I tried a status strip progress bar running in matrix mode and a System.ComponentModel.BackgroundWorker running a progress bar but when the SQL call to a stored procedure is made they both freeze.
View 4 RepliesHere is the thing at the moment I have a list box and i have a text field I also have a drop down box so u can select which search angine to use
My problem is this when I type in the search Box it opens up my internet explorer and shows me in search there what I typed in my program
Instead I want my program to display list of urls in my list box.. this is what my cod looks like at the moment
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
[Code]....
when I hit Go it will display list of urls in my list box no info just web url in list format
I have a list of 100,000 urls in list(Of string) which can contain urls in the form.[URL]..i have tried using a combination of regex and the Uri class, but that didn't help, so i dumped the code. i also tried using this code, but it will only remove duplicatse of exact form, since its not domain specific.
list = new ArrayList<T>(new HashSet<T>(list))
How filter these duplicates and keep just one of these url if it contains the same name e.g yahoo.
all URL are of different domains, but can usually have duplicates like the example i gave above
also, am using .net 2.0, so i can't use linq
Im planing to make a little radio application for my own use,I want a Combobox with list of items and a URLs binded to them.for example i got 3 items in the combobox:
Radio1
Radio2
Radio3
I want it to be like when im choosing the "Radio1" and press my Play button ( AxWindowsMediaPlayer2.Ctlcontrols.play() ), the 1.1.1.1/Radio1.asx will open.
OK, so the code in this link: [URL]
allowed me to get a progress bar. It sums up the size of all the files in the folder and then moves them and as it writes them, it determines how much has been written of the total, and sends that to a progress bar.
Now, what I'm wanting to determine is the best way to do subfolders (an subfolders of subfolders, etc).
Would it be stupid/smart to get a list of the folder structure in a particular folder, then recreate that structure, then get a list of all the files and then use the code in the above thread to recreate those files in their respective folders?
I am making a rather simple backup utility that takes one folder and moves it to another and I'm just trying to figure out the most logical or "accepted" way of handling folders when at the same time, you need to have a total of all the size of all the files being moved so you can display an accurate progress bar.
I'm pretty new to visual basic .net (have been a hobby VB6 developer for a few years) but now i have moved on to vb.net and i must just say it, what a difference in the language!So im trying to make a program that connects to several websites and parses some information out and then add the information to a listview list. The listview have 2 columns: Site and Nuts. So i load a bunch with urls in the site columns (that isnt a problem) but the problem is to take 5 websites at the same time and connect to them and then write "OK" in the Nuts columns.
View 1 RepliesI have the following multithreading function to implement threads fetching from a list of urls to parse content. The code was suggested by a user and I just want to know if this is an efficient way of implementing what I need to do. I am running the code now and getting errors on all functions that worked fine doing single thread.for example now for the list that I use to check visited urls; I am getting the 'argumentoutofrangeexception - capacity was less than the current size'/Does everything now need to be synchronized?
Dim startwatch As New Stopwatch
Dim elapsedTime As Long = 0
Dim urlCompleteList As String = String.Empty
[code]...
I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.
View 4 RepliesI have my random alpha-numeric generator giving me a list of 500 items. I need to be able to search the "random Plate listbox" by entering into a textbox. Partial matches will be displayed in listbox1. My code for searching the "random plate listbox" is not returning results.
Public Class PlateForm
Const numEntries As Integer = 500
Dim lb As New List(Of String)
[Code].....
I need to move items between two list boxes, I've never used list boxes before so this is totally new to me and I don't know where to begin, all I know is they work kinda like arrays.
So what I need is to move one or more items, from ListBox1, and move them to ListBox2 and vice versa
p.s. sorry to the mods just realised I havent been selecting a category to make my posts in, won't happen again.
2 questions:
1. How, programmatically, can you tell if a progress bar is at its max?
2. If it's at it's max, how can you reset it to zero?
I have setup some base forms with some bottons on it The buttons are situated in a panel.Both the panel and the buttons modifer properties have been set up as "Friend".The problem I have is when I inherit these base forms, the buttons seem to jump around by themselves allot
View 6 RepliesI've created a batch file on our domain controller to export users based on the OU they are in.
@ECHO OFF
ECHO This tool will export all users in the chosen Active Directory OU.
ECHO.
[Code]....
The form design is only a text box (txtClientID) and a Go button.
I have a lot of forms set up, probably about 10-15 so far (more to come). Some forms 'lay' on top of other forms, and each form contains multiple controls. I am discovering that my approach is not very likely to succeed in what I am thinking of doing.
Here is one example: LeftControlPanel form contains 5 controls, but 5 other forms 'lay' on top of it and use transparencies to load up bitmaps. Since I cannot parent the forms that 'lay' on top of the form, I cannot figure out a good way to move them.Is it logical that when I move LeftControlPanel to a different x location, I would just move all the forms that 'lay' on top of them as well?Seems like a clunky approach of moving one form since parenting the transparency forms will remove all the transparencies that are set up...
Is there a bit better logic I might be missing, or bite the bullet and start moving multiple forms at once?
if i have 2 forms amd one module the module contains a public var user1 = string my first form has text box and button 2nd form a label and button now i enter text into text box press button form 1 closes form2 opens and label displays var contents i press button on form 2 form closes form 1 opens enter new text repeat the procudure and the label on form 2 still contains the information from the first time i ran the prog and wont change , its as if the var is locked?
stephen
form1 code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]......
I have an MDI running as the parent. How can you stop the forms moving to the back when they are open if you click in the any part of the MDI area. Also I notice if I have more than one form open it creates form instances on my windows task bar?
View 1 RepliesHow can i move a form to a different project.
View 2 Repliescurrently i am using a threadpool that contain a number of thread. This number of thread can be different everytime, sometimes 5, sometimes 10, sometimes 15 and so on (multiple of 5). So now i have it working good by using for loop to queue the thread into threadpool. Now the problems is i do not know how to make the progress bar depending on my threadpool. I want my progress bar to complete only when all the thread are done. After searching google, i found that maybe it can be solve by using AutoResetEvent(false), but after i apply to my program, it still did not work, my program hang at xEvent.WaitOne() method and didnt proceed further, anyone can explain to me how to solve the problem? Or got any other ways? For your information, only 5 threads can be running at the same time as the requirement state so (so i set the setmaxthread to 5 already).
View 1 Repliesi have a form that takes a long time to open (because of the volume of data and the devexpress scheduler controls on it). I would like to pop up a progress bar (embedded in a form) to show until the form loads and is finished loading.i added two public methods in the My.MyApplication class...the form with the progress bar shows, but is stuck and doesn't animate.i figure that i need to open this form in a separate thread, but have done no work with multithreading.[code]is there an easy way to make this form always open in a different thread so that it will animate and show my "loading.."
View 3 RepliesI have 1 form with the progress bar and 4 buttons with the following code.I would like to create another form that shows the same progress bar with the same progress.Here's my code for progress bar....form load code is:[code]....
how do i get that progress bar to be show in another form?
If form2.ProgressBar1.Value < 100 Then
ProgressBar1.Value += 20
End If
how do I impliment progress bar with my load url basicly I have a list bix that loads url and I want progress bar to work with that, I allready made progress bar at the bottom of my project just dont know how to impliment it
I tried code bank on this site also tried search but every thing I come across is nto what I want :s I just want my progress bar to load as my list is been generated in my list view, I tried adding timer to load progress but its not working as its making a progress bar load after my list is loaded in my list box
Im having some trouble with my progress bars in VB.Net. I am currently making a 2d game for a college assignment. The problem is i have one for health and one for reloading the reload bar works fine but when i try to code the health bar i think it conflicts with the other Progress bar [Code]
View 3 RepliesI want to make a progress bar for the loading of a webpage? Anyone know the code for that? I know now...
View 1 RepliesI am wondering how do I update a Progress Bar that resides in Form1 (for example) from a newly created class called from the Button in Form1. I have read several tutorial about backgroundworker. Most of the googled tutorials have their "long process code" in the do_work event. I have tried them and got it working from within the form itself.
However, there are 2 parts (long process) in which I wish to incorporate the updating of the progress bar; First one being a long sub routine that is in the main form (Form1). The second one is another long processing function that resides in a class. It is the second one that is giving the problem as I have no idea how to call the backgroundworker.reportProgress() to update the UI.
Here is the sample flowchart that I have created for the second long processing function:
I wish to insert a new instruction that says "Update the Progress bar that is in Form1" after the current instruction "Store the member into a collection".
I want to make an app that gets the progress bar to 'pulse'
My code doesnt seem to work though!?!?!
Public Class Form1
Dim Value
Dim NoValue = "Add"
[Code].....
I am new to VS 2008.. It is possible to change the progress bar loading color (green) to other color? How to change it?
View 3 Replies