visual-studio-2008

get the text under the mouse pointer

孤者浪人 提交于 2019-12-11 04:18:20
问题 i am relatively new to C#. can anybody please tell me how to display the tool tip on the text editor...just as VS intellisense expands a particular method when we move the mouse over it??? Since i am Developing an adding i want the tool tip to be displayed on document (there is no form associated with it) how to get the text under the mouse pointer thanx in advance 回答1: Off the top of my head look at the ToolTip class. I am sure you need to supply it with the x,y coordinates of where you want

Add Checkbox to header of gridview

梦想与她 提交于 2019-12-11 03:53:40
问题 I have following gridview: I wanted to put checkbox to header of this grid, means below or besides Maths,Physics,Chemistry,Biology Header Text. Code for Grid: <asp:GridView ID="GvSearch" runat="server" CellPadding ="3" Width="100%" AutoGenerateColumns="False"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblCity" runat="server" Text='<%# Bind("City") %>' ></asp:Label> <asp:CheckBox ID="ChkCity" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText

Override visual studio syntax highlighting through a plug-in?

£可爱£侵袭症+ 提交于 2019-12-11 03:48:40
问题 This is related to this question I asked earlier about syntax highlighting user-defined blocks of code. Is it possible to write some kind of plug-in for visual studio where it would override how it does syntax highlighting? Where would I start looking for that? Thanks! 回答1: This is possible. Many VS addins, such as Visual Assist, Resharper, Code Rush, etc. have their own extensions to how the syntax highlighting in Visual Studio works. If you want to write your own.... Take a look at the page

Visual Studio 2008 class view missing classes

落爺英雄遲暮 提交于 2019-12-11 03:45:43
问题 I've just ported a large project from an older version of Visual C++ to VS2008 and notice that the class view is mising a bunch of my classes. Looking at the solution view, the header files declaring those classes are present, so I'd expect to see them in class view. Any reason why certain classes would be excluded, or is there any way to refresh class view to include all the classes in the solution ? 回答1: Have you tried deleting the .ncb and the .pch, and all the .o files, then a full

Visual Studio 2008 resource editor is annoying with PNG's

偶尔善良 提交于 2019-12-11 03:43:12
问题 I have a resource DLL project in VS2008 that contains mostly PNG images. Every time I import a new image to the resource file, I get an RC2170 error: bitmap file is not 3.0 format, for every PNG that was previously in the resource file. Thing is, all of those iamges have complied ok before I add the new image. Only after I remove all of those images from the resource file, and import them again (unchanged), it would compile. This behavior repeats itself for every new PNG file added, and as

How to use Visual Studio 2010 C++ tools in Visual Studio 2008?

孤者浪人 提交于 2019-12-11 03:39:40
问题 If possible at all, does anyone know how to use the full c++ toolset shipped with Visual Studio 2010 (compiler/linker/sdk) in Visual Studio 2008? Would changing all directories listen under Options->Projects and Solutions->VC++ Directories be sufficient, or is there more to it? And suppose I try it this way, are there any caveats to it? 回答1: I kinda forgot about this question until today a friend was saying how great C++0x was. I'm still in love with VS2008, much more than with 2010 which is

System.Web.Hosting not found in VS2008

穿精又带淫゛_ 提交于 2019-12-11 03:39:01
问题 I am trying to make a Cassini-like server for a particular asp.net web application. The Client is not happy with the Cassini interface, so I am just expanding the Cassini code, adding new features, and providing a fresh look to the UI. Now the problem I am facing is, all the files from Cassini source use the System.Web.Hosting namespace. Visual Studio throws me an error saying: The type or namespace name 'Hosting' does not exist in the namespace 'System.Web' (are you missing an assembly

WinForms - Localization - UI controls positions different in additional Culture

落花浮王杯 提交于 2019-12-11 03:36:05
问题 I did my UI settings.Original language is English. After that I set Localizable property to True. Copied original resx file to frmMain.de-De.resx (for example). Translated all strings. Everything works. But now I would like to change positions of controls. After that changes are visible only for original/primary Culture (En). When I change Culture to de-De then UI controls are on the "old positions"(?!) Is this normal behaviour? :O I'm unable to change controls positions on my form after

Recursively expand collapsed regions in Visual Studio? (outlining)

左心房为你撑大大i 提交于 2019-12-11 03:23:09
问题 I'm using Visual Studio 2008, and it doesn't seem like once I have collapsed all the regions, I can expand ALL levels of a certain region with one click/command. Notepad++ has this functionality when you ctrl + click on a collapsed region, it recursively expands all regions within it. It's awesome. Anyone know of a plugin or macro that has this functionality? I'm using a custom language, aka not C++/C# btw thanks! 回答1: I am working with VS 2017, but I think it works the same: By default, ctrl

Python: Broken toolchain error while installing numpy

本小妞迷上赌 提交于 2019-12-11 03:16:26
问题 I am using Python 2.7.3 and trying to install the package numpy on my windows machine but I am getting a Runtime error that says Broken toolchain: cannot link to a simple C program. I read the solution here but it was specific to Mac OS. I tried installing numpy with pip as well as the setup.py install option but both the methods give the same error. I recently installed Visual Studio 2008 and Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 (this is necessary as VS 2008 does