we want to have resharper complain and show errors every time we have a unused parameter to make sure the developers keep code clean and remove stuff that is not being used
the one area where this falls over is events, because we have a lot of case where you are not using the sender object in the basic pattern.
(object sender, EventArg...
I'm having an issue with duplicates being inserted on refresh. Our team here decided using 'if exists' in sql is the best way to stop duplicate inserts. However, what if a parameter is set to null?
string cmdText = " if (not exists(select * from table where field1 = @field1 and field2 = @field2 and field3 = @field3)) Insert into table(f...
I just cannot for the life of me figure out why my build event macro is no longer firing. Any ideas?
Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module EnvironmentEvents
Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As Stri...
Does anyone know of a program which works like a Adobe PDF Reader except for .NET solutions?
I develop in a virtual machine but there are times when I just want to open a solution and browse the files. I have no intention of doing any development, I just want to view them.
Does this app exist, or is Notepad++ my best option?
Thanks!
...
This question HAS had to be asked before, so it kills me to ask it again, but I can't find it for all of my google and searching stackoverflow.
I'm porting a bunch of linux code to windows, and a good chunk of it makes the assumption that everything is automatically initialized to zero or null.
int whatever;
char* something;
...and...
Are there any 3rd part WinForms controls out there that give me ajax type effects.
For example I want an effect where if I have a list box or a DataGrid control and someone clicks a field to mark it as complete I want that field to fade away not just instantly disappear.
The standard controls get the job done but are not the best looking...
I have a web application which is importing DLLs from the bin folder.
const string dllpath = "Utility.dll";
[DllImport(dllpath)]
Now what i want to do is first import the DLLs from a folder not in the current project but at some different location.
The path of that folder is stored in a registry key.
How should i do this?
Than...
I have a Visual Studio Setup project which has a Application Folder DefaultLocation set to[ProgramFilesFolder][Manufacturer]\[ProductName]. I would like to change this to include the software's version number, like [ProgramFilesFolder][Manufacturer]\[ProductName][Version], but Visual Studio doesn't seem to support it.
Is there an altern...
The following does not work:
var EtxtDOB = $get('<%=FormView1.FindControl("frmEditPerson").FindControl("EtxtDOB").ClientID %>');
How can I find this nested control in javascript?
...
I added this well documented macro to MyMacros, Environment Events in VS 2008 Macros in order to cancel failed builds:
Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As String, ByVal ProjectConfig As String, ByVal Platform As String, ByVal SolutionConfig As String, ByVal Success As Boolean) Handles BuildEvents.OnBuildProjCo...
It looks to me like choosing Browse.. for the type of a setting should offer a list of available types in the assembly to select from. My designer (VS 2008 under vista) seems to hang a bit before doing nothing.
Am I correct in how this feature should work? Any ideas on why mine isn't?
Is there a way to manipulate global settings for t...
I've installed Git to do some development using Visual Studio 2008. Most of the work will be new development but we do have some old projects from prior to VS2005 that I want to bring over into the new repository. There is an existing thread about general VS/Git integration but my question is limited to the .gitignore file and Visual St...
I've been tasked when integrating a web form into Oracle CRM on Demand (Siebel) using web services. I've been given the WSDL, and some high level documentation from Oracle.
Well, I knew I was in trouble when I tried to add the WSDL as Web Reference and I was asked to enter an URL. I have the WSDL file in the root of the project, but I...
I'm trying to build a C# solution in Visual Studio 2008 written by other programmer. Visual Studio throws the following error:
Exception occurred creating type
'SoftwareFX.ChartFX.Chart, ChartFX,
Version=6.2.1342.0, Culture=neutral,
PublicKeyToken=a1878e2052c08dce'
System.ComponentModel.LicenseException:
Couldn't get Design...
Is it safe to use the beta versions of Visual Studio?
By safe I mean, while developing any project in this studio, is it probable that it may cause some losses to my project? Or any other kind of risk?
Should I just use the studio 2008 and
wait for the stable version of Studio
2010?
Purpose of the question: I am doing my gradu...
I can see background images in design time. But can't see images in run time. I am running my application from asp.net development server.
I am applying background images by using css.
What is the solution?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BackgroundImageTest._Default" %>
<!DOCTYPE ...
How can I use the tools included in the VS command prompt (Programs | MS Visual Studio 2008 | Visual Studio Tools | Visual Studio 2008 Command Prompt) from any command prompt (ie without calling vcvarsall.bat) or program?
...
Hi I have create a sample java application and created a jar file. Now I want to create installer for windows application using visual studio.
How to create windows installer for java application using visual studio.
Also I want my installer should check jre version. and my application should start on boot up of the machine.
Thanks
Sun...
I made some changes in the sourcecode for a project hosted on codeplex.
I'm not an author or editor on the project - just a user.
But I'd like to submit the changes as a patch.
Codeplex has a nice way to do upload the patch...
How can I generate a patch or a diff, from within Visual Studio? How can I generate something that another...
not able to access many xml element after mounting to the XMLDOM in VS 2008 it is not showing up in intelligence
here is the code written in default.aspx
<html>
<body>
<h1>W3Schools Internal Note</h1>
<p><b>To:</b> <span id="to"></span><br />
<b>From:</b> <span id="from"></span><br />
<b>Message:</b> <span id="message"></span>
<script...