Click here to Skip to main content
15,887,485 members
Everything / Visual Studio / Visual Studio 2012

Visual Studio 2012

VS2012

Great Reads

by Wolfgang Foerster
3D Tools for the Windows Presentation Foundation (WPF)
by Sacha Barber
StyleMVVM Demo App
by Petar Brkusanin
An example of how Decorator, Dependency Injection, and Composition Root patterns can be used to extend the base game functionality.
by Josef Andrys
HiUpdateTools is a easy tools to use publish new version of your application

Latest Articles

by Tough Developer
How to compile WinQEMU v0.10.2 in VS2008 and VS2012
by adriancs
A tool to export and import MySQL database in .NET
by Leo Chapiro
This tip shows how easy it is to debug the VBScript by using Visual Studio Debugger
by AlexeyYakovlev
This paper demonstrates a technique of building Sprache parsers using grammar inheritance.

All Articles

Sort by Title

Visual Studio 2012 

1 Jun 2013 by freeheartxiii
Hi, there!I am the new guy on WCF. These days, I'am learning that.I made a empty solution, and this solution contains 4 projects: two c# libs, and two consoles as host and client. the programs ran well, but when client started after host, it raise this info in debug output window: "A first...
2 Jun 2013 by PrissySC
Actually, I will almost bet that while this is the exception that was caught that it is not the problem. You could catch and handle this and ignore it, but you need to find the underlying cause. Check your output, and do a try catch on the block that you suspect. Print out the exception in a...
29 May 2013 by Vahidrsj
I'm using VS2012 and Crystal reports 13.0.5. When i want to print displayed report with print button on crystal report viewer toolbar, its giving me this error: "A StartDocPrinter call was not issued."This article cant help me: http://support.microsoft.com/kb/121074[^] because my printer...
19 Oct 2013 by thatraja
Here solved threadhttp://scn.sap.com/thread/3299135[^]
1 Nov 2014 by Ajvirk
I'm learning asp.net and so I'm trying to build up the project named "Wingtip Toys" from MSDN. The project is developed on VS 2013 and I have VS 2012. When I try to add the bootstrap as per instruction from here I get the error on running time in browser.Server Error in '/' Application. ...
1 Nov 2014 by DamithSL
That tutorial target Microsoft .NET Framework 4.5.2.[^] You need to installed it and target the same framework when you create this project and also note that there are many nuget packages you need to install. ...
8 May 2015 by Member 11122179
add this to u r web.config
3 Oct 2015 by Member 10587261
I had the same problem, I just reinstalled bootstrap package with the package manger console:PM> uPDATE-Package AspNet.ScriptManager.bootstrap -reinstall
27 Apr 2015 by Dee Lott
How do I resolve this error: " Reference required to assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' containing the type 'CrystalDecisions.CrystalReports.Engine.ReportDocument'. Add one to your project."
27 Apr 2015 by Richard Deeming
By doing what the error tells you to - add a reference to the CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0 assembly.
10 Feb 2013 by Eljeddi
hello everybody....I'm a student and i need some ressource about the .net development,,, wcf,wpf,c#,VS,ASP.net,sql server... i'm looking for books and tutoriels and everythings can help me as a beginner ,,thank you in advance :)
10 Feb 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
As a beginner, I would suggest you to go for MSDN articles and try the examples given there. When you will start building some sample applications, if you face any problems, then just come back to this awesome Technical Forum Code Project with your question.Everybody will help you here.For...
19 Mar 2015 by Peter T. Ringering
A program that makes editing code comments and XML comments easier.
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
26 Mar 2016 by Amit Kumar Tiwari
.NET to Hadoop connection using Keytab file
24 Oct 2015 by Kailash Shastri
Tips and tricks to speed up your VS.NET builds
1 Oct 2013 by Mohamed Kalmoua
2-3 tree implementation in c++
11 Mar 2014 by Prasanna Venkatesh . K
Writing a Windows store background app from the scratch
6 Nov 2014 by Member 10977819
Hi all,I need to create a program that shows a sentence with the most words in it. My 3 sentences are:I like apples. I like red apples. I like red apples than green apples.How do I show a sentence with the most words in it? (The result should be displaying "I like red apples...
6 Nov 2014 by Praneet Nadkar
Hi,Please try the following code:public int GetNoOfWords(string s){ return s.Split(new char[] { ' ', '.', ',','?' }, StringSplitOptions.RemoveEmptyEntries).Length;}The above code assumes space, comma, full stop, question mark as word separators and will return the word...
6 Nov 2014 by Gihan Liyanage
Please try to get an idea from here, If you defecult to get output from here, I will write a sample code. But before try to find using this.http://stackoverflow.com/questions/13485856/count-how-many-words-in-each-sentence[^]
6 Nov 2014 by SRS(The Coder)
Here i have one solution and hope this will definitely match with your requirement.Here is a method to get the maximum word containing sentence from a whole paraghraph if passed as parameter to it.private string GetSentenceWithMostWords(string strParagraph) { int...
6 Nov 2014 by BillWoodruff
// requires Linqprivate string testText = @"I like apples. I like red apples. I like red apples than green apples.";private char[] sentenceDelimiter = new char[] {'.'};// slower: sort, O(nlogn)private string GetLongestSort(string sentences){ return ...
6 Nov 2014 by Member 10977819
string[] st = { "I like apples.", "I like red apples.", "I like red apples than green apples." }; string result = st.OrderByDescending(s => s.Length).First(); this.label1.Text = result;
4 Nov 2014 by Lambert Cayrel
Hi and first thanks for reading this and giving me a bit of your time !:)So I try to do a simple hello world with SDL 2.0.3 and VisualStudio 2012.#include #include int main(int argc, char **argv) { SDL_Window* fenetre(0); SDL_Event evenements; ...
4 Nov 2014 by Garth J Lancaster
Francais ? pas un problem monsieur !(but I'd better stick to English in case I get accused of murdering such a lovely language and find myself heading to 'madame le guillotine')1st up -- does SDL come with any examples/pre-built projects ? if so, its always been best in my experience to...
30 Aug 2013 by Smart K8
A semi-analytic 2D path-finding for large dynamic scenarios.
2 Jan 2019 by Octavio Loyola-González, Miguel Angel Medina-Pérez, Andres Eduardo Gutierrez Rodriguez, Milton García Borroto
In this article, we introduce a framework in C# for fingerprint verification, we briefly explain how to perform fingerprint verification experiments and how to integrate your algorithms to the framework.
12 Jun 2014 by Florian Rappl
A detailed outlook at some of the possible language features of the next version of C#
6 Mar 2014 by LucaDN
Add zoom capabilities, grid and rulers to the standard WinForms PictureBox control
2 May 2013 by RedSakura
Is there any difference in performance between the control and the sqldatareader in code behind?to get better performance witch on should be used?thanks...
18 Jul 2013 by Thanks7872
Two are different.You can have a look at how to increase performance using sqldatareader here.Sqldatareader is the fastest to access the database.There is brief discussion over here
17 Jul 2013 by RedSakura
btw, the sql data source executes a datareader in background. so there isnt much difference between theese two.
10 Feb 2015 by Borgy1978
Hi guys,I'm building one solution with two projects:1. Windows Service. The windows service starts with this code:ManagementGroup mg = new ManagementGroup("localhost");2. Console Application.When the Windows service starts the console application must use the management...
10 Feb 2015 by Zoltán Zörgő
See Mark Gravell's solution here: https://groups.google.com/forum/?hl=en#!topic/microsoft.public.dotnet.languages.csharp/TUXp6lRxy6Q[^] (you could find it more clearly in my article[^]).You can extend the entry point of that executable to perform the task you need.
10 Feb 2015 by Sergey Alexandrovich Kryukov
I have develop exactly this approach. Please look at my past answer to get some key ideas: Configure Windows Service with UI[^].If you need more help with it, please ask your follow-up questions.—SA
16 Dec 2018 by Praveen Raghuvanshi
An application explaining the basic implementation of Autosave feature
5 Aug 2014 by Babu_Abdulsalam
A Simple Profiler for C++ apps on x64 platform
24 Oct 2012 by krist_jin
I want to develope apps in windows-8 using VisualStudio2012. When I copy the basic google map code which is given by google to VS2012 in javascript project. It keeps telling me there are some errors.the code is here: Google Maps JavaScript API...
24 Oct 2012 by Member 9332883
replace google.maps.event.addDomListener(window, 'load', initialize);with following line of code..window.onload=initialize;
28 Oct 2012 by mprakash.precise
still we have getting same error.JavaScript runtime error: "google"undefinedif any one give solution that's should be great.
28 Oct 2012 by Santhosh Kumar Jayaraman
try thisvar map; function initialize() {map = new google.maps.Map(document.getElementById('map'), { zoom: intZoomLevel, center: new google.maps.LatLng(-34.397, 150.644), mapTypeId: google.maps.MapTypeId.ROADMAP });
14 Nov 2012 by eddonahue
Hey there,I just wrote a tutorial about using the Google Maps API with Windows 8, http://www.creepyed.com/2012/11/how-to-use-the-google-maps-api-on-windows-8/[^]. It has to do with how the script for Google Maps is called in the project and making sure you can get external content.I was...
14 Nov 2012 by Anshu BM
your source is wrong.This the correct one.It will help you.
11 Sep 2014 by iSahilSharma
This article is the first part of the series "Abstract Class & Interface: Two Villains of Every Interview" and explains the important key points of Abstract Class.
24 Sep 2014 by iSahilSharma
This article is the second part of the series “Abstract Class & Interface: Two Villains of Every Interview” and explains the important key points of Interface.
22 Apr 2013 by MaazSh
hello,First i'm sorry for my weak english.I need to have an image view(telerik rad list view) and an image list,when user clicks on images of image list,the selected image appears in the picture box.but i can't access selected item's key to show it from list box.i have no idea how to...
22 Dec 2014 by armm1388
by only one ConnectionStringHiin ConnectionString we can define db by command "Initial Catalog=MyDB;".I WANTS TO ACCESS TO 2 DB in SQL Server.is it posible to access to more than one db of sqlserverby only one ConnectionString?Thanks Very Much
22 Dec 2014 by Maciej Los
Yes, you can use single connection to MS Server to work with more than one database.To able to achieve that, you need to write query as:SELECT FROM [DatabaseName].[dbo].[TableName]or USE DatabaseName;SELECT FROM [TableName]But, i need to warn you. The...
22 Dec 2014 by Kornfeld Eliyahu Peter
Yes. A single opened connection can access all the databases the current user (the one used to open the connection) has access rights...SqlConnection oConnection = new SqlConnection(connectionString);oConnection.Open();oConnection.ChangeDatabase("mydb1");// run some...
24 Oct 2012 by Ramanujam Shankar
Show data in grid view control of Windows Stores App using web service or WCF
13 Feb 2014 by dash2020
Hi allI have a datagrid where I am showing contact list of our people with their individual email address/s. I have added a checkbox.I want to check if outlook new message is open if it is open then add all selected email address (datagrid cell value) to the BCC field.Here is my...
13 Oct 2013 by Member 10327678
hi again have used the label control tool to insert text in am xtra-spreadsheet cell, but the text appears on the screen not in the cell. when you scroll the cells the text stays. can anyone fix that?
9 Dec 2013 by Sh.H.
How can I add my object (for example button1) to UserControl1?I used below code but doesn't work:Dim btn as Buttonbtn = new ButtonUserControl1.Controls.Add (btn)
9 Dec 2013 by OriginalGriff
The recommended way in not to do it from outside the UserControl, but to do it from inside the control instead.So create a method which adds it:Public Sub New(text As String) Dim but As New Button() but.Text = text but.Location = New Point(10, 10) but.Click += New...
3 Feb 2013 by Hslldm
I created a datagridview in a WindowsFormsApp. I have those columns(x1,x2...x7)And i want the program create a new column (x8) when user write something to column (x7).(And when user write sth to column(x8), program creates (x9)...and so on)How can i do that?Thanks in advance.
14 Nov 2014 by Anurag Prajesh
Add new user registeration information in XML with C#
9 Mar 2017 by Vladan.Obradovic
Display additional properties for each VM inside SCVMM 2012 R2 console (VLAn, IP addres, VM Path, Mounted ISO, Number of Checkpoint)
7 Feb 2013 by Ger Hayden
How do I add an app.config to a C++/CLI project in VS 2012 desktop express?Its not where I would expect under PROJECT > ADD NEW ITEM.Google is not much help. Has it moved or is it not part of the Express edition?NOTE: I think I can handcraft one and use Add Existing Item, but I...
17 Apr 2013 by knockNrod
It's not automatic in C++/CLI. You have to set it up manually. Start by Add New Item, Utility, Configuration File. That will create the app.config file in your solution. It should also open the app.config xml file in the editor window. Unfortunately, there's no nice editor, but the intellisense...
7 Jun 2013 by joshrduncan2012
Hi everyone!I have a simple issue that I can't see a resolution for right now. I'm hoping someone can pinpoint what I'm doing wrong.Main goal: Create new datarows for a datatable and add values for 3 columns to each datarow.DataTable waveform_file_dt = new DataTable();DataRow...
7 Jun 2013 by Richard C Bishop
Have a look here:Clicke me[^]This might be what you are looking for.
22 Apr 2014 by Sh.H.
Hi guys!I need to add my icon of my exe file, into MyProject.vbprojAttention: I don't need to add my exe icon from properties window.Anybody can help me and let me know the code of XML to add icon to exe file?Thanks.
22 Apr 2014 by ravikhoda
if you are using a setup project you can add icon from setup property options and also in click once this option available. you can find it from the publish / resource menu on the click once...
23 Apr 2014 by Thomas Nielsen - getCore
The uniform way from a windows form to get an icon, if that is indeed what you're aiming at is: this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));Now you do not have to get that icon object from a resource file of cause.Not sure if this is what you ask, what type...
23 Apr 2014 by Sh.H.
Thanks but none of above are my answer.Please read what I asked.I need to change it in MyProject.vbprj which is in XML format.Help me please!
6 Oct 2014 by AnoopGharu
Hello everybody, I am making on a small shopping website project using layer architecture in c# asp.net and now I am working on the cart_page to add the products in the cart_page.Here's below is the code & I use to add the products but it can't works well and products can't be add in the...
7 Oct 2014 by Sinisa Hajnal
public partial class Default2 : System.Web.UI.Page{ DataTable Basket_DataTable = null; protected void Page_Load(object sender, EventArgs e) { if (Session["basket"] != null) { Basket_DataTable = (DataTable)Session["basket"]; } ...
7 Oct 2014 by Sinisa Hajnal
For persistent cart you need some way to identify the user that comes back. Both solutions below will keep the cart on project restart.You can do that in several ways, simplest of which is to add the cart products into the table CARThaving columnscart_id uniqueidentifierproduct_id...
9 Dec 2016 by Shesh Lamichhane
Step by step to add the transformation files of app.config in your .NET Windows service
16 Dec 2012 by kingcoder0110
Hi! I want to know how should I fit controls like button, label, datagrid, listbox for all browsers? For example I have got a button there in my WPF web application & I have draged it & placed it there in the center position. If I run my WPF web application it will show my button there in the...
16 Dec 2012 by Zaf Khan
Check my post HERE although it is for VB.NET forms application you shold be able to adapt it for use in your webpage.
23 Nov 2012 by princektd
I have added ADO .net Entity Framework to my project and so I see the EDMX file. When I added it, there was this pop-up (Entity Designer???) asking me to choose a datasource, and I had read that if pointed to an existing DB, the necessary Object classes/entities will be auto generated in my...
23 Nov 2012 by Prathap Gangireddy
If you want to use the existing database tables in your project then forget about AutoGenerating Entities without using the designer wizard which pops up when .EDMX file is added to the project.So if you choose an empty .EDMX file, then right click on the designer and click on Update model...
22 Dec 2012 by rlilley
I am currently working on a project in Visual Studio 2012 that needs to send an existing file from one folder to my Dropbox public folder in zipped format, get the Dropbox public link and email the link to a list of users. I am having a problem getting the Dropbox Public LinkI have written a...
22 Dec 2012 by Zoltán Zörgő
As I see, you tried to wrap an application around some existing command line tools and IE. I suggest you look for and use dedicated .net libraries for those tasks.Like these ones: 1) ZIP: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx[^]2) DropBox:...
22 Dec 2012 by BillWoodruff
I can see, by your response to my comment on your question, that you have already figured out the essential aspect of accessing files in your own DropBox, on your own computer.Yes, DropBox files in the Public folder, on your machine, use a hard-coded six-digit ID number; however, shared...
23 Apr 2014 by adat7378
I used the same code and it works in vs 2012 but not in vs2013. I wanted to go back to vs2012 but html5 not showing up properly in vs2012(css/js has been referenced).Below is my master page - Triocars
14 Jul 2014 by bvgheluwe
Change the appearance of a button that is used in a navigation menu, based on the value of a property of that button.
30 May 2013 by arshad115
A very simple HttpListener server which implements handling AJAX requests. Made to present a web service endpoint in your Windows Forms application.
4 Aug 2013 by AbhinavGauniyal
// Namespace Declaration using System; // Program start class class InteractiveWelcome { // Main begins program execution. public static void Main() { // Write to console/get input Console.Write("What is your name?:...
4 Aug 2013 by Mehdi Gholam
C# is an object orientated language not a functional one hence the Main method is encapsulated within a class structure.public static Main() is a convention for the runtime to know where to start the program from.
4 Aug 2013 by Sergey Alexandrovich Kryukov
The use of the access modifier public for the entry-point method Main is nothing but your fantasy. You have it just because you've written so. It doesn't have to be there.Please see: http://en.wikipedia.org/wiki/Main_function#C.23[^].—SA
12 Nov 2018 by Tushar_Gupta
Quick Start tutorial for creating AngularJS applications
14 Feb 2014 by Kalle Hildebrand
Hi!I know this has be a subject before, but the latest topic I can find is older than a year.My company is just about to start a new project, which includes a Motorola bar code scanner. The OS on the device is Windows Mobile 6.5 (yes it is that old!!!) I can't choose, because my customer...
8 Oct 2014 by Israel Sant'Anna
This is an alternative for "Links with arbitrary text in a RichTextBox".
1 Mar 2015 by Shafeequl
Hii experts,I have developed an application(desktop application) in C# .net visual studio 2012And i install .net frame work in client system(windows 7 32bit)But the application didnt work.after trouble shooting i got the information "Application Incompatible Detected"Will u please...
1 Mar 2015 by OriginalGriff
Check your app properties: in order to run on a Windows 7 32bit system, it must be built for x86 or "Any Cpu".Open your solution, Open teh project in the Solution Explorer pane, and doublke click teh "properties" branch.In the page that results, select "Configuration" to "Release", and check...
28 Sep 2013 by brent44
Hi,i have come across a specific situation where my c# programm just freezes and there is no information from the debugger. In the MWE (focusbug.rar) i use a button inside a custom control (button on panel) to focus a normal button. Instead, the program just freezes.You can trigger the...
13 Sep 2013 by geoyar
Applying Ant Colony Optimization algorithms to solve the Traveling Salesman Problem.
11 Dec 2012 by NIta_Bhat
Hi all,I need some useful link for creating an approval workflow in Visual Studio 2012 for SharePoint 2013.- Few twists to the story are 1. Need to attach a custom form for tasks (I have attached to a particular Content type as of now)2. On the Approval click on the custom form I need...
2 Jan 2013 by utkarshh
Hi Nita, If u have resolved this issue please share the solution and some useful links.
18 Feb 2013 by cybergroove
I'm in need of the same information, please share if you guys have found any good resources on creating SharePoint 2013 approval workflows using Visual Studio 2012/2010...Thanks
26 Apr 2015 by Fawzia Al Moghazey
you can check this link[at microsoft blog]
23 Nov 2015 by rahul shelake
I want to create a Auto-Hosted App in 2013 using Visual Studio Ultimate 2012.
23 Mar 2015 by Abdul Rahman BCS
I am to develop a event reminder application using C# and visual studio local database, are there any code samples to do this?please help.
23 Mar 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
25 Sep 2013 by Abhinav Gauniyal
Well I was just googling and Found out a lot of queries regarding Microsoft abandoning WinForms and moving to WPF and HTML5/CSS/JS as alternatives.So is this true , i mean i am shocked to see that , is Microsoft really gonna move upto WPF and leave behind the WinForms. There are a really...