vb.net windows app with listbox

I have a vb.net windows program that copies files from one directory to another. I have a list box that displays record details such as file name, size load time etc. My issue is that the listbox does not display any of the data until the program is finished running. I would like the listbox to display the status each time an individual file copy is completed. Is there some way to refresh the listbox to show the file copy progress?

 While r.Read

                If FolderExists(FolderPathIncoming) = True Then
                    If FolderExists(FolderPathOutgoning) = True Then
                        If FileExists(FilePathIncoming) = True Then
                            If FileExists(FilePathOutgoing) = True Then
                                UploadMethod = "Copy"
                                SourceSize = FilePropsSource.Length
                                File.Copy(UploadSource & FileName & TheDate & FileType, UploadDestination & FileName & FileType, True)                               


                                SourceSize = FilePropsSource.Length
                                UploadMethod = "Move"
                                File.Move(UploadSource & FileName & TheDate & FileType, UploadDestination & FileName & FileType)                                

                            End If
                        End If
                    End If
                End If


                'Populate Listbox report            

                With Me.ListBox1.Items

                    If UploadMethod = "" Then UploadMethod = "NA"
                    If SourceSize = "" Then SourceSize = "NA"
                    If FileExists(FilePathOutgoing) = True Then
                        DestinationSize = FileProps.Length
                        CreateTime = FileProps.CreationTime
                        DestinationSize = "NA"
                        CreateTime = "NA"
                    End If
                    Counter = Counter + 1
                    .Add("Record # " & Counter)
                    .Add("File Name:          " & FileName)

                    .Add("Load Time:             " & CreateTime)

                    .Add("Source Size:              " & SourceSize)

                    .Add("Dest. Size:                 " & DestinationSize)

                    .Add("Upload Method:         " & UploadMethod)


                End With              

            End While

2/24/2008 4:39:25 AM
asp.net.free-for-all 9281 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 59

These forums are for ASP.NET (web sites / web applications), not windows applications. You might try your question at the MSDN Forums which deals with Windows Applications written for .NET.
Mike Banavige
Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
2/24/2008 5:04:56 AM

Similar Artilces:

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

vb.net and c#.net same app
Been asked before, but... If I build a c# web app and someone builds a vb.net desktop app, can they communicate? and can you develop against it...ie..in my c# web app, can I add the vb.net desktop app as a reference? or at least make calls to it? web apps or desktop apps can contain components created in either language. i have a web solution that contains 4 projects. One of the projects is C# the others are VB.Mike Banavige~~~~~~~~~~~~Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/ Thanks...that is what I was looking for ...

VB.NET Data Grid, windows app to web app
Is it possible to make a Web Application Data Grid element with identical functionality as a Windows Application Data Grid? When I run the code as a windows application, it allows me to make direct edits of each database record through the data grid. When I run the code through a browser, however, it only displays the records. This is the code:Any suggestions? Inherits System.Web.UI.Page Dim connstr As String = "data source=SERVER;initial catalog=DB;user id=USER;password=PASSWORD;" Dim sqlStr As String = "SELECT * FROM Users" Dim dt As New DataTable Private Sub btnLoad_Click(B...

converting to vb.net from c#.net authorize.net
authorize.net offered me some sample code when I signed up with them the only problem is the sample code is in c#.net but my page that they type all of their credit card into is vb.net <code><%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { myPage.Text = readHtmlPage("https://certification.authorize.net/gateway/transact.dll"); } private String readHtmlPage(string url) { ...

vb.net vs c#.net vs j#.net
just out of curiousity which looks, acts most like java? i'm still learning trying to used to vb.net but it seems that it was easier to do some stuff with java. C# is Java++ in my opinion. If you have done C or Jave you will prefer C#.Mike Schellenberger - MCAD If you are looking for language similar to java go for J#. However most code samples you find on the net will be in VB.NET and C#....

Upgrade VB.net 2002 to VB.net 2003
Hi, i want to upgrade VB.net 2002 to VB.net 2003.what is the procedure?Uninstall 2002 and Install 2003 or something else? VB.net 2003 includes Framework 1.1 or i will install it separately?thanx in advance ...

use VB.NET and C#.NET code in the same C#.NET project
All-- Here is a sample that is "off the beaten path", (at least for me). Is it possible, in an ASP.NET application, using the code-behind page building technique, to have both pages written in VB.NET and pages written C#.NET?At http://www.WebLogicArts.com/DemoList.aspx there is a sample that shows that, (contrary to popular belief), it IS possible to mix ASP.NET pages built with C#.NET with ASP.NET pages built with VB.NET in the same VS.NET 2003 project. Note that this is just a "fun" sample to see if it can be done and I do not recommend this practice as a "standard" way of develo...

VB.Net To C#.Net
Hello... Since Last from 1 year i had develope web application in using vb.net now i want to transfer from vb.net to c#.net so what should i do to transform to c# language any link or book related to me through i can easily understand and coding using c# in a short time... Thanks~ Mark As Answer If UseFull ~Kaushal. Hi, you can read the specifications of the language. You're already familiar with .NET and how to program in an OO manner thanks to your experience with vb.net. The only thing you need to learn is the new syntax of C#. You can also convert parts of your v...

About VB.net And VC.net
I am always Programming With VB.net Recently My Teacher ask us to learn Vc or VC.net. I try to learn it and compare it with vb.net, I found it's much too complex than vb. However it is said vc is strongger than vb I want to know Why vc is strongger than vb? and is it hard too learn vc? I am new to asp.net Thanks for man who want to help me! Wuhan, Hubei, China Below links could give some info http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q308470Sreedharhttp://www.w3coder.orgweblog http://weblogs.asp.net/skoganti VisualC is not a language in an of itself...

vb .net or c# .net
I currently develop websites using php but have been requested to develop a site using asp.net. The question I have is for someone who knows php would it be better to transition to vb.net or c#.net? Thanks, Fr. Robert C# -> There is a converter that will transition about 60% or more of your PHP code to C#. Plus C# is closer to PHP than VB.NET.Jason N. GaylordASPInsider and Microsoft MVPhttp://jasongaylord.com...

what lang does everyone prefer? Thanks, Peter Iuvara, MCP It's a very famous debatable question in forums! I would say if you are from Java/C/C++, then C# would be easy to use for you. If you are from ASP/VB, then VB.NET would be easy for you! As long as if you follow CLS, then what ever the language you use, it's going to be the same for CLR!Sreedharhttp://www.w3coder.orgweblog http://weblogs.asp.net/skoganti I would agree with that ... just curious as to what user's on this forum predominantly code in?Thanks, Peter Iuvara, MCP I came from no real programming background, started i...

ANN: VB.NET Forums
Hello Fellow Programmers: Just an announcement the VB.NET Forums moved to the advanced vBulletin 3 software providing a feature rich and enjoyable forum experience. Stop by in your Internet surfing to help others, ask questions, and partake in our VB.NET only community. Visit us in addition to your trips to this great community. http://www.vbdotnetforums.comNeal...

converting vb.net 2003 files to vb.net 2005
Hi, i am beginner..i watch videos about vb.net..they made on vs.net 2003 when i wrote these codes in 2005 ,it gives errors..is there any program which convert the code automatically?   thanks,Thanks,Speranza What videos are you talking about?  There are lots of great, up-to-date ASP.NET Videos on this site for free.Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! i am talking about learnvisualstudio.net videos..Thanks,Speranza Speranza:they made on vs.net 2003 when i wrote these codes in 2005 ,it gives errors..is there a...

------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

Web resources about - vb.net windows app with listbox - asp.net.free-for-all

Window - Wikipedia, the free encyclopedia
This article is about the part of a building. For the Microsoft operating system, see Microsoft Windows . For other uses, see Window (disambiguation) ...

Microsoft Windows Information, Solutions, Tools - Windows IT Pro
Microsoft Windows information and solutions for IT pros. Topics include cloud computing, Windows Server, Exchange, Outlook, PowerShell, virtualization, ...

The Windows Blog
The Windows Blog is Microsoft's Official Blog for the Windows Operating System.

High Court move to extend enrolment window and unlock one million votes
Laws that prevent Australians from enrolling to vote in the weeks leading up to a federal election are set to be challenged in the High Court. ...

Cammeray death: Man dies after allegedly being ‘pushed’ from window - DailyTelegraph Search Search
POLICE have launched a murder investigation into the death of a 44-year-old man who fell to his death from a eighth-floor unit in Sydney’s north ...

Cammeray death: Man dies after allegedly being ‘pushed’ from window
POLICE have launched a murder investigation into the death of a 44-year-old man who fell to his death from a eighth-floor unit in Sydney’s north ...

Windows Phone hacked! Unlock Lumia bootloader, get root access, flash custom ROMs
... probably have many hours of fun playing with an Android device or Raspberry Pi. With that said, Linux is not the only game in town. Windows ...

Street View gives you a window into climate change
... our changing climate, we want to take this opportunity to show you how to explore its impact yourself. With Street View, you can get a window ...

EXCLUSIVE: Calais Trucker’s Close Brush With Death as Migrants Hurl WOODEN STAKE Through Cab Window
A Czech driver passing through Calais has narrowly avoided being killed by immigrants when they hurled a long wooden stake through the window ...

Woman, 80, breaks window to try to free husband from fire
Texas woman focused on saving husband after escaping from house on fire

Resources last updated: 11/30/2015 1:07:47 PM