visual-studio-2008

How do I move an embedded manifest to external .manifest file?

喜夏-厌秋 提交于 2019-12-11 08:24:20
问题 I have an existing C# application that has a manifest file which is embedded into the exe. How do I change this to use an external manifest that will be included in the setup.msi? I can only see options (in the Project Properties) to create the application without a manifest, or to embed one. 回答1: In solution explorer, try changing the Build Action for the manifest to Content. 回答2: Use the MT utility (part of Visual Studio) to manipulate manifest files. From the online help: > To extract

how to insert id of a databound dropdownlist of one table to another table

穿精又带淫゛_ 提交于 2019-12-11 08:19:03
问题 I have 2 tables, Product & ProductCategory 1 dropdownlist that is databound programmatically to ProductCategory Am working on Visual Studio 2008, ASP.Net Forms Users may create new ProductCategory, ie. product_category_id is auto-incremented I need to do an insert statement I have the following code Question is, how may i ensure that the 'product_category_id' of ProductCategory is inserted into product_category_id of Product after a selection/no selection at the dropdownlist, while displaying

Customize ToolStripMenuItems in c#

北城余情 提交于 2019-12-11 08:15:34
问题 I need to customize the ToolStripMenuItems in my application. Each ToolStripMenuItem that open a submenu has a black arrow near the text. I want to change some colors (MenuItemSelected, MenuItemBorder, MenuItemSelectedGradientBegin, ...) and the color of this arrow too. I've created a class MyColor to solve the first problem public class MyColorTable : ProfessionalColorTable { public override Color MenuItemSelected { get { return Color.Silver; } } public override Color MenuItemBorder { get {

How can I add variables to the Watch window

夙愿已清 提交于 2019-12-11 08:05:50
问题 Visual Studio 2008 Pro: Ok! from the Customize section I added the toolbar commands for Watch,QuickWatch,...to the Debug menu but I want to carefully watch one variable. How do we add it to the Watch? I highlight it and try to add it but it is disabled. I want to be able to first adding some variables of interest to the watch and then start debugging the program. 回答1: You need to be in debugging in order to add variables to the Watch Window. When debugging, you can just right click a variable

How can I use .NET web services from non-standard ports?

两盒软妹~` 提交于 2019-12-11 07:57:57
问题 Our web services are accessed through a router which uses port forwarding to connect to the actual web server. When we are trying to establish a web reference in Visual Studio it seems the .NET framework returns the full URL with a port to Visual Studio for the reference during discovery. Visual Studio then tries to make a connection back to that web service to create a proxy object (or whatever) and is denied because we don't allow access on that non-standard port. Original web service URL

How to use VS2010 built dlls in VS2008

时光怂恿深爱的人放手 提交于 2019-12-11 07:49:57
问题 In my work we have VS2008 . Some partners in the project I work, use VS2010 (can't use VS2008) They have to build a dll based and I have to use that dll in my framework... I managed to build the main app and link the dll's. the app starts, and objects from the VS2010 dll's are created, but the app crashes when i try to delete these objects... Windows has triggered a breakpoint in app.exe. This may be due to a corruption of the heap, which indicates a bug in app.exe or any of the DLLs it has

How do you insert new entries into an Access db table through an ASP.net website?

百般思念 提交于 2019-12-11 07:47:54
问题 I need to insert new records into an Access database. I'm using Visual Studio 2008 and firstly create a asp.net website. I can connect to the information in Access databse using dataview or gridview and can query a particular entry (ie. Proposal No. -brings up all details linking to that proposal). I can then edit the details of that proposal and this would update the Access Db. What I need to do is to have a form that simply enters new details for a new customer. ie. Enter name [____] Enter

Refreshing LinQ2SQL Model in Designer without losing all Properties

坚强是说给别人听的谎言 提交于 2019-12-11 07:46:38
问题 so I'm using LinQ2SQL quite heavily in my current application, and although I have most stuff in partial classes, some things have to be adjusted in the VS Designer (like Accessors for fields I wrap). Then, sometimes I like to name Fields differently in the Model than they do in the DB. So, my problem now is. When going back to changing a already known table I have only two options: Introduce new fields through the designer manually Delete the Table from the Model and newly import it from

EditingControlShowing events firing multiple times

元气小坏坏 提交于 2019-12-11 07:38:47
问题 I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending upon the item selected in the combobox. Then the user hits the Save button and the DB updates (currently via SQL methods in the XSD). Easy enough so far. Here is the

Visual Studio 2008 doesn't recognize Lambda Expression Syntax

假如想象 提交于 2019-12-11 07:38:39
问题 I recently upgraded a Web Application Project (as well as some dependent projects) from .net 2.0 to .net 3.5 using the built in conversion tool. Everything works well such as using MS AJAX 3.5 vs. the external MS AJAX libraries in 2.0. My problem occurs when I tried using the new Lambda Expression syntax. The compiler will not recognize Lambda Expressions as valid syntax. The target frame work version is set to 3.5 in all projects in the solution.I was also able to successfully use Lambda