I have a WMI query that specifies time in this format '20090219000000.000000+480'
Can someone tell me what format this is, and does .NET have any built-in functionality to work with it?
EDIT
This time value is from a sample query that I found. I don't know what time value was used to generate it. I just need to be able to convert a ti...
I have two monthcalender in C# win application , and I need to calculate the period between then.
I need how many day between two or three month or also years
I need how many month between tow different years.
When I use :
monthcalender.selectstart.month;
this command just calculate the different between months in same year, but wh...
I have a filename that leads to a picture. It is not an embedded resource. My bitmap object always tells me the resolution is 96x96 no matter what, how can I get the actual resolution. Thanks
...
I'm making a custom control that can be dragged around and it is semi transparent. I need it so that while it is moving (the mousemove event) that if it intersects a control that its parent becomes that control. I tried to have it iterate through all the controls and if control.bounds.intersectswith me.clientrectangle then me.parent = co...
Hi,
it is possible to make own plugin to media center in windows (in .NET)?
Thanks
...
What does the Message AssemblyInfo.cs exited with code 9009 mean? What could I do to correct this issue.
Thank you
...
I am new to programming.
Using C# & ASP.Net, how would I differentiate between a property & a method?
How can I tell if something is a property or a method?
...
How can I reuse the application icon from within my application so I don't have to embedded it twice (once for the application icon and once for internal usage)?
...
Okay, newbie multi-threading question:
I have a Singleton class. The class has a Static List and essentially works like this:
class MyClass {
private static MyClass _instance;
private static List<string> _list;
private static bool IsRecording;
public static void StartRecording() {
_list = new List<string>();
...
I've done a pretty decent amount of looking on the inter-webs, searching for ways to improve the poor performance of my WPF DataGrid control. I came across this little gem from this article, but I can't seem to find anything about it in the documentation. Can someone point me to where in the docs I might find how to manipulate how Virt...
I'm creating an installer for my Windows client application. Currently I create an MSI (Windows Installer) file that contains the .NET 3.5 SP1 redistributable.
My application is less than 10MB, but including the .NET framework will make the installer more than 100MB. That's a lot of extra bits to download.
The .NET Framework keeps inc...
I am working on a prototype project and need to put a new layer of abstraction over my existing NAnt scripts, for which I'd like to use .Net, possibly even WPF.
What I have at present is a NAnt script which I call from a Command window (a DOS box, for the old-skoolers).
As I said, I'd like to wrap this inside a WPF application that I c...
I have two threads, a producer thread that places objects into a generic List collection and a consumer thread that pulls those objects out of the same generic List. I've got the reads and writes to the collection properly synchronized using the lock keyword, and everything is working fine.
What I want to know is if it is ok to access ...
How can I make a script that makes one thing happen 4/5 times and the other thing 1/5 times
I need it to appear after this
private void Arrest()
{
Ped Criminal = Player.GetTargetedPed();
if (Exists(Criminal) &&
(Player.Character.Position.DistanceTo(Criminal.Position) <= 10.0F))
{
...
I would like to be able to decorate any method with a custom Trace attribute and some piece of code should be injected into that method at compilation.
For example:
[Trace]
public void TracedMethod(string param1)
{
//method body
}
should become:
public void TracedMethod(string param1)
{
Log.Trace("TracedMethod", "param1", par...
I know, I know, its sounds silly, but it seems that there are no opensource robust .NET libraries out there for parsing Wikitext to HTML.
Anybody know of a stable.robust .net Wikitext to HTML parser (i.e. codeplex projects that are still in beta mode do not count)
...
I have an Arduino Duemilanove USB. I have just a single LED wired up to a single port on it. I want to use C# to turn on this LED. Does anyone have a simple example of how to do this? Just the most basic on/off code is what I'm looking for.
On a side note, I know there are some libraries written for .NET communication with Arduino. The ...
How do you 'verify' that a message sent using MSMQ to a private local queue was actually delivered? I'm especially thinking of a scenario where the listener (a C# service in my case) is not running and therefore delivery can't be successful.
...
Hi
I am now using asp.net mvc and wondering what is a better choice using the built in Json or Json.Net I am not sure if one has an advantage over another.
Also if I do choose to go down the route of Json.Net then should I go with the stable version or beta 4? I am not sure how unstable the betas are.
...
I'm a brand-newbie to C#, albeit not programming, so please forgive me if I mix things up a bit -- it's entirely unintentional. I've written a fairly simple class called "API" that has several public properties (accessors/mutators). I've also written a testing console application that uses reflection to get an alphabetically list of na...