visual-studio-2012

Exporting displayed columns in dataGridView to Excel

不羁岁月 提交于 2019-12-23 05:37:06
问题 I may be blind, but this is a little different than the normal export-to-excel. I've created a solution and would like to know if this is the best way. Or even if there is another way to do it. Background: WinForms, VisualBasic, VS2012, N-Tier (backend is DB2). My DTOs are set up in order of the DB2 tables. My users want to see the fields in a certain order within the DGV AND be able to export the fields in the same order. Users can also rearrange and hide columns. Hidden columns should not

How to notify the editor about document changes

和自甴很熟 提交于 2019-12-23 05:25:07
问题 I work on a custom project system and I have an issue with renaming items. The project system implementation is based on MPF and renaming items via the solution explorer worked more or less without any problems, but... When an item gets renamed, I also update information which are stored in the file itself. In case the document is opened by the code editor, the text in the editor doesn´t get refreshed (only the document window´s caption changes to the new filename). If I save the open

How to build a solution from the command line with VS2012 Express?

无人久伴 提交于 2019-12-23 04:45:32
问题 How to build a VC++ solution from the command line with Visual C++ 2012 Express ? 回答1: Open a "Developer Command Prompt for VS2012", located in the "Microsoft Visual Studio 2012 --> Visual Studio Tools" in "All Programs". Type msbuild /help to have documentation. Example: cd to your solution folder. type MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release /p:Platform=Win32 来源: https://stackoverflow.com/questions/20065446/how-to-build-a-solution-from-the-command-line-with-vs2012-express

Debug XBAP hosted in WPF Application

我们两清 提交于 2019-12-23 04:45:14
问题 I have a WPF Application (say, WPF.exe) with multiple tabs. In one of the tabs, I display a *.xbap using: WebBrowser tag. <WebBrowser Source="c:/PublishedWebSites/Test.xbap"/> When I start WPF.exe, I am able to attach debugger to any other UserControl but not to my XBAP. I also tried attaching my XBAP to PresentationHost.exe process which was started when I click on the browser tab. The break points are not hit in XBAP project, though I verified that when I publish the XBAP, I oublish *.pdb

Merging Two Projects and accessing files from each other in Visual Studio

假如想象 提交于 2019-12-23 04:44:15
问题 I have merged another project in my existing project by right-clicking on the project name and selecting Add->Existing project option. Now i wan't to access the files from my newly added project from the existing one in Visual Studio (Its a C# project) , how can i do this? 回答1: If I'm following your question, you had a solution with a project A . You then added an existing project B . You now want to access a file from A in B . If that's the case, right click on the B -> References and add a

Macro redefinition warnings

随声附和 提交于 2019-12-23 04:42:40
问题 I am migrating a windows driver project from VS 2005 to VS 2012 . Many macro redefinition warnings are generated on VS 2012 like - .... 1>C:\WINDDK\7600.16385.1\inc\api\sal.h(707): warning C4005: '__format_string' : macro redefinition 1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\sal.h(2860) : see previous definition of '__format_string' ..... It was compiling fine with sal.h shipped with VS 2005 because it doesn't have the macro __format_string and others. However, the

How do i bind data source to a ComboBox?

帅比萌擦擦* 提交于 2019-12-23 04:34:40
问题 So i currently have two combo boxes. One Being Manufacture the other being model. My sql query looks like this "Select Distinct Model From sheet1 where (Manufacture =@Manufacture)" this works when i execute it and if i were to fill a datagridtable. But if i try to place this into a combobox i get System.data.d...... etc for my selections. How can i just have it show the values instead of all this. What am i doing wrong? private void ManuComboBox_SelectedIndexChanged(object sender, EventArgs e

can't open vs2010 csproj file in vs2012

牧云@^-^@ 提交于 2019-12-23 04:27:27
问题 Goal: doing xna with winforms. Way getting the code and how from their programmer, Microsoft from this link, which contains a solution with three projects in it, the form project, the Content and the ContentLibrary project. Projects explanation: The ContentLibrary project builds a dll which the form project references(but it doesn't seem to have anything and I don't know why). It references the Content project in a bizzare way I have never seen. The Content project contains a picture file,

Including Build action content files directory from referenced assembly at same level as bin directory

£可爱£侵袭症+ 提交于 2019-12-23 04:04:22
问题 I am trying to copy folder from referenced assembly to same level as bin directory in calling mvc application: MyDLL1 Shared image.png(Build action = content, Copy Always) MyMvcApp(references MyDLL1) Images Content etc... bin (shared should be copied here) So if I set up ../ As output path in MyDLL1 setting I am able to get shared folder created in bin directory of MyMvcApp after build,but if I put ../../ , folder doesn't appear anywhere within MyMvcApp directory. Is it possible to get that

Windows Phone 8: Reading XML from Web

你离开我真会死。 提交于 2019-12-23 03:47:04
问题 As part of a project i am working on i am trying to load this XML page (http://weather.yahooapis.com/forecastrss?w=2459115) into my Windows Phone 8 application and save the a number of the values as variables. I am using Visual Studio 2012 professional and VB.net. So far i have searched and tried a number of ways just trying to save one variable to start with but i am unable to get it to read. this is what i have so far Partial Public Class MainPage Inherits PhoneApplicationPage Private