|
It doesn't. It tracks the last owner of the file, which is not necessarily the last person to touch it. It also tracks the last Modified time, last Accessed time, and Created time, but that's about it.
You can try FileSYstemWatcher and the NetFileEnum, but keeping the two in synch would probably be very difficult. For instance, two people have the same file open, but only one writes to it. Which one??? There's no way to tell...
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 13:34 Wednesday 19th April, 2006
|
|
|
|
|
Thanks for your help Dave. I think I will use FileSystemWatcher with Event Log entries (parse Event Log) like this I can tell at lest who access it and match it against FileSystemWatcher (create, delete, modify). I will write 2 services (I think it would be better if I keep these separate) to monitor dirctory and Event Log.
Thank you again.
|
|
|
|
|
Hi
I want to create a report in crystal reports (the one that comes with VS 2003) that reads its data from our SQL2000 server. The problem I have, is that it keeps on poping up the database login screen every time I try to run the report and then I have to enter the password. How do I remove the database login popup?
Some extra information:
1. I have created a user in SQL Server 2000 with a password and the correct access rights to the tables that I want to read from.
2. In Crystal reports I created a connection with OLE DB (ADO) and entered the server, user ID, password and default database. Integrated security is not selected.
Anyone have an idea what the problem might be?
Thanks!
Izak
|
|
|
|
|
Hi all,
I'm developing a vb.net 2005 application with an Access database. I create a setup and install it on a client machine. The first time I run the application it takes about 20 seconds to load. If I close it down and run it again straight away it takes about 3-4 seconds to load. If I don't load it for about an hour or restart the machine it again takes 20 seconds to load.
I then put in a few thousand records and the times are about the same so I don't think it has to do with the database.
The machines I've tried it on are about 3 years old. Is it something I have to live with or is there something I can do.
In AdvancedCompile Options I have Enable Optimizations turned on. Should I have Configuration Manager set to Release instead of Debug everytime I create a setup or does VS 2005 automatically do it?
Any help would be much appreciated,
|
|
|
|
|
Well, the slow startup time first time is because of what is called a "Cold Startup". So, if you are running 2 or 3 .NET applications at the same time, the 20+secs delay will be only for the first app. This is because the OS loads the .NET Libarrys and JITter into Memory the first time a .NET app is loaded.
Probably, this problem will be solved in Vista, since probably the .NET Framework will be preloaded on startup....
More Information here : http://msdn.microsoft.com/msdnmag/issues/06/02/CLRInsideOut/default.aspx
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
Thanks for that Yuvi,
I tried a small hello world app. Re-started the machine and it took about 10 seconds to load, so you are correct with your Cold Startup theory.
Thanks for clearing that up for me.
Dave
|
|
|
|
|
hi
I want to have a variabel member in a class in vb6 to be SHARED between all instances of the class. I used Public Shared Myvar as Integer but VB6 automatically changed it to Public Myval as Integer
This is the case for Private Shared... and I could not also use Shared alone to declare the variable.
What can I do to have shared Variables??
-- modified at 10:02 Wednesday 19th April, 2006
|
|
|
|
|
IIRC, there's no such thing in VB6 because VB6 doesn't support true OOP. About the only approximation is to delcare a public variable in a module, but the variable will be exposed to everything, not just every instance of a class.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
"Shared" is a new keyword introduced in VB.NET.
Try using "Static" instead. VB6 classes have serious limitations, so cross your fingers.
|
|
|
|
|
Yes, I know the usage of Shared in VB.NET, but as far as this keyword existed in QBasic (long time ago!) I thought it might be used in vb6 (which was not very wrong, because vb6 IDE recognized it and removed it...)
But if it is the case that Dave mentioned, and I cannot expect such behavior from vb6, I guess I should do the Public Member in a module method...
Thanks anyway....
|
|
|
|
|
MohammadAmiry wrote: this keyword existed in QBasic
My mistake then.
Wow, it's been over 10 years since I've used QuickBasic. I can barely remember it now.
MohammadAmiry wrote: But if it is the case that Dave mentioned, and I cannot expect such behavior from vb6, I guess I should do the Public Member in a module method.
I just tried placing a Static variable inside of a VB6 class method. That way we can have it return a static object reference to a variable container. Unfortunately, it's not static between object instances.
Bummer! It looks like you have to use a Module.
|
|
|
|
|
Hi,
This is kiran
Like I four textboxes in my vb.net application and i want to display textbox controls data in tabular form in word document
plz any one help me
kiran
mailme@ vk_ravula@yahoo.com
|
|
|
|
|
can any one tell me the code at button_click event to trasfer data fro datagrid to excel sheet
mail at toneeraj.kumar@rediffmail.com
thankyou
neeraj kumar
|
|
|
|
|
1) Please use descriptive subjects - every post here is a "problem" of some sort
2) Please do not expect a private response from a public board - answers are posted here for everyones benefit
3) Please describe the problem fully, including relevant code, exception messages etc.
|
|
|
|
|
go to following link
http://www.codeproject.com/aspnet/ExportClassLibrary.asp
Shipra Pandey
Software Developer
Solversa Technology Pvt Ltd.
|
|
|
|
|
Hi,
I need an application, that read the document template (.dot) data and make those values as for my future reference.
Any help to read .dot file thru vb.net.
Thanks in Advance.
Be simple and Be sample.
|
|
|
|
|
hi,
we need to put ,some value in matrix report which is actuly based upon some calculation factor.
for example : martix is based upon the count of x value but we wish to refelect matrix value as x*factor
thanks
vipin
|
|
|
|
|
hi friends i am working on a vb.net project which uses access as db.I have to move the value in a date textbox to an access db when user click a button.I have set the text box text as dateobj.today().It returns date okay but when i transfer it into the data base it looks weird...sometimes it shows absolutly wrong dates(like 1899,1900 etc) BTW the dataype in access database is date/time.I am using access 2003...what am i doing wrong..?
|
|
|
|
|
Are you insterting the date into access in US format? ie mm/dd/yyyy
|
|
|
|
|
oh ok I'll remove it.
-- modified at 6:46 Wednesday 19th April, 2006
|
|
|
|
|
Does any easy method to to embed to IE6 into my form ?
Thank you!
|
|
|
|
|
Yes you can. If you are using .NET 2.0, you can use the inbuilt WebBrowser Control. If you're using .NET 1.1 or .NET 1.0, you can use the WebbrowserEx Control.
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
into a function looking like this :
setStatus(id as Integer, Status as System.Nullable(of Short))
The function is automaticly created in the DataSet-designer for "INSERT INTO Status ...."
Regards // Maw
|
|
|
|
|
Null is called Nothing in VB.
---
b { font-weight: normal; }
|
|
|
|
|
Hrmmmz ...
If I want to use C#? how about it then?
//Maw
|
|
|
|