These days with Visual C# (Visual C# 2008 specifically) it seems that the default color for menustrips and menus is blue, which to me looks really strange and is something that I'd really like to override. I'm guessing that Visual Studio is picking up this blue color from my selected system theme or something, however no other Windows ap...
Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the version number of a .NET assembly to move from release candidate to release. (Don't you just ...
Hi,
we have a web application that, started out small, any new features that were added on, were just made as part of the same project, however now we would like to create new projects for these said addons...
we created a new project, it inharits the global.asax of the main project, and also accesses the web.config of the main project ...
Trying to find some verbose reference on the intricacies of Attributes. Any help would be appreciated.
At this point, I'd specifically like to know what time during runtime does an attribute constructor get ran?
If it's over a class
If it's over a property
If it's over a method
Thanks.
...
I have used the "select" keyword and extension method to return an IEnumerable<T> with LINQ, but I have a need to return a generic Dictionary<T1, T2> and can't figure it out. The example I learned this from used something in a form similar to the following:
IEnumerable<T> coll = from x in y
select new SomeClass{ prop1 = value1, p...
What is a dependency property in .Net (especially in WWF context). What is the difference from the regular property?
...
The process for releasing my application to the client is per the heading
Build
Clickonce deployment
Obfuscating the main executable with Dotfuscator
Signing the manifest and .application files with mage
Zip for delivery
I'd like to work on an opensource program to automate this as it uses a lot of time everytime a release is needed ...
If you add an PNG image to an ImageList control and use that ImageList with a ListView or TreeView in a Windows Forms (.Net 2.) application the icons shown in the ListView have a blue "halo" around them.
Eg:
Does anyone know a work around that allows you to add 32bit PNGs with an Alpha channel to an ImageList and retain the transpare...
Let me give a scenario then see if anyone has a solution / work-around.
I've got a library (DLL) that contains only classes. In another library, I've got interfaces that the classes in the first library implement. Clients will always reference only one version of the library containing the interfaces (always the latest one) - and only...
I have a feeling I may already know the answer to this question, but I'll ask it anyway.
Are there any better ways of using the .Net Profiling API than the COM/Managed C++ route?
My reluctance to follow the suggested COM approach is as such:
Effort, it's a lot of legwork to get started
Don't like the magic involved in hooking up the ...
After installing VS Sp1, the build breaks as it can't find LC.exe (to run on top of license files). Seems like SP1 don't install LC.exe
I found in this MSDN forum post and the solution I found is, I should install Windows SDK.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/93fe03a0-117c-406e-b0ea-c2e2227e1835/
Microsoft ...
What control should I use to create a grid like a ListView or Excel grid?
...
The FileUpload control requires me to provide a rooted directory in the SaveAs() method. However, I would much rather the uploaded files go into a virtual directory, such as "~/UserFiles/[username]/[filename]". Is there a way for me to accomplish that?
...
I have an application that requires .NET Framework 3. I am planning to deploy the application using a Setup Kit built by VS2005 deployment project.
What is the best practice to include the last known .NET version (3.5 SP1 in my case) bootstrapper with the deployment package or include exactly what my project needs (.NET3)?
Thank you f...
I'm trying the following in Unity:
I have a type with the following constructor
public Type1(Type2 firstDependency, Type3 secondDependency)
When resolving Type1 using Unity, I want to specify the specific instance for Type2 to inject. This specific instance of Type2 is not registered in the container. Type3 is registered in the conta...
When I am using a TransactionScope object I can specify the Isoaltion Level using the transaction options.
What is the default isolation level used if none is specified?
Is it possible to set an application wide default isolation level that would be used by the TransactionScopes?
...
Can you group unit tests within a single testproject in VS2008?
For instance - test1 and test2 belongs to group A.
Test4 and test5 belongs to group B.
I don't want the tests in group B to run unless I explicitly select them.
This is because not all tests are supposed to be included in the automatic testing.
EDIT :
Rephrasing second pa...
We are writing a custom tool using TFS client APIs, to connect to TFS, to fetch work items for a project etc.
We are querying the work item store, using WIQL.
Given the server path of a file, what is the easiest query to get the work items linked to this file from TFS?
...
Hello there,
does anyone know a smooth / fast way of removing transparency from e.g. pngs/tiffs etc and replacing it with a white background?
Basically what I need this for is I need to create PDF/A compatible images, which may, according to the spec, have -no- transparency (and therefore a fixed white background is fine).
Any ideas /...
I'm making a small scripting engine in C# and I was wondering, is there some sort of #compiler directives or some sort of other header-like file I can compile with my script files to define what Managed Dlls my script files are referencing?
public static CompilerResults LoadScript(
string SourceCodeFile, string[] References)
{
v...