And what about trace? Are you looking for something like this[^]?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
I'm having a problem I can't seem to find the source of in a program I'm developing. The following function parses an XML file to find the names of registry keys and associated values that are linked to the selection of a drop-down box in the UI. The function retrieves keys with no problem. when asking for the values, it always returns 0, and I can't seem to figure out why. Thanks for taking a look and any suggestions/solutions you may come up with.
I've included the source of the function below and a sample of the XML -
GetCfgOption("FilterMode", intFilterModeIndex, "Key"<, 0>) 'intFilterModeIndex would be a variable and can = 0-5; the ", 0" at the end is assumed
GetCfgOption("FilterMode", intFilterModeIndex, "Value"<, 0>)
GetCfgOption("FilterMode", intFilterModeIndex, "Key", 1) 'explicitly including 1 would get the 2nd set of key/value, 2 the 3rd, and so on
GetCfgOption("FilterMode", intFilterModeIndex, "Value", 1)
This could be tested using a Console.WriteLine() statement. Calling the function with "Value" always returns "0".
The following is a section of the XML file being accessed:
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
How to code the month control or datetimepicker to have month. I don't want to have 2 datetimepicker. Is there a way for user to only choose month then display that months data from 1st to 31st for example?
I have no idea how to do because each month has different days.
Get the month and year from the user then use the DateTime.DaysInMonth method to get the number of days in that month.
When you have those two things, you can make two DateTime objects using the month and year supplied by the user. Use the 1st of the month to start the date range and the number of days returned by DaysInMonth to create the second date value.
There's your date range. You just supply those two dates to a couple of parameters in your SQL query (PLEASE USE PARAMETERIZED QUERIES AND NOT STRING CONCATINATION!!) to retrieve the data.
If you don't know what a parameterized query is, Google for "VB.NET SQL Parameterized Query".
I want to try and do something that I think should be fairly easy, but I could be wrong. I want to have an icon in the system tray and it would change colors and blink depending on the system status.
Green - All systems are up and running
Red - There is a system down.
Yellow - Scheduled outage for today.
Orange - You are not connected to the network.
So if the file is called Green.txt The icon would be green and if the user hovered over the icon or clicked on it the contents of the text file would be in the balloon or a message box could display the contents.
For Orange I was just going to ping a DC and if it did not get a reply then I know they are not connected to the network.
I have searched for hours to find something but I cannot seem to find anything.
Last Visit: 31-Dec-99 18:00 Last Update: 22-Sep-17 7:44