Newbies 2 questions

M

Ms.net

1)
How to get a directory of a file if a i know the full path of the file
only.( the file maybe on LAN).

Example:
\\Computer\sharefolder\file1

i want to get Directory \\Computer\sharefolder\


2) How to make splash screen in VB.NET ,which will show some activities
before the main form will show...


Thnaks you
 
M

Ms.net

Activies like, Filling Dataset...so i can show percentage..

Filling dataset may take a little bit time because i have in database 20
tables....
so i can show message like " getting ... products, or suppliers..."
or i can show a percentage..



Thanks you for first question
 
A

Adrian Martin

FileInfo fi = new FileInfo( " \\Computer\sharefolder\file1" );
if( fi.Exists) Console.WriteLine( fi.DirectoryName ) ;

or just parse it :)
 
A

Armin Zingler

Ms.net said:
Activies like, Filling Dataset...so i can show percentage..

Filling dataset may take a little bit time because i have in database
20 tables....
so i can show message like " getting ... products, or
suppliers..." or i can show a percentage..


shared sub main
dim splash as new splashform
dim main as mainform
splash.show
splash.refresh
'** activities here **
main = new mainform(<datasets and other stuff>)
application.run(main)
end sub

class Mainform
public sub new (<datasets and other stuff>)
myclass.new
'store and/or process <datasets and other stuff>
end sub
'...
end class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top