visual-studio

Add Reference VS 2008 strange issue with paths

I have VS 2008 Team Suite, and use TFS. I have references in 2 folders in TFS: path in TFS: $Arquitectura\Main\ReferenciasFrk\Release\ mapped to: C:\Trabajo\Arquitectura\Main\ReferenciasFrk\Release\ path in TFS: $Arquitectura\Main\Referencias Externas\ mapped to: C:\Trabajo\Arquitectura\Main\Referencias Externas\ I have project cspr...

Same Dependancy property (DP), Multiple classes

Hi, VS has thrown a useless exception which I think is caused by the fact I have multiple DP's in two similar classes with the same name. the classes are add/edit contact so they share a number of properties, my problem is this. I can register a property as: DependancyProperty.Register( /*...*/ ); or: MyDP.AddOwner( /*...*/ ) pr...

Visual Fox Pro, ODBC - I can't see .DBF tables in Visual Studio 2010

Greetings I'm making integration with application that is using ODBC Data Source - Visual Fox Pro Driver. In its dirrectory structure I've got two dirrectories (DANE and TRANS) which contains .DBF files. When I am using Visual Studio 2010 Server Explorer -> Data Connections to connect to DATA .DBF files, everything work fine. The proble...

What's the best way to learn about how to develop macros (syntax, system libraries) in Visual Studio?

I'm working on a C# project that has a post-build event command line that looks like this: for /R "$(ProjectDir)TestData\GoldFiles" %%f in ("*.csv") DO @xcopy "%%f" "R:\Root\$(TargetName)\1.0\TestData\GoldFiles\" /Y This is my first exposure to Visual Studio Macros. I can understand this well enough to know what it's doing. Now...

Disappearing System Tray icons

Im creating a system tray application in visual studio 2010, using C#. When the application starts i create my thread and a system tray icon. THe icon shows, however whenever i mouse over the icon, it disappears ( the application is still running ), and even if i click the button to show all hidden icons, it doesnt display. However, if...

[Visual Studio]How can I update a foreign web reference?

Hi! I have a server where I use Microsoft CRM. MS CRM auto-generate web references. I take over someone else's application code (an application which connects to CRM). I expect to develop on my local machine, but the references they gave me are not up to date. I want to update them using the right-click/update on the reference. But it...

Problem with Setting TAB-CONTROL's tabpages with back color Dynamicallly..?

Code i have used. For j = 0 To dataset4Category(i).Tables.Count - 1 Dim Finder As Integer = Decimal.Floor(((dataset4Category(i).Tables(0).Rows.Count) / 30)) key = dataset4Category(i).DataSetName name = Space(1) & StrConv(dataset4Category(i).Tables(0).TableName, VbStrConv.Proper...

Compiling Visual Studio C# for 64bit

I ran into an issue today because I am developing an application in Visual Studio on a machine that is 32bit. When I build the application and run on a 64bit it errors out. I am using SQL Server Compact 3.5 to store a database. I throw the DLLs for SQL Compact 3.5 into the assembly so when it is installed, those DLLs come with it. I...

SendKeys to another application's form

I created a Process. That one has a MainWindow I want to SendKeys.Send("+F") (CTRL+F) to, but I don't know how to do this. So how is this done? ...

Quick way to remove surrounding backet/parenthese/block in Visual Studio 2010 + Resharper ? (Reverse surround with)

Is there something that can do reverse "surround with"? From: ((Type)myobject); To: (Type)myobject; From: if/while/try/using... { lots of code here.... } To: lots of code here.... ...

how to edit user's profile variable (from web.config) while specifying user?

This is how I edit the profile variables for a currently logged in user: Profile.variablename = "this"; How can I do the same thing, but specifying the username whose profile variable I want to change, as opposed to just the currently logged in user? Something like Profile.variablename.("username", "this") is what I'm looking for. I'm...

Visual Studio does not honor include directories

I have been in this situation quite a few times where visual studio does not honor the Additional Include Directories when it comes to lib and header source files. For example, I just downloaded MyGUI source code and made sure the include directories were correct. I even put them to absolute paths, Visual Studio still complained that it ...

Detect an open project in visual studio

I'm creating a visual studio add in that adds files to the current project that's open. How can I detect what's currently open? As I need to retrieve the folder/file location. ...

How to bypass "Visual Studio Just-In-Time Debugger" prompt

Visual Studio Just-In-Time Debugger prompts to select "Possible Debuggers", only "New instance of Microsoft Visual Studio 2010" is available, I tick "Set the currently selected debugger as the default", click "Yes", but, the dialog keeps being displayed every time. I am debugging JavaScript in IE8 on Windows 7 x64. How do I bypass th...

How to show all videos in one page, or other way to get video links in listbox

I need help with one website: http://www.lockerz.com/p/watch/all that contains videos to see, like YouTube, and the videos are divided in pages,but I want to display all videos in one page (or maybe you know some other way to get all videos links to listbox) and in the source of this page I got this part of the source: input id="vid_cou...

VSIX: Getting DTE object

My Visual Studio package requires the use of an EnvDTE.DTE variable, but it always gets back as null. After reading up on many hacks, all of them say to use the OnShellPropertyChange() method (IVsShellPropertyEvents), but sometimes it just never fires - as if my extension never finishes loading. I'm using VS2010 and checking against bot...

How to debug a program when it crashes w/out exception?

One of my programs crashes periodically, but I don't know why. I'm running it in debug mode, but nothing pops up. The program just suddenly exits. I've had other bugs that do throw an exception...but not this one. Is there a magical way of catching it or something? ...

Designing unit test cases for an application which manipulates XHTML

I am working on an application which would take an XHTML. <documents> <document> <span class="style1"> This is some text1 </span> <span class="style2"> This is some text2 </span> <span class="style3"> This is some text2 </span> </document> </documents> The values for class attribute are basically styles. Those styles are ...

Generating redistributable Visual Studio project with cmake

Hi, is it possible to generate Visual Studio projects that are redistributable with CMake? The project file in question are examples/demos of our library. We don't want that our customers have to install cmake (and learn what to do with it) just to compile a few examples. The problem with CMake generated project files is that they co...

Play Sound Channels

hi i am creating an audio editor. i want to play audio(wave) channels(R or L) separate. how i can do this. ...