visual-studio-2010

How to use an Items Collection Editor on a custom UserControl (.Net 4, Winforms)?

匆匆过客 提交于 2021-01-21 05:43:23
问题 I created a UserControl that contains a custom ToolStrip Control . While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as it is logically embedded in the UserControl . So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns the items of the ToolStrip. Now, programmatically the items of the ToolStrip can be edited, by using the UserControl.Items property, but I cannot do the same in the

Lock down placement of panes from Visual Studio

ε祈祈猫儿з 提交于 2021-01-20 19:00:31
问题 Ok, if you're like me, you've accidentally dragged one of the many, many panes in Visual Studio around and spent some tedious time getting things back in order again. Is there any way to lock down all the panes in Visual Studio so they cannot be dragged and placed elsewhere ? 回答1: As far as I know, no. But everything for getting for working with tabs and tab groups is inside the "Window" menu item in VS. But if you want to reset everything back to the way it was why not try: Window -> Reset

Lock down placement of panes from Visual Studio

試著忘記壹切 提交于 2021-01-20 18:59:07
问题 Ok, if you're like me, you've accidentally dragged one of the many, many panes in Visual Studio around and spent some tedious time getting things back in order again. Is there any way to lock down all the panes in Visual Studio so they cannot be dragged and placed elsewhere ? 回答1: As far as I know, no. But everything for getting for working with tabs and tab groups is inside the "Window" menu item in VS. But if you want to reset everything back to the way it was why not try: Window -> Reset

How do I open a project without a .sln file in Visual Studio?

帅比萌擦擦* 提交于 2021-01-20 16:46:18
问题 I was writing this program all in Vim and now I'm thinking of moving to Visual Studio, but since I didn't start in Visual Studio in the first place, there is no .sln file to open from. How should I open such a project in Visual Studio? 回答1: If a *.csproj file exists, you can build a new solution by Visual Studio at first. Next, you can open this *.csproj file in Visual Studio. 回答2: If you have a web project (without a .sln), you must do: Menu File → Open → Web Site... And choose the folder

How do I open a project without a .sln file in Visual Studio?

拟墨画扇 提交于 2021-01-20 16:44:28
问题 I was writing this program all in Vim and now I'm thinking of moving to Visual Studio, but since I didn't start in Visual Studio in the first place, there is no .sln file to open from. How should I open such a project in Visual Studio? 回答1: If a *.csproj file exists, you can build a new solution by Visual Studio at first. Next, you can open this *.csproj file in Visual Studio. 回答2: If you have a web project (without a .sln), you must do: Menu File → Open → Web Site... And choose the folder

How to install GLUT on a 64 bit windows 7 for MS VS2010? [closed]

拜拜、爱过 提交于 2021-01-20 14:29:52
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . Can someone help me with a step by step tutorial on how to install GLUT on a Windows 7 64 bit system for MS VS2010? 回答1: Your GLUT download will come with .h files, .lib files, and .dll files. Place the .h files

Ctrl+K, Ctrl+C is a command no longer working in Visual Studio 2010

五迷三道 提交于 2020-12-31 04:44:29
问题 I am using Visual Studio and Resharper 8. For some reasons, my favorite shortcut Ctrl + K , Ctrl + C or Ctrl + D no longer works. Indeed, the application shows in the status bar the message: The key combination is(Ctrl K Ctrl C ) is not a command . Any ideas how to reset them? Many thanks. 回答1: Very strange problem. Yes, it is possible to edit the command in Visual Studio. Select Tools and then Options . Once the window is shown, select the Environment option group and then Keyboard , as

Ctrl+K, Ctrl+C is a command no longer working in Visual Studio 2010

*爱你&永不变心* 提交于 2020-12-31 04:44:27
问题 I am using Visual Studio and Resharper 8. For some reasons, my favorite shortcut Ctrl + K , Ctrl + C or Ctrl + D no longer works. Indeed, the application shows in the status bar the message: The key combination is(Ctrl K Ctrl C ) is not a command . Any ideas how to reset them? Many thanks. 回答1: Very strange problem. Yes, it is possible to edit the command in Visual Studio. Select Tools and then Options . Once the window is shown, select the Environment option group and then Keyboard , as

Access current code pane in Visual Studio Extension

穿精又带淫゛_ 提交于 2020-12-29 05:26:26
问题 Im writing a visual studio (2010) extension with a right click menu whilst in a code view. I want to be able to examine the current code from my menu item event handler but havent been able to find somewhere in the object model to do this. How do i access the code in the current window in a visual studio extension? EDIT Heres the code i used to get the current document text DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE ; TextDocument activeDoc = dte.ActiveDocument.Object() as

Integrate Google Protocol Buffers .proto files to Visual C++ 2010

独自空忆成欢 提交于 2020-12-24 16:18:36
问题 I've added a custom build step to my Visual Studio project files which generates the google protobuf .h/.cc files from the .proto input files. But I've been wondering if it's possible to start a compile only if the content of the proto files has changed? Is there a way to tell VisualStudio from a custom build step exactly that? What is the optimal way to integrate proto files into a visual studio build solution? At the moment, at every build the .proto file is updated which then also updates