visual-studio

Determine if Form has focus in Visual Studio designer

I'm really not sure how to start on this one. I need to know if the form has focus, which I do using ContainsFocus in code. However, this does not seem to work in the designer. Any suggestion? ...

.NET/ASP.NET vs Java on ADVANCED Features

Most comparisons I can read on the internet are about the syntax whereas it doesn't matter much. I care more about advanced features. For example, I read on .NET about these features: Partial Class .Net support not java http://stackoverflow.com/questions/2501736/java-partial-classes Adaptive Control Behavior http://msdn.microsoft.com/e...

How to update assembly assembly references in a web site?

I'm making a build using FinalBuilder Pro 7. I have an asp.net web site and I'm trying to use FinalBuilder's "Precompile Asp.net 2.0 Application" action. Well, It fails. To build it successfully I need to run Visual Studio, open the web site and either build it manually from within VS or manually update all references. After that it wo...

Changing TabControl tab title text background color c++

I am using Visual Studio 2005, C++, and I have a tabcontrol with a couple tabs. I have changed the color of each tab to have a back color of Transparent, to match the color of the rest of the program (Control grey), however the color behind the text for the title of the tab is white. Is there any way to change this? ...

OpenNETCF.Net.Networkinformation Examples - Querying WiFi Information

I've started playing with the OpenNETCF Framework to capture information related to the WiFi connection available on the device I am writing an application for. I found a very usefull example at http://msdn.microsoft.com/en-us/library/aa446491.aspx but found that: a. I could not get the MAC address for the AP I was currently connected t...

Adding a reference to a .net library (dll) from a Silverlight project

Is there a way to do this? I have a library with 'helper' code wich I want tp use from a Silverlight project. I don't know why, but Visual Studio won't let me add the reference even though there's nothing prohibited in my library (like DataSets) I don't want to write all that code again, so I was thinking maybe creating a Silverlight c...

Can crystal reports display input in html form?

If I have a varchar column in a SqlServer db containg html, is there any way that crystal reports can display it the way a brower would? For example, if the field contains the string <b> <u> This is my text. </u> </b> crystal would know to display it as This is my text. I am using the crystal reports that comes with vs2008. ...

how do i edit a masterpage div from child page?

what's the DIV equivalent to this command? ((Panel)this.Page.Master.FindControl("Panel1")).Style.Add("display", "none"); This works great with a panel but I can't find the variation for doing the same thing with a DIV who's ID I know. anyone know? thanks in advance for the help! ...

How to tell if a LINQ to SQL query is translated to a SQL statement or not?

We use LINQ to SQL extensively, and one of the biggest performance pitfalls we've run into is situations where a query can't be converted to SQL, and so an entire database table gets loaded into memory and the query performed by .NET. For example, this query Dim Foo = (From c in Db.Contacts Select c Where c.ContactID=MyContactID) tran...

What are the hidden gems of Resharper 5?

Possible Duplicate: What is your favorite use of Resharper? What is your favorite feature/shortcut/template of Resharper 5 that is not obvious but extremely useful? ...

VS2010 Find and Replace

I need help using regular expressions using Find and Replace in VS2010. I want to Find request("somevar") and replace it with html_encode(request("somevar")) somevar will be a different for each request("") Thanks. ...

Why could an enum type be used without defined

I am using VC2008 as my complier, and it is surprised to me that an enum could be used without defined: void func(enum EnumType type) { } Code above could be compiled and run without a problem, could anyone explain why it works? Update: I could define an empty enum in C++, as follow: enum EnumType {}; ...

why codeplex doesn't work with team explorer whereas it works with subversion interface ?

I have used team explorer to upload to codeplex many times. And since a few days I cannot do so anymore and no announcement says anything about maintenance. Subversion interface works but I want to use team explorer for some specific contexts I cannot use subversion. ...

how to install mysql connector to work with visual studio

i already install mysql 5 in my system and visual studio professional. and everybody work fine but how i can connect mysql database in server explore using installing connector when i download connector for mysql i get the rar. the rar have some code but i not know how it work are anyone tell me what i do to use mysql in my server explo...

VS2010 (Express) debugger trapping Ctrl+C in Console app

The following has been edited. Hans seems to have retracted his answer, but his questioning has helped me to narrow down the problem statement: Extra Clarity I do not want to modify the behavior of Ctrl+C. I'm not looking for a work around. I simply want the debugger to NOT break when Ctrl+C is pressed during a debugging session. Pl...

Overlay graphics (aka adornments in VS2010) in VS2008

Hi everyone, I'm writing an add-in for both VS2008 and VS2010 and I'd like to have graphical enhancements that appear on top of the code (similar to Resharper/CodeRush). Doing so in VS2010 is relatively easy using adornments, however, how do I do it in VS2008? Anyone knows a good resource/article for something in that spirit? I know th...

Mixed Mode Authentication (SQLMembershipProvider )in TFS 2010

Hi everybody. I'm new to TFS 2010 (Team Foundation Server 2010) and I'm looking forward to authenticate users in TFS using Mixed Mode Authentication. I mean using Windows Mode Authentication and SQL Authentication with SQLMembershipProvider and SQLRoleProvider. Is this possible? Thanks in advance! Gonzalo ...

Build Succeeded, but no .lib file gets created

Hello, I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it has a bunch ...

Xoreax Incredibuild alternatives ?

Hi guys, Does anyone knows if there are some alternatives for the Xoreax Incredibuild, this tool is powerful but also too expensive for me. I have project written in c/c++ with about three hundred thousand lines of code and using VS2005 to compile my code is just awfully slow. Thanks to everyone. ...

Wrote to a file using std::wofstream. The file remained empty...

I wrote the following program using VS2008: #include <fstream> int main() { std::wofstream fout("myfile"); fout << L"Հայաստան Россия Österreich Ελλάδα भारत" << std::endl; } When I tried to compile it the IDE asked me whether I wanted to save my source file in unicode, I said "yes, please". Then I run the program, and myfile ap...