visual-studio-2005

Opening a file in C# using a modeless openfilediaglog box

Hey everyone. I'm trying to make a video recording application for a project and was wondering if there was anyway to make the OpenFileDialog open up in a modeless diaglog box or would I have to make my own custom version? The reason I ask is the ShowDialog() function freezes my video. Thanks in advance for the help. ...

SQL why wont this let me select a blank value and a value?

I have the following UDF. CREATE FUNCTION [dbo].[udf_GenerateVarcharTableFromStringList] (@list varchar(MAX), @delimiter char(1) = N',') RETURNS @tbl TABLE ([Value] varchar(200)) WITH SCHEMABINDING AS BEGIN DECLARE @chrind INT DECLARE @Piece nvarchar(4000) SELECT @chrind...

C#: ArgumentException - XYZ.DLL does not contain any UserControl types

I have moved my development PC to another location, and without any changes to the source I now get the above exception. What could the be problem? I am using C# in VS2005. ...

SSIS packages 2005 & 2008 editable with what versions of Visual Studio?

I know that in order to edit SSIS packages you need the same version of BIDS or Visual Studio. With Visual Studio 2010 is there any change in the ability to open older SSIS packages or do I need to have VS2005 and VS2008 installed along side my VS2010 installation? TIA J ...

Issue with Excel automation in C#

Hi, I am dynamically creating an excel file with some list options using C#. There will be 3 or more columns with drop down list. Now the issue is that in some columns there will not be values in some rows. But the drop down list shows all the empty column values(empty) also. Is there a method by which I can filter the excel column wi...

What is happening with resharper in vs2005

the original code is like this. else { continue; } } break; } case UserType.Individual: { ...

AnkhSVN for Subversion does not show Source-Code-Control related icons

We moved our projects (SQL Server and .Net) from Visual-Source-Safe to SubVersion. We have installed Tortoise SVN and AnkhSVN clients on the location machine. When I lock a file, the icon in Windows Explorer changes, but there is no indication in Visual Studio of any lock. Visual-Studio Windows Explorer How do I fix this? ...

how to notify my Program when database updated ?..

Hi there, I have a C# program that queries the database(SQL Server) for some value. Currently the application queries the database every minutes to make sure that the table is up to date. What I would like to be able to do is that the querie is only done when the database has been changed/updated.How do i notify my program when some t...

Visual Studio Intellisense crashes due to macro file

In Visual Studio 2005, I have a .h file with preprocessor macros in it. They are apparently too complicated for Visual Studio's Intellisense because they make Visual Studio crash if they are present whereas it works fine if they are not. Does anyone know of a way to prevent Visual Studio parsing the file for Intellisense but still includ...

Visual Studio Project Migration

Hi, Is there a way where I can transfer a ASP.Net application completely to a new system? I have copied the project directory before and it usually works, but I have issues with "References". I'm trying to take over a project from a person and he gave me all the files ( including the .sln files ), but I've got a bunch of reference erro...

How do you programmatically allow C# form buttons to be available for usage on a form?

I have a C# visual studio 2005 form ... On the form I need to programatically allow buttons to be available to be available. e.g. a.) available for usage if a file is open b.) unavailable for usage if a file is not open. Ideally I want to do something like word does -- like word, where the buttons are greyed out if you they can not be...

Why might the Visual Studio 2005 debugger fail to retrieve symbols for Windows 7 x64 from the Microsoft symbol server or my local cache?

I have just been issued with a Windows 7 (64 bit) machine at my code shop. We run Visual Studio 2005. I filled out the Tools|Options|Debugging|Symbols panel, pointing to the Microsoft Symbol Server and caching to C:\windows\symbols, and started a new instance of our app. There was a pause as the MS symbol server was contacted, then th...

Detect Autoscrollposition value change in panel

How to detect if the Autoscrollposition value changes in the panel1? For example, textbox1 and textbox2. which added in panel1. The autoscroll property is set to true. I am only interested in detecting when the value of panel autoscrollposition changes. The above for dynamic textboxes which are incremented. Software in use: C#,...

Render a texture to a texture in Direct X using C#

Hey everyone, I am currently rendering an AVI stream as textures and displaying them out to the panel in C# using Visual Studio 2005 with the June 2010 version of the Direct X SDK. I would like to put some text onto the texture as a watermark or a logo on the bottom left. My question is how would I be able to save out the texture with t...

Cannot localize (translate) a custom control in .NETCF 2.0

I am translating a compact framework 2.0 windows form in Visual Studio 2005. To do that, I change the language of the form to German (the target language) and edit/resize the controls on the form. This creates a resources.de.resx file containing the translated strings as expected. However, there is a custom control on the form, which ha...

Can Visual Studio tell me how many files I have open?

Assume I have more than 30 or so open within the Visual Studio IDE. Too many to show without scrolling, which makes a manual count laborious. I can do Window -> Windows to list them in a popup but it doesn't show a count. Does it show somewhere (like in the status bar) that I'm missing? Edit: Why would anyone need this? Well, I want...

Format a string using a string pattern

Hello, I have a displayFormat pattern "$###,###,###;-$###,###,###;#"( it can be different too) and I want to reformat the value in the AspxTextbox after deleting the ',' on GotFocus and LostFocus events by calling the following JavaScript function : function TextBoxFormat(ctrl, e, displayFormat, charactersToRemove) { var value = ctrl....

Visual Studio 2005 Websites Custom Web Server Radio disabled

Hi All, Can you please help me out. For all my websites Use Custom Web Server option is disabled and I guess because of that I am not able to debug any of the asp.net website on my local pc. It was working well till yesterday, just started to create problems from today morning. Thanks in advance. ...

Configure Visual Studio with UNIX end of lines?

Hi, We would want to have Visual Studio 2005 working on a local copy of a SVN repository; this local copy has been checked out by Mac OS X (and updates and commits will only be made under Mac OS X, so no problem with that), and as a consequence the end of lines are UNIX. We fear that Visual Studio will introduce WINDOWS end of lines. I...

VB.Net 2005, how can I subtract a date from the (current date minus 7 days) and produce a number of days ?

I have a date in the future e.g. 13/10/2008 I need to subtract the current date (today is the 28/09/2010) minus 7 days, so thats 21/09/2010 minus 13/10/2008, which would equal erm, 720 something ? But the current date won't always be 28/09/2010, obviously. I need the code for this. EDIT: When i said future I mean past :) ...