Hi,
I was wondering if there was a simple way of doing this (setting a property or something of the ListView) rather than going through the Drag events.
All I want is similar functionality to Windows Explorer, where users can drag the ListViewItems within the ListView and when dropped they remain where the user left them. All I want to...
My customer want to use Crystal Report to basically print data from DataGridViews in the application to paper or PDF. (there are approx. 30 different DataGridViews)
They want to have the same column names in the Crystal Report view as is show in the source DataGridView and column width etc. shall also be proportional.
I tried if I c...
We have certain application written in C# and we would like it to stay this way. The application manipulates many small and short lived chunks of dynamic memory. It also appears to be sensitive to GC interruptions.
We think that one way to reduce GC is to allocate 100K chunks and then allocate memory from them using a custom memory mana...
Hello,
I'm running Classic ASP on Windows 2008 Server x64 in 64bit mode.
ADODB is running fine in 64bit with classic ASP. I have a problem with mine .NET COM DLL.
I have created a .NET COM DLL with such code as an sample:
using System.Runtime.InteropServices;
namespace TestNamespace
{
[Guid("C446E97E-B415-4677-B99E-9644657FC98"),
...
I want to call Type.GetFields() and only get back fields declared as "public const". I have this so far...
type.GetFields(BindingFlags.Static | BindingFlags.Public)
... but that also includes "public static" fields.
...
Hello everyone,
I am hosting a WCF service in IIS using basicHttpBinding using streaming mode. The WCF web services queries back end SQL Server 2008 by using ADO.Net and return a DataTable to client side of WCF service.
My understanding of WCF streaming mode are,
WCF streaming mode should use only constant number of memory at both cl...
I've inherited some code and my current task is to improve it's performance. Straight away I've noticed a foreach loop containing lazy loads of child elements. I'm trying to remove the lazy loads since, in the example below, there's going to be 1 + (3 * n) calls to the database!
using (BaseEntityConnection BaseEntityContext = new BaseEn...
I Collected the info from one of the previous StackoverFlow Q & A that
The following items can be serialized using the XmLSerializer class:
•Public read/write properties and fields of public classes
•Classes that implement ICollection or IEnumerable
•XmlElement objects
•XmlNode objects
•DataSet objects
My Question i...
We're doing some serious games interface work. Games allow unique new interfaces, but we also want to avoid having to reimplement traditional 2D controls, we want to leverage the years of refinement to windows controls.
How would we go about hosting and rendering .NET controls in a '3D' context? 3D in the sense of, eventually they wil...
How Do I capture a variable?
Alternatively, can I store a reference to an object reference?
Normally, a method can alter a variable outside of it using ref keyword.
void Foo(ref int x)
{
x = 5;
}
void Bar()
{
int m = 0;
Foo(ref m);
}
This is clear and straight-forward.
Now let's consider a class to achieve the same thin...
I'm not sure when I should use ContentPresenter instead of ContentControl (and vice-versa). At the moment, I'm using ContentControl pretty much all the time in my DataTemplates. When would ContentPresenter be a better choice? and why?
I've read http://www.beacosta.com/blog/?m=200611 but I still don't get when/why I would choose one over...
It seems that 3.5 was a big leap from 2.0. My workplace is still stuck on 2.0. What kind of fun am I missing out on by not being able to upgrade?
...
How can I quickly determine what the root URL is for my ASP.NET MVC application? I.e., if IIS is set to serve my application at http://example.com/foo/bar, then I'd like to be able to get that URL in a reliable way that doesn't involve getting the current URL from the request and chopping it up in some fragile way that breaks if I re-ro...
How does Dotfuscator work? I tried obfuscate some of my classes and it renamed the methods/class to a, b, c etc. But I can still see the code inside those methods? Is it that, I am doing something wrong?
Is there anything that would prevent a totally block deassembling my assembly?
...
I have two ManualResetEvents, which I use to pass control back and forth between two threads. Essentially a coroutine.
Because the coroutine holds disposable objects (ManualResetEvents are wait handles), it should implement disposable. Also, it should dispose those ManualResetEvents when it is disposed. But, because only one thread runs...
I'm modifying some .vcrpoj files in .NET but when I save them the formatting changes (which wrecks havoc with my diff tool), the original files look like this:
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
But when I save the changes it lo...
DevExpress or ComponentFactory's: Krypton Toolkit
I am looking for people's experiece with either.
Ease of use(programmatically)?
Accessability of help and support?
User Community?
Stability of controls?
Ability to extend?
I am not asking anyone to Google it for me. I would like actual experience with either control suite(why I...
Simple query - I am looking for recommendations for a .NET library that supports XSLT 2.0 (if one exists).
Thanks.
...
Hello all
I have read a few bits and bobs online about this topic but found none that work for me.
What I am trying to do is create a class of a runtime Type.
I use Activator.CreateInstance which works fine for classes with constructors that contain no arguments. For those with arguments it throws an exception, is there a way around t...
Hello,
I am trying to implement some functions that will convert one object to another with XslCompiledTransform.
I found some implementations for Serializing an object to XML string and DeSerialize the XML string to an object.
Another function does the XslCompiledTransform from object1 to obejbct2.
To generate the XSLT file i used t...