visual-studio-2008

Checkbox onmouseover orange highlight, how to set this programmatically?

Hi, I'm using a checkbox on a winform app. If you mouseover the checkbox an orange highlight appears showing that that control has the focus. If you tab to that control this doesn't happen though the 'Enter' event is fired. My question is, how do I manually set that orange highlight on the checkbox when it has focus, is it a style at...

cache in visual studio 2008

Is there some sort of a cache in visual studio 2008? Because when I remove the code that I do not want, it still shows the same output over and over again. I don't know if I'm still making changes or not. Or is a virus making this one. Even if I remove the event which shows the output, I still see the output, and yes even if it looks li...

Why would Application_Init fire twice when starting debugging in VS2008/Casini?

Why would Application_Init fire twice when starting debugging in VS2008/Casini? Yeah, It's happening in global.asax. Seems fairly random though, only happens once in a while. ...

Compiling x64 dll from x86 using Visual Studio 2008: unresolved external __imp_ symbols

Hello again gurus, I have compiled some external C++ code into a dll, thirdpartycode.dll, using Visual Studio 2008. The code is wrapped in extern "C". Since I am cross compiling, creating a 64 bit dll on my 32 bit machine; I am using x64 as "Active solution platform" in the "Configuration Manager". My thirdpartycode.dll compiles and li...

Port problem in web application in visual studio

My problem i sthat i have created a web application in visual studio 2008 professional edition but when i run it i have to change the specified port every time otherwise it is not woking properly i have also tried to use the assign automatic port option but the result is same. How can i make the setting to use the visual studio internal ...

Is there a way to tell VisualStudio to ignore all compilation errors in a specific css file inside a website project?

I have a dynamically generated css file that contain in addition to the CSS code markup for my generation. Those markup cause VisualStudio to report on compilation errors of the css. Is there any way to tell VS to ignore errors from that file - while kipping it inside the website and keeping it a css file (i do not want to lose the edit...

How can I prevent Visual Studio editor from automatically horizontally scrolling when a breakpoint is hit

In Visual Basic (I've seen this in 2005 and 2008) when you hit a breakpoint or single step and the code on this line stretches past the end of the screen, the window automatically scrolls right so that as much of the line is visible as possible. I can see why this might be useful, but I find it a little distracting as the screen appears ...

Visual Studio for SSRS 2008 - How to organize reports into subfolders in Solution Explorer?

Right now I have a project called reports with several reports. In solution explorer it looks like this: Shared Data Sources -- DEV Reports -- Report1 -- Report2 -- Report3 I want to make it look like this and have the same structure carry over to the report manager website when I click deploy. Shared Data Sources -- DEV Folder...

How to disable the users abilities for the Devexpress GridView

I am using the DevExpress.XtraGrid.Views.Grid.GridView within my Visual Studio 2008 application and thought I limited the abilities of the user but I was mistaken. I am programming in VB.NET but I can easily translate from C#. I went into the properties of the gridview and set ShowGroupPanel, AllowAddRows, AddNewColumns, AllowDeleteRows...

Publish Multiple Projects from a single solution from TeamCity

I have a VS2008 solution with multiple projects in it. I need to publish five of these projects and two of those five needs to be published twice, with two different configuration settings (a simple change to the configSource of a few web.config attributes is all I need to do). I would like to then take the resulting 7 outputs and put 4...

Crystal Reports: How can I avoid nested subreports in this case?

I have a main report which contains user information -- and a subreport that contains multiple items for said user. Question is, I need the main report to duplicate as many times as necessary for the number of users I feed into the DataSource -- how can I do this, so that it results in one large report (containing multiples of the main ...

How to configure Intermediate Output Directory in C#?

I'm trying to organize my workspace, and want my intermediate objects to be put in the ..\build\obj folder in relation to my .csproj file. So I put: <IntermediateOutputPath>..\build\obj\Debug</IntermediateOutputPath> in the .csproj file. The intermediate objects are now put in that location when the solution is built, but the probl...

How Do I Access multiple versions of a dll in the GAC using VS 2008 C# Windows Application?

I would like to store several version of my dll in the GAC and then reference a specific version in the GAC. Is this possible? I've installed 2 version of MyDll in the GAC. I've written an app.config file. I don't think VS 2008 is using it but my app.config is written like this: ...

Automatically Create Constructor Using Fields/Properties in Visual Studio (like Eclipse does)

Is there any way to automatically create the constructor for a class based on the properties in the class like Eclipse does? (Without getting ReSharper). I'm using Visual Studio 2008 (C#). If this is a duplicate, please link (I tried searching). ...

Do you clean up the unused scripts in a Visual Studio MVC project?

I am finalizing a MVC project and have switched to using Google's CDN for jQuery. After doing that, do you delete out the unused .JS files from the scripts folder? ...

.Net RAD IDE - Opensource Preferred

I am looking for a tool that would allow me to use LINQ and build a .Net app rapidly. ...

drive management object, convert MediaType (numerical value) to something more meaningful

Hi, I am using the following code to retrieve information about my local drive: ManagementObject c_drive = new ManagementObject("win32_logicaldisk.deviceid=\"c:\""); c_drive.Get(); driveinfo_lbl.Text = "Type: " + c_drive["Mediatype"].ToString(); What I am curious about is "MediaType" - how do you convert that to something mor...

Why can VS 2008 find a custom tool in XP but not in Windows 7?

Hi, I'm running Visual Studio 2008 SP1 on Windows 7. My company has a build tool that registers itself under the C# node. More specifically it creates this entry in the Registry: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Generators{fae04ec1-301f-11d3- bf4b-00c04f79efbc}\AssemblyName] Other team members are running ...

How do I include a licensing file to a VS2008 bootstrapper manifest to be used in the command arguments?

I am making a custom bootstrapper package manifest for installing iespell. We have a commercial license for iespell that must be included to be used during installation. The setup exe for iespell has a command line parameter which can be used to point to the license file for easy installation. The problem I am having is that when th...

Exception while inserting values in to SQL table through C#..

HI i had manullay created textbox's and then used it for creating a new user. I am using SQL SERVER 2005 for backend and Visual Server 2008 for front.. I have this LoginAccount table which stores details of the new user created. When i Click the button(in which i have written code to create a new user through SQL insert), string str...