Home All Groups Group Topic Archive Search About
Author
2 Mar 2007 9:26 PM
raremind
I am very new to VB. So forgive me if this seems stupid. I created a
program that copies an Access DB from a share on our network to the
local machine and then opens the DB when you click the button. I need
to show the progress of a file opening. I want to use the progress bar
but I have one question. How do I set a value so the progress bar
fills. I have included the code I am using.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

        Dim objApplication As Object
        My.Computer.FileSystem.CopyFile("\\Server\common\db\live.mdb",
"C:\DB\live.mdb", True)
        objApplication = CreateObject("Access.Application")
        objApplication.OpenCurrentDatabase("C:\DB\live.mdb", True)
        objApplication.Visible = True


    End Sub


Any help whould be appriciated, Thanks in advance.

Author
2 Mar 2007 9:43 PM
Jeff Johnson
"raremind" <rarem***@gmail.com> wrote in message
news:1172870818.684665.314190@h3g2000cwc.googlegroups.com...

>I am very new to VB. So forgive me if this seems stupid.

No, just in the wrong place:

[Canned response]
This is a VB "classic" newsgroup. Questions about VB.NET (including VB 2005,
which has dropped .NET from its name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.

For questions specific to the VB.NET language, use this group:
microsoft.public.dotnet.languages.vb

Please note that things like controls and data access, which have their own
subgroups in the Classic VB hierarchy, are not language-specific in .NET, so
you should look for groups like these:
microsoft.public.dotnet.framework.windowsforms.controls
microsoft.public.dotnet.framework.adonet
(Note that "vb" is not present in the group name.)