visual-studio-2008

How can I disable ReSharper in Visual Studio and enable it again?

混江龙づ霸主 提交于 2019-12-27 11:50:41
问题 I installed ReSharper, and it works in Visual Studio, but how can disable it? Whenever I search in the ReSharper menu I can't find a disable option. 回答1: You can disable ReSharper 5 and newer versions by using the Suspend button in menu Tools -> Options -> ReSharper . 回答2: If you want to do it without clicking too much, open the Command Window ( Ctrl + W , A ) and type: ReSharper_Suspend or ReSharper_Resume depending on what you want. Or you can even set a keyboard shortcut for this purpose.

Go to Matching Brace in Visual Studio?

风格不统一 提交于 2019-12-27 11:33:55
问题 Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it. (VB.NET version of this Question: Keyboard shortcut for Jumping between "If/End If") 回答1: I found this for you: Jump between braces in Visual Studio: Put your cursor before or after the brace (your choice) and then press CTRL + ] . It works with parentheses ( ), brackets [ ] and braces { }. From now on

How should I detect unnecessary #include files in a large C++ project?

喜欢而已 提交于 2019-12-27 10:42:05
问题 I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #include s are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the .cpp file. Are there any good tools for detecting both of these cases? 回答1: While it won't reveal unneeded include files, Visual studio has a setting /showIncludes (right click on a

WCF Fails to generate client proxy

一个人想着一个人 提交于 2019-12-26 06:18:02
问题 I have an odd problem that I just can't seem to diagnose, and it seems to be a PEBCAC thing, but I have spent a good deal of time trying to solve it. I created a WCF service that I host via a windows service. This service has been working fine for a while, and I have a windows forms and a web interface to it. The service was originally developed on XP but I have recently migrated to Windows 7. When I migrated, I found out that the windows security for the service prevented me from using my

WCF Fails to generate client proxy

老子叫甜甜 提交于 2019-12-26 06:16:24
问题 I have an odd problem that I just can't seem to diagnose, and it seems to be a PEBCAC thing, but I have spent a good deal of time trying to solve it. I created a WCF service that I host via a windows service. This service has been working fine for a while, and I have a windows forms and a web interface to it. The service was originally developed on XP but I have recently migrated to Windows 7. When I migrated, I found out that the windows security for the service prevented me from using my

Issue in creating a data driven menu in asp.net

北战南征 提交于 2019-12-25 16:48:33
问题 I am creating a data-driven dynamic menu in asp.net, using sql server 2008 R2 as my database. The parent node, and child nodes at the first level works just fine. but the child node below another child node, the application generate an exception. The c# code for my problem is as follows : public partial class LeaveManagementSystemMasterPage : System.Web.UI.MasterPage { SqlConnection conn; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { getMenu(); } } private void

Visual Studio Warning “Content is not allowed” in ASP.NET project

时光毁灭记忆、已成空白 提交于 2019-12-25 16:24:30
问题 I am just started working as a programmer last month, so there will be plenty of newbie question come from me, stay tuned... I am now working on modify the provided template (from DevExpress) to create new web form using ASP.NET 2.0 on Visual Studio 2008. While the functionality of that web form is there, I am in the process of get rid of ninety something warning message, most of them come from the provided template. One of them puzzled me for a while is this one: "Warning 75 Content is not

how many joins can a sql query have

↘锁芯ラ 提交于 2019-12-25 14:57:26
问题 How many INNER JOIN s can a query tolerate SELECT table0.person_name, table5.animal_name FROM table1 JOIN table0 ON table1.person_id = table0.person_id JOIN table5 ON table1.animal_id = table5.animal_id WHERE table1.aa = input1 AND table1.bb = input2 AND table1.cc = input3 AND table1.dd = input4 回答1: This msdn link provides all of the relevant statistics. Versions of SQL Server after 2005 don't have a hard limit on number of joins, but instead it is limited by "available resources". For any

Generating reports using custom data (html table) not dataset

本秂侑毒 提交于 2019-12-25 14:47:19
问题 I read several articles on this site and many others recommending report generating tools of various kinds but all use dataset as there datasource. This is not my requirement! I need some way to export the data which is displayed in the htmltable on mypage.aspx. user clicks view record a pdf opens (it should contain the data of the html table which is made dynamically) I want to generate a pdf on the fly using a htmltable as a source of data and displaying it a a pdf doc in the browser but

How to bring partial text Bold in a TextBox?

霸气de小男生 提交于 2019-12-25 09:00:04
问题 I have one textbox which has the following text. TextBox1.Text = "The above materials will be delivered at Site. One copy of the Delivery Challan / Invoice to be send to Head Office." In that, I want to make the following text "One copy of the Delivery Challan / Invoice to be send to Head Office" as in Capital Letters and also in Bold. I tried the following coding: TextBox1.Font.Bold = true; But it made all the text as bold. How do I make it? 回答1: Since you're using a web application, you can