hI,
I am working with a treeview in C# using visual studio 2005 and want to find a tree node and add nodes below it upon a button being pressed in my windows forms application.
I have tried using treeView1.Nodes.Find("My_Text", true);
where "My_Text" is the text associated with the node under which i want to add mode nodes.
However I ...
I am trying to utilize the AttachmentCollection Class in C# and when I try to create a new instance of it it gives me an error saying "Error 32 The type 'System.Net.Mail.AttachmentCollection' has no constructors defined"....
Here is what I was trying, how to a create a new instance of this if there are no constructors defined ?
Attachme...
At first I was just looking for the difference between Resource and Embedded Resource; then I noticed all these other Build Action types: Compile, Content, Embedded Resource, ApplicationDefinition, Page, Resource, SplashScreen, and EntityDeploy.
I understand some of these but some are more vague and a clearcut definition would be helpfu...
I've been explained there is a Macro which iterates through all the menus. Having checked CodeProject, and various places on the web I'm out of luck so far.
Does anyone know any better?
Thanks
Beth
...
Hello,
how can I automatically merge and minify multiple Javascript files, as well as minify my CSS when building my ASP.NET MVC application in visual studio? Are there any build scripts/tools that do this?
...
I'm working on a project that is requiring me to add multiple user controls to a panel. What I would like to do with these custom controls is highlight the currently selected control and low-light the others. My problem is that my custom controls aren't receiving the GotFocus/LostFocus messages. Am I missing something here?
This is how ...
Hi, I've got a VS 2008 SP1 solution with multiple projects. Two of the projects appear in the list, but they have a folder icon instead of the normal project icon. The folder is grayed out and I can't expand the folder. The files are definitely available and security is fine.
I edited the SLN file and removed the projects, then re-...
I am trying to get Refactor! for ASP.NET, CodeRush Xpress and Resharper play together. I installed Resharper, then CodeRush Xpress and then Refactor! for ASP.NET.
I can't seem to get any menu options for Refactor! or CodeRush. The bracket highlighting is working so I know that it is loading, but the smart tag will not appear (the thre...
Background: I have a Visual Studio 2008 solution containing three different web application projects. If I right click on the solution, choose "Set Startup Projects.." and then choose "Multiple Startup Projects", I am able to fire them all up at once when I hit F5 (Start Debugging).
Desired Behavior: What used to happen (until it unexp...
I am doing a lot of refactorings with Resharper.
It would be really nice if there was a way to tell Resharper to fix everthing it finds as it sees fit.
Anyone know a way to do that?
...
Hi,
I'm an experienced java vet learning C# + .NET. I'd like to know how I can configure my IDE(VS2008) / solution to step into another library's source code from my own project / solution.
For example:
- I've created my VS solution "MyWidgetSolution"
- I've added references to commons-logging-net / any open source c# library
Whil...
Hi,
in VB.NET it is possible to omit parentheses when you call a parameterless function. However this can be very confusing because developers could think that a statement is accessing a property instead of a method. this could result in a performance drop if you are calling the method again and again instead of storing the result in a ...
I am having trouble getting x64 compilation to work on Windows 7 RTM (64-bit) with Visual Studio 2008 Professional (both with and without SP1). I have not installed the Windows 7 SDK, as Microsoft suggests might be the issue. The problem is that there are no x64/64-bit choices in the Configuration Manager of Visual Studio.
I do not hav...
I'm moving my C++ codebase from Visual Studio 2k3 to Visual Studio 2k8. Code contains
#pragma optimize( "a", on )
MSDN says that it means "assume no aliasing". Later versions of VS refuse to compile this and MSDN doesn't seem to say what to do with code containing this #pragma.
What does "assume no aliasing" mean and how to I make a ...
I know that unit testing is desirable, and I am interested in doing unit testing. The only problem is I have no idea how, or even where to start really. So my question is: How do I learn about and start unit testing? Specifically I frequently write Java code in NetBeans and C# code in Visual Studio and am interested in what tools to u...
There must be a way to find out who checked out the file directly in Visual Studio without having to open the VSS client and navigate to the file.
Right?
...
Hi folks.
I have recently learned of the UseHostCompilerIfAvailable option. I have set it to false hoping it will stop intermittent build failures on VS part (which never occur when building with msbuild on the command line).
Well, builds do not fail, but now VS seems to completely ignore inter project dependencies. Meaning it always b...
If I start my self written app from the explorer it works fine.
If I try to start it in visual studio(F5), it crashes at some point.
It is also not dependant on the working directory!
It is quite annoying, because I cannot debug that way.
(I could try attaching to the process after launch, but....)
Can anyone point me into a direction...
This happen after I installed the ReSharper.
It's a problem that if I fix for one the other is going to alert and vice-versa.
private readonly System.ComponentModel.IContainer _components;
R# tries to add readonly
if it does VC# gives this warnning(not error)
Warning 1 Field
'MFA.Visa.Form1._components' is never
assigned to,...
I am creating a CAD like program, creating modelvisual3D objects. How do i do collision detection between my objects(modelvisual3d) using MeshGeometry3D. Do i have to compare every triangle in the moving object against the still standing objects?
What will be my best way to do collision detection?
...