|
Hey just change in Program.Cs
<br />
[STAThread]<br />
static void Main()<br />
{<br />
Application.EnableVisualStyles();<br />
Application.SetCompatibleTextRenderingDefault(false);<br />
Application.Run(new Form2());
}<br />
|
|
|
|
|
Hi,
I am using filesystemwatcher to mononitor a folder when changes occur to files in that folder.
I am happy with the changes it detects and it seems it is working correctly.
Question:
How is it possible to display the notifyfilter which gets detected i.e. size or filename, LastWrite, etc...
Thanks
|
|
|
|
|
|
Hi,
Thanks for the link.
Un-fortunately I do not see anything relatinig to my issue.
I am basically tring to detect what has exactly changed.
For example, I detect e.ChangeType where e is FileSystemEventArgs
But do not detect whether it is a size or creationtime or lastaccess or what change it exactly is.
Thanks
|
|
|
|
|
i think if you check The tool and code throughly you will get your answer.
|
|
|
|
|
Are you able to point me to it please?
Because I do not find that bit
Thanks
|
|
|
|
|
Hi,
I have checked the code again.
There does not seem to be what i am after.
I basically would like to detect the kind of the ChangeType whether it is size change or anything else that has caused the notifyfilter.
Thanks
|
|
|
|
|
Looking at the FileSystemEventArgs[^] members it doesn't seem like there's a way to find out this information.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
I developed a simple C# desktop application that uses the MS Access Data base, I created the deployment project and passed it to my client..The issue is that on the first run application get some time for loading...and after that it's working fine.. However on My side it is running smooth..
Well by chance my client had installed visual studio 2005.. When i compiled it on his machine.. the problem is resolved.. Any Idea whats the problem here?
Q@!$3r
|
|
|
|
|
So how many times will the client need to start the application for the first time. My guess is once at most!
|
|
|
|
|
|
Rizawn wrote: first run application get some time for loading...
does your application doing some background job on that time ?
|
|
|
|
|
well in MAIN FORM's load method i am showing a dialogue box which asks for user name and password if the user provides incorent login then some buttons on the main form are Disabled..
But thats not the issue.. as i mentioned when i recompiled it on client machine the issue was resolved..
yesterday i saw some utitlites on code project the compile the code on the fly... I was thinking if it's possible to make application recompile on the client machine by using some sort of single calle function..
Q@!$3r
|
|
|
|
|
Rizawn wrote: compile the code on the fly
well, good idea.. could you kindly provide me the link for the same
Thanks in advance !!!!
|
|
|
|
|
|
|
There are probably two factors at work here...
1. If this is the first .NET application that has been run since the computer was last rebooted (or the first one run in a while), the .NET runtime itself (the CLR) needs to be loaded in to memory. This happens when your application first starts and does increase the startup time.
2. The fact that you can recompile on the client machine, which resolves the problem is probably due to my point above combined with the fact that the runtime no longer has to "fix up" as many assembly pointers in memory.
If the startup time really that large of a problem you should probably do some performance analysis and see where the application is spending most of its time during startup, and then fix those areas. .NET is already a dynamically (just-in-time) compiled language, so doing more dynamic compilation isn't going to help performance.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Can someone please tell me how to check to see if a number has been entered by a user in form field?
|
|
|
|
|
Surely you can try look for the answer yourself...
|
|
|
|
|
Hello leppie,
I have attempted to look, but was not able to find an answer (hince the reason I have posted to the board). I thank you for your "non-willingness" to help though. Have a nice day.
|
|
|
|
|
when do you want to validate that?
if you want to validate on textchange you can write code for that . or for any button click you can use Regx.
Thanks
|
|
|
|
|
Thank you. I will give it a shot.
|
|
|
|
|
That work. Once again thank you.
|
|
|
|
|
you are welcome
|
|
|
|
|
int number;
bool isNumber = int.TryParse(text, out number);
modified 12-Sep-18 21:01pm.
|
|
|
|