I have a generic class like this:
class MyGenericClass<T> { }
On the other hand I have an aggregator class that I use to obtain singleton instances of MyGenericClass and of derived classes, where each instance is identified by the concrete class type and by the parameter type. That is, MyGenericClass<int> is different from MyGenericCl...
I have a crystal report that is based on an XSD schema file.
Within the report definition, I can modify the datasource location, specifically, the file path. This is where I can set the file path to where the XSD schema file resides on my machine.
At this point, everything works correctly.
Here is the problem:
If the file path does ...
I need to implement SOAP WS-Security using TimeStamp.
Soap header should have Timestamp and expiration time and message should expire if it exceeds Expiration time.
I went through MSDN link here and here. These links discuss about specifying custom properties (Created & Expires) added to header and initialized before sending any reque...
Is there a way to have the particular DLL referenced by a P/Invoke (DllImport) signature depend on the CPU architecture?
I'm working on an application that loads a large number of method signatures from a native dll from a third party vendor, in this case the user-space interface DLL to a piece of hardware. That vendor has now started ...
Bit flags are a little difficult to understand :)
I know about this and this questions and I do understand the answers and I even followed this article from a good friend of mine.
But I still cant figure it out when I need to "evolute" more than the standard...
What I'm trying to do is this:
if (HttpContext.Current.Session["Debug...
It seems that serialization is very straightforward. Assuming that both the key and value are serializable, what could be simpler than representing key-value pairs in XML?!
To all the commenters: First of all, I appreciate your answers, But- I am less interested in workoraunds (There is indeed plenty of SerializableDictionary implementa...
I'm pretty new to WPF (and completely new to animations), so I would imagine there's just something that I'm missing here. I'm in the process of creating a new layout Panel that lays the controls out in a particular way; the details aren't (or shouldn't be) especially important here. What I'd like to do is animate the movement of the ele...
I have a managed object that calls a COM server to allocate some memory. The managed object must call the COM server again to free that memory before the managed object goes away to avoid a memory leak. This object implements IDisposable to help ensure that the correct memory-releasing COM call is made.
In the event that the Dispose m...
I'm developing a form in WPF with the technique of Parallax Scrolling and I need to work out one last step. I wish recreate this nice effect of the mouse.
I'm trying to get the cool delayed easing when the mouse finishes moving. When the mouse finishes moving, the background slowly stops moving a bit later, which is easily achievable vi...
This is my first post, so let me start by saying HELLO!
I am writing a windows service to monitor the running state of a number of other windows services on the same server. I'd like to extend the application to also print some of the memory statistics of the services, but I'm having trouble working out how to map from a particular Ser...
Hi all
I'm involved in a project which is able to connect to different hardware devices on the fly. We've been assigned to make a Touch Screen GUI so we have a MMI to the devices.
As any device (and any type of device) potentially can connect to our framework, we've decided to let 3rd party device developers make their own GUI plugin. ...
I mainly do .Net development but have just bought an Apple Mac Book Pro and am wanting to do some iPhone Development as well. Is there a particular Source Control Software out there which will handle integration with both Visual Studio and iPhone develeopment (Titanium/XCode) ? Thanks
...
When an HTML form is posted to a website without specifying the actual page name, it doesn't work.
Non-working code
<form id="userinput" method="post" action="http://website1/">
Working code
<form id="userinput" method="post" action="http://website1/default.aspx">
'Default.aspx' is the startup page for this website (configu...
In one application I'm suddenly getting a style that looks like windows classics.
It looks good in the Visual Studio designer (left on the image) but when I run the application it looks like windows classics style (right on the image) and I can't find it.
I tried to create a new clean window and add one button to it and that also looks...
I have a performance counter category. The counters in this category may change for my next release so when the program starts, I want to check if the category exists and it is the correct version - if not, create the new category. I can do this by storing a GUID in the help string but this is obviously smelly. Is it possible to do th...
Imagine I have
var points = new Point[]
{
new Point(1, 2),
new Point(2, 3)
};
To get the point with the minimum X I could:
var result = points.OrderBy(point => point.X).First();
But for large arrays, I don't think this is the faster option. There is a faster alternative?
...
OnclientClick of a button I hide a panel client side. I only want to hide it however if all input is valid. Is this possible in Javascript?
...
Hi
I am wondering if this can be done easily. I am doing some paypal stuff where when the user returns from the paypal site they go to a "success page" that you set before you send the user to paypal.
So now I give my customers 2 choices. They can do a one time payment or they can do a recurring payment.
Now with paypal express you ha...
I need to read output from native C++ console application in my C++/.NET. There are many articles about this, but most wait until the process ends to read the output, which I don't want to, I need to read it immediately after it is "cout-ed" by the process (and don't want to block the GUI while doing so, but that's something I can do on ...
I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache?
If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Than...