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!
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...
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...
Colleagues,
Here's what I have in the code:
'====================================================================================================================================
Private Sub MonitorFilesModifications()...
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
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
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...
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()...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.