I only think it's strange that you can't specify your own type in the designer. I would like to specify my object as a type (for example a bitmap). I am not going to store it in an sql but show it in a grid.
thanks
I am creating a typed dataset in the designer of VS2005. If I want a column to contain a certain object of a class or for example a bitmap - how do I enter that in the column. The designer always returns an error when I try to change this manually? Is there a limitation in the designer?
thanks
yes, I do that, but I want to use both an include and exclude filter. The getfiles helps me with the include, but I also want to exclude on the "included files".
thanks
I need help on a regexp. I am copying files and would like to have a "exclude"-filter. So, I have a filepath:
c:\myfiles\myfile.txt
and the filter in a normal file mask filter:
*.*
or:
*.txt
or a file:
anotherfile.txt
I want to now which file paths that are matching this filter with the...
I am monitoring a directory from a Windows Service. I had plans to run this Windows Service under the Local SYSTEM account but I am not sure if that works. I have access to usernames and passwords.
The problem is that I need to monitor a Network Drive. So, I thought I could combine WinAPI...
I found this method which solves my problem. It prevents the impersonation being inherited to new threads that are created within the impersonated thread:
Threading.ExecutionContext.SuppressFlow()
I have impersonated a thread with success. What I would like to do is either keep the impersonation to that thread (the impersonation must not be inherited) or if I can specify somewhere that a certain class can't be impersonated.
In my example I am watching a folder with the filesystemwatcher...
I would like to calculate when the time is adjusted by windows. For example, here in Stockholm we adjusted the time at 02:00 the 26th March to 03:00. I would either want to find a way so I can calculate when and what direction it moves or be notified by an event when Windows automaticly adjusts...
I have a windows services that needs to copy some files between network drives. I have access to username and passwords which have the right to access those drives. Which is the best approach to start copying these files. Any code example?
I have heard of impersonation but I don't know if...
I am trying to connect to a remote server and watch __instancecreationevent on processes.
When using asynchrous calls - using watcher.Start I get a access denied. When using watcher.waitfornextevent it works. Any idea why? I would really like to use the ansynchrous method.
Private Sub...
Is there some other way? Why must the TcpListener be connected to a process. I would like to have the process still there but just shut down the listener.
I have an application which listens to a port. I have no problem connecting to it. When I close the application the address is free for use again. In one case the address is in use - it's when I have started a process (system.diagnostics) somewhere in the application and that process is still...
No, I have not hard coded any temp folder. But I read somewhere that .NET special folder (temp) is based on the system variables. Maybe that user has changed those variables?
The system is XP SP1.
One of my clients has a problem when starting up a Windows Service that I have created. Here is the error located in the event log:
Service cannot be started.
System.IO.DirectoryNotFoundException: Could not find a
part of the path 'C:\WINDOWS\TEMP\tidzxg8b.tmp'.
at...
Yes, maybe they don't. But I would like to have the possibility to hide it. My problem is that I always capture output, but it is the user that selects an application to start and sometimes they want to hide the GUI applications. I don't know any way to determine if it is a GUI application or...
Thanks mansii, Notepad was just an example. It could be any GUI application. I don't know why they have failed with this or if there exists a workaround.
If someone wants to try this further here is what I want to achieve in my example:
1. start Notepad.exe in hidden mode via Process.Start, no...
That works for a commandwindow. I would like to have the ability to do this with for example Notepad.exe. Unfortunately, that program and other "real" GUI programs won't hide like they do when using the WindowsAPI function "CreateProcessWithLogonW".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.