Newbies 2 questions

  • Thread starter Thread starter Ms.net
  • Start date Start date
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
 
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
 
FileInfo fi = new FileInfo( " \\Computer\sharefolder\file1" );
if( fi.Exists) Console.WriteLine( fi.DirectoryName ) ;

or just parse it :-)
 
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
 
Back
Top