Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: haddaway
  • Order by date
  1. haddaway

    Typed datasets and special datatypes?

    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
  2. haddaway

    Typed datasets and special datatypes?

    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
  3. haddaway

    regexp help

    Thanks for the links!
  4. haddaway

    regexp help

    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
  5. haddaway

    regexp help

    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...
  6. haddaway

    FileSystemWatcher on Network Drives

    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...
  7. haddaway

    Prevent impersonation

    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()
  8. haddaway

    Prevent impersonation

    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...
  9. haddaway

    Assing byte array directly?

    I would like to perform the following in some way: Dim b(2) as byte = (34,23) How can I do that?
  10. haddaway

    Daylight saving time - when?

    I just wanted to say that I found this information in: System.Globalization.DaylightTime thanks
  11. haddaway

    Daylight saving time - when?

    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...
  12. haddaway

    Copy files on network?

    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...
  13. haddaway

    WMI - access denied

    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...
  14. haddaway

    TcpListener - address in use

    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.
  15. haddaway

    TcpListener - address in use

    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...
  16. haddaway

    Stranger exception at startup

    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.
  17. haddaway

    Stranger exception at startup

    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...
  18. haddaway

    Starting a GUI app in hidden mode?

    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...
  19. haddaway

    Starting a GUI app in hidden mode?

    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...
  20. haddaway

    Starting a GUI app in hidden mode?

    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".

Part and Inventory Search

Back
Top