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 strongm 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: IlyaRabyy
  • Content: Threads
  • Order by date
  1. IlyaRabyy

    Numeric amount to verbal one conversion - how to?

    Colleagues, Say, you need to convert $123,456.78 to "One Hundred Twenty Three Thousands Four Hundred Fifty Six dollars and 78/100". Is there some .NET built-in (or custom-made) function that does that? Or I'll have to "roll yer own"? TIA!
  2. IlyaRabyy

    FileSystemWatcher stops reacting to deletions

    I was trying to start new thread, but this new website dinna wanna take "FileSystemWatcher glitch" as a thread title... I miss the old Tek-Tips website! But it let me in on this second attempt. (Forgive me my nostalgia for the ol' good Tek-Tips wbsite!) BTOM: 1. FSW reacts dutifully to renaming...
  3. IlyaRabyy

    "Who's in here?"

    Colleagues, How do I know who's currently logged in on a server (or even local W/S) machine? IOW, I need a function that returns a list of currently logged UserIDs, whether as a String (e.g. CSV, or CRLF-, or whatever char separated) or String(). I recon posting similar Q. here before (way B4...
  4. IlyaRabyy

    FileSystemWatcher reacts twice

    Colleagues, Here's what I have in the code: '==================================================================================================================================== Private Sub MonitorFilesModifications()...
  5. IlyaRabyy

    FileSystemWatcher.Filter errs

    Colleagues, Picture worth 1K words, so here it is: AHWBGA! Regards, Ilya
  6. IlyaRabyy

    FileSystemWatcher: how to make it accept multiple file extensions?

    Colleagues, I need to monitor files of more than one type (e.g. XML, TXT, etc.) I looked up FileSystemWatcher.Filters property - it's read only. This is what I have: What am I doing wrong? Regards, Ilya
  7. IlyaRabyy

    File's hash code - how to get it?

    Colleagues, the subject line says it. Search in the MS Learning (aka on-line Help) produced "you're in a helicopter" results. GetFileHashCode() threw an exception even before Ctrl+S. AHWBGA! Regards, Ilya
  8. IlyaRabyy

    Delete an array element - HOWTO?

    Colleagues, I vaguely remember that there was something like Array.Delete(ElementIdx) in one of the programming platforms I've used in the past. Can't recall was it VB6 or VFP 3.0-9.0... Probably in VFP, coz I remember giving my students in VB6 class assignment to develop a sub or function for...
  9. IlyaRabyy

    Directory.GetFiles() misbehaves

    Colleagues, The subject line says it, and I'm at the end of the rope with frustration! This is what's happening: I have a root dir, with subdirs, where I have files of type *.LOG, *.XML and *.PS; These files can be located in the root dir or in a subdir, or both; This Directory.GetFiles()...
  10. IlyaRabyy

    Appending arrays - HOWTO?

    Colleagues, Can't recall if I've asked this Q. B 4, forgive me if I had. [bowright] Say, you have two arrays of the same data type, and you need to add/concatenate/append them into one. Besides the obvious (ReDim Preserve one array with the sum of elements and copy the elements of the second...
  11. IlyaRabyy

    Is there OnSutdown event for a Console app type?

    Colleagues, The subject line says it. There is OnShutdown event for the Win Forms type (used it myself for such projects), but I couldn't find how to catch this event in Console type app. In case you wonder: imagine you need to run a Console app for some period of time, and something (or...
  12. IlyaRabyy

    Is the program running? - HOW-TO

    Colleagues, Imagine you have a Console type program that's supposed to start automatically by Windows Scheduler, and run permanently; Now, imagine that the machine (WS or a Server box - regardless) is turned off (let's say for weekend, or due to reboot); Even though Scheduler is supposed to...
  13. IlyaRabyy

    Debugging a Win Service app: no reaction

    Colleagues, I'm trying to test and debug a Windows Service program. The Program is supposed to report files creation/modification/deletion of XML files by writing a report line to a LOG file. (If it's of any significance, that same program made as WinForms actually works. I copy-pasted the...
  14. IlyaRabyy

    Global memvar declared (and assigned a value) in one module, not visible in another module - ?

    Colleagues, What's described in the Subject line is very strange! Especially considering that it always worked before! Let's say, you have a main module (e.g. Form), in which you have something like Public Class Form1 Public gcSMTPClient As String, giSMTPPort As Integer You, programmatically...
  15. IlyaRabyy

    File Watcher Service type: Add Installer errs

    Colleagues, The "brass" "suggested" to make this File Watcher program as a Service type. (Albeit WinForms version is a working prototype.) I transferred the code from FileWatcher_W project to the FileWatcher_S project. Now, this latter needs to be tested and debugged. Since Service type can't be...
  16. IlyaRabyy

    Error "System.Management.ManagementObjectSearcher Is Not Defined"

    Colleagues, What worked in WinForms type of project ain't wanna work in the Service type project. Picture worth 1,000 words, so: As you can see, the System.Management is imported, but... Here's the code...
  17. IlyaRabyy

    Error with ComponentModel.ISynchronizeInvoke as parameter

    Colleagues, Another problem was encountered: Program: FileWatcher_C ("C" stands for "Console"); Based on FileSystemWatcher class; When run (Debug mode) in VS 2022 IDE, throws the following error: Here's the starting code...
  18. IlyaRabyy

    "Application is not a member of 'System.Windows'" error

    Colleagues, Subject line says it. But just in case: The app is Console type. Reason for needing this: need to name the app's log file (don't want to hard-code it, y'kno...) The Q.: Is there equivalent to the System.Windows.Forms Application class? If not - how can I obtain the Console type...
  19. IlyaRabyy

    No line # neither Sub reported with "Object reference not set to an instance of an object"

    Colleagues, Here's the error message I receive: "Currently logged Users: Error occurred in on Line #, error description: Object reference not set to an instance of an object." Supposedly, it comes from this code...
  20. IlyaRabyy

    Service or Console?

    Colleagues, The Q. may seem academical, but in my case it's quite practical. Here's the background: 1. We have a number of programs (all in VB .NET) built as Console, but actually run 24/7 like services by Win Task Scheduler. 2. These programs have been used for years already (well, with some...

Part and Inventory Search

Back
Top