Click here to Skip to main content
15,867,594 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 Score

Visual Studio 2012 

24 Mar 2016 by Wolfgang Foerster
3D Tools for the Windows Presentation Foundation (WPF)
9 Dec 2013 by Petar Brkusanin
An example of how Decorator, Dependency Injection, and Composition Root patterns can be used to extend the base game functionality.
19 Sep 2013 by Josef Andrys
HiUpdateTools is a easy tools to use publish new version of your application
4 Jul 2014 by Chakravarthi Elchuri
How to use WIA supported scanner using C#
3 Aug 2016 by Avelino Ferreira
The easiest way to implement the ToolStripControlHost and ToolStripDropDown classes, in a UserControl, in order to display a Container/Control beyond the limits of its Parent Container and Parent Form, with very few lines of code. Let's uncomplicate ...
17 Mar 2013 by Weidong Shen
This article describes the project setup of building a WPF sample application with Self-Tracking Entity Generator and Visual Studio 2012.
11 Nov 2018 by Christian Vos
SOLID principles: The Liskov Principle, a simple example in C#
1 Jun 2018 by Alvaro Carballo Garcia
3 Apr 2017 by Edgar Maass
Display a Point Cloud grabbed by the Microsoft Kinect v2 in a OpenGL control
16 Jan 2014 by Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
23 Jan 2013 by Justin Shepertycki
Using Entity POCOs as a DataSource for your Crystal Reports
4 Feb 2013 by Pablo Fernandez Duran
This article will show you how to generate a JSON base web service layer from an existing database using CodeFluent Entities. We will also generate a web client back office following an “Import wizard”.
4 Jul 2016 by Avelino Ferreira
"Don't care about Google Maps/Routing/StreetView programming. This Control gives your WinForms applications the power of Google Maps API v3". - my previous article. Unfortunately, since Dec.2015, Google Maps JavaScript API applications requires authentication and the program stopped working properly
8 Jun 2013 by Phil Lee NZ
A strategy for keeping sensitive configuration values, such as connection strings, out of your source control repository, but still available to your app both locally and in the cloud. We're looking specifically at Azure websites and GitHub.
2 Jul 2014 by Chakravarthi Elchuri
Display data in Multi nested gridview using C# in ASP.NET
19 Sep 2014 by Abdul Samad KP
public void Excecutesql( params object[] Obj) { }
12 Jul 2016 by David A. Gray
Share Win32 string resources without the risk of conflicting resource IDs
2 Jul 2012 by Kunal Chowdhury «IN»
Improved Solution Explorer in Visual Studio 2012 to improve productivity
8 Jan 2013 by orouit
This article demonstrates how to implement interfaces defined for a WinRT component using WRL and C++.
9 May 2013 by Vinoth Kumar J
Designer debugging in WinRT
29 May 2014 by Randy Kroeger
Created a POC that dynamically builds a predicate using Expression and Reflection.
16 Sep 2014 by SergentMT
Tool for extracting depth frames from Kinect v2 to .mat files, with point cloud generator script. Ready to use!
22 Dec 2014 by Turay Melo
This is an alternative for "Creating an Outlook 2010 Add-In"
5 Feb 2015 by Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
2 Dec 2017 by Alvaro Carballo Garcia
Library extending the .NET numeric support
31 Jul 2012 by kishore Gaddam
How to use SCRUM Template 2.0 to manage projects in VS 2012 TFS
28 Jan 2013 by Tarun_Arora
First time you create a new project in Visual Studio 2012, the target framework is set to .NET 4.5.
10 Feb 2013 by orouit
This article describes a solution to access API and resources that are not available with WinRT.
19 Apr 2013 by Bob Clegg
Deploying with WIX
14 Jan 2015 by DamithSL
fix below issues,1. increase parameter array size and number of parameters example : AddNewSubCategory method you have defined parameter array with one item SqlParameter[] Cattypeparameters = new SqlParameter[1];but setting 2 parameters, you can't do that. change the size of array to 2...
26 Mar 2016 by Amit Kumar Tiwari
.NET to Hadoop connection using Keytab file
7 Mar 2013 by Weidong Shen
This article describes the IClientChangeTracking interface generated by Self-Tracking Entity Generator and Visual Studio 2012.
18 Oct 2012 by fjdiewornncalwe
The % should appear within the single quote, I would also change your query to use parameters instead of the inline concatenation you use. The way you have it, sql injection is a huge risk.... SELECT file_name FROM waveform_files WHERE file_name LIKE '%" + cc_list_element + "'"
25 Oct 2012 by Sergey Alexandrovich Kryukov
Float is already binary, period.Everything is binary, but your result is "much less binary", because what you right into console is a string or a chain of characters, a human-readable representation of the binary. Let's assume this is what you really need, by some reason. It's still binary...
3 Dec 2012 by orouit
This article demonstrates how to create different versions of WinRT components implementing a set of common interfaces.
2 Jan 2013 by CPallini
As an alternative, you may use the String.Format[^] method: Dim msg As String msg = String.Format("Student {0} {1} are great at marks", txtName.Text, txtLastName.Text) MsgBox(msg)
18 Jan 2013 by Adam R Harris
And[^] / AndAlso[^]
19 Mar 2013 by Sergey Alexandrovich Kryukov
Two bugs are obvious: Instead ofFor i = 0 To bookmarks.Count should beFor i = 0 To bookmarks.Count - 1And fav is not initialized. (This is VB.NET defect; in C# it would not compile.)This is one of the very easiest cases to detect and fix. It simply means that some...
2 Apr 2013 by Matthew Faithfull
You can only do that if you have the complete source code for everything you want in your final exe.If you have then the simplistic answer is to put all the source code in one project and just build the one exe. You could of course build the zlib and zip parts as static libraries and then...
3 Apr 2013 by db7uk
You should not have the app.xaml in a user control lib. get rid of that.The problem you have is that the user control lib is really for UIelements that are effectively told what resources to use by the application that references the user control lib. The way around this is to create a...
3 May 2013 by OriginalGriff
Use a Regex:Dim regex As Regex = New Regex( _ "(?
12 Jul 2013 by David O'Neil
VS 2012 gives an 'error C2248: ... cannot access protected member declared in class...' in the following minimal code stripped from a complete project. VS 2008 has no problems with it, and executes as expected.The line right before the issue calls the protected member in question, and no...
13 Jul 2013 by pasztorpisti
Unfortunately I have no VS2012 at hand but I have a g++ that has always been my friend when I wanted to check whether a piece of code follows the standard or not. Using my VS2010 and g++4.5 (cygwin) I have put together the following example program that may serve you with some useful...
28 Jul 2013 by ridoy
Use..cmbCompName.Insert(0,"S...
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
27 Apr 2014 by OriginalGriff
I would probably use a regex:public static Regex replaceField2 = new Regex( "(?
5 Sep 2014 by OriginalGriff
You can't use ":" in the Url - it won't work.Instead, why not your the value that DateTime is based around: the Ticks property? It's an Int64 value so there is no problem in transferring it around, and DateTime has a constructor which works from it directly.
3 Oct 2014 by Snesh Prajapati
Here are the solutions for similar issue:http://stackoverflow.com/questions/22555533/form-submit-not-working-in-firefox[^]http://stackoverflow.com/questions/17968565/mozilla-form-submit-not-working[^]Please try and let us know the result.
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 Dec 2014 by Mehdi Gholam
Very simply where X is your number :int result = (int)(Math.Ceiling((double)X / 1000) * 1000);
9 Mar 2015 by Chinh Vo Wili
This tip describes how to use Selenium WebDriver extension for jQuery of RaYell and customize waiting element loading
4 Mar 2018 by MarioRainer
Here is a simple way to sort the datagridview by Multi-Columns
4 Jul 2012 by Kunal Chowdhury «IN»
How to improve productivity using Quick Launch in Visual Studio 2012
29 Jul 2012 by OriginalGriff
Don't try to access it via SQL server - use the SqlCE connections instead.This means replacing:SqlConnection with SqlCeConnectionSqlCommand with SqlCeCommandand so forth.You will also need to provide a reference to System.Data.SqlServerCe (in system.data.sqlserverce.dll)
29 Jul 2012 by Christian Amado
This brief tutorial pretends to demonstrate how to add custom properties inside DomainService's metadata class
14 Aug 2012 by Wes Aday
I think that http://social.msdn.microsoft.com/forums/en-us/netfxnetcom/thread/F5FE49AA-65BA-4EF9-A3B9-5EE6A2242829[^] may answer your question.
27 Aug 2012 by Christian Graus
If you open your project in VS2010, it will try to convert it and tell you of any issues. Usually it just works fine. If not, edit your code to fix it.
19 Sep 2012 by loctrice
this was , as the comment suggested, a moon phase bug. Something quirky.I have a witness to ensure that I was not imagining it. We also connected from another computer there in the office and it worked fine. The "hail mary" that worked was to start the application, then go back home and...
25 Sep 2012 by marketingmanaic
K,, well,, i found a work around for the follow button on twitter,all you do is place /follow after the persons name, hence,, if you were to followoprah,, then this would be the link to go tohttps://mobile.twitter.com/oprah/followthen here is the code to click the follow button...
1 Oct 2012 by Sandeep Mewara
As mentioned here: Similar question at MSDN forum[^]It says:In the common process config settings you can change the weekend days.If you are on TFSPreview, you are unable yet to modify these settings. But if you are working on premise, you can change that with some steps provided at...
10 Nov 2013 by Sergey Alexandrovich Kryukov
In my opinion, introduction of Data Contract rendered application settings morally obsolete, but many did not notice the value of Data Contract approach.Data Contract is just one method of Serialization, but most robust, non-intrusive and easy-to-use. Using the Data Contract based XML files...
10 Oct 2012 by Sergey Alexandrovich Kryukov
You need to go to the properties of each project and choose the property "Target Framework". It's usually goes under "Application" tab of "Properties" window.—SA
22 Oct 2012 by Sandeep Mewara
No. You need to have Windows8 for metro app. Whole stack is changed in Win8 and Metro Apps are supported only in Win8 for now.
25 Oct 2012 by CPallini
You forgot to include the integer part (e.g. 18) inside the mantissa.That is, of the Wikipedia recipe: Here we can show how to convert a base 10 real number into an IEEE 754 binary32 format using the following outline :consider a real number with an integer and a fraction part such as...
15 Nov 2012 by Sergey Alexandrovich Kryukov
Convert?! What's wrong with System.Xml.XmlReader.ReadElementContentAsInt or System.Xml.XmlReader.ReadContentAsInt? Anyway, if you need to "convert" (right term would be "parse"), you can always use int.Parse or...
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...
4 Dec 2012 by Tim Corey
If you were using source control software, you could roll back to your last check in. However, it sounds like you aren't doing that. In that case, you can try the undo button if your solution is still open. Visual Studio saves a lot of undo steps. However, once you do certain actions (like...
15 Dec 2012 by OriginalGriff
You can't open (or write) a VB6 project in any version of VS past 2005 - at least not in a form that you can go backwards again. You can try to upgrade to a newer version, but since VB6 died (as far as Microsoft is concerned) when the .NET version came out, it would not expect it to be a vast...
2 Jan 2013 by bbirajdar
Use this MsgBox("Student " & txtName.Text & " "& txtLastName.Text &" are great at marks")And BTW, your code does not work.. You are using + operator for concatening
8 Jan 2013 by JackDingler
See this Link[^]
17 Jan 2013 by Richard C Bishop
Dim ComboBox1 as new ComboBox(). Also, your last line of code in your thread is spelled wrong.
30 Jan 2013 by OriginalGriff
Instead of just adding them together an hoping, do explicit conversions:Dim average As Singleaverage = (Integer.Parse(combobox1.Text) + Integer.Parse(combobox2.Text) + Integer.Parse(combobox3.Text)) \ 3MsgBox(average.ToString())Alternatively, don't add strings - add the actual...
20 Jan 2013 by Richard MacCutchan
You cannot set one type to another without a conversion or explicit cast. I assume that in the line: currentmana = currentmana - manareq.Value;that manareq.Value is the decimal type, so you need to cast it to integer thus: currentmana = currentmana -...
23 Jan 2013 by Sergey Alexandrovich Kryukov
Thank you for the clarification of the question.Here is the CodeProject article for you to learn about related techniques:WinForm Extended[^].These two CodeProject articles can also be useful:Winforms SkinFramework[^],WinForms Form Skin[^].I would advise you to avoid such deep...
30 Jan 2013 by Zoltán Zörgő
This approach could help you: Saving the state (serializing) a Windows Form[^]
30 Jan 2013 by Sergey Alexandrovich Kryukov
First of all, having 500 controls looks questionable. Chances are, you need to radically review the design. I hope that you show only a small part of those controls at a time, others are hidden.It's 100% clear what is your problem: the designer. This is a big evil, if you overuse it. If...
31 Jan 2013 by OriginalGriff
I wouldn't use a masked edit box for this - they are really only usefull for fixed input format, not flexible ones as you need.Instead, I would use a standard TextBox and a regex to validate...
31 Jan 2013 by DinoRondelly
There is google,https://www.google.ca/search?q=learn+about+webservices&rlz=1C1PQHS_enCA512CA512&oq=learn+about+webservices&aqs=chrome.0.57j0l3j62l2.4590&sourceid=chrome&ie=UTF-8[^]Lots of stuff, good luck
31 Jan 2013 by Richard C Bishop
Here is a good place to start.http://www.w3schools.com/webservices/default.asp[^]
7 Feb 2013 by Shelby Robertson
http://www.codearsenal.net/201...
8 Feb 2013 by Abhishek Pant
have you read this:A few simple rules when posting your question. Have you searched or Googled for a solution?Be specific! Don't ask "I need to write a booking application". Specify exactly what it is you need help with.Keep the...
11 Feb 2013 by Thomas Daniels
Hi,I'm creating a custom textbox control (CustomTextBox).I use a ToolBoxBitmapAttribute to show an icon in the Visual Studio Toolbox:[ToolboxBitmap(typeof(TextBox))] public sealed class CustomTextBox : TextBoxI try to show the same icon for my text box as the icon for the...
11 Feb 2013 by Volodymyr Bobko
Try following code, it works for me: [ToolboxBitmap(typeof(TextBox), "TextBox.bmp")] public sealed class CustomTextBox : TextBox { }And don't forget to remove and add again your component to toolbox after recompile.
13 Feb 2013 by Sergey Alexandrovich Kryukov
Of course, but it's C, not C++: http://www.gnu.org/software/gzip/[^], http://www.gzip.org/[^].Nevertheless, you can compile this code in a C++ project. Unfortunately, there are no MSBuild project files, you have to make one by yourself.However, GZIP implementation is included in boost,...
7 Mar 2013 by Michael Haephrati
gets() vs gets_s()gets_s() is part of the new C11 standard and the replacement of the old gets(), but is safer. You can use gets() but you will then get a warning encouraging you to switch to gets_s(). As opposed to gets() that doesn't perform bounds checking, gets_s() restrict the...
30 Apr 2013 by Farhan Ghumra
Encypt and decrypt StorageFile in Windows Store apps.
23 May 2013 by Pavlo Iarovyi
Visual Studio extension to change Visual Studio "hidden" option for project loading to reduce loading time for big solutions.
23 May 2013 by Pavlo Iarovyi
Visual Studio extension to change "hidden" option for project loading to optimize loading big solutions.
17 Jul 2013 by Tom Glick Philadelphia, US
Run-Time Stored Procedure Processing (get input values, return GridView/Excel File)
11 Jul 2013 by Sergey Alexandrovich Kryukov
First of all, it's a really bad idea to rotate anything in PictureBox. This control is not designed for anything even minimally complicated. You can either do graphical conversion on a System.Drawing.Bitmap, or, if your real goal is showing something on screen, render it immediately by...
13 Jul 2013 by Matthew Faithfull
The rules did change but I don't think that's the problem. I think it's just that Microsoft started applying the existing ones.It's a tricky case but I think the problem can be summarized as trying to use a protected member function pointer as a template parameter to a function that does not...
19 Jul 2013 by Ron Beyer
You should use a BinaryReader instead of a stream reader. You are converting all the bytes to UTF-8 and probably screwing up anything that is binary since it is probably detecting a different encoding. With BinaryReader you don't need to use the Encoding.UTF8.GetBytes, just use the methods on...
23 Jul 2013 by pasztorpisti
What you are using is definitely an antipattern. Allowing cyclic dependency between DLLs is a bad idea not only in case of DLLs but also in case of static libs. If 2 DLLs reference each other then they keep each others reference count on 1 btw, that isn't the end of the world because you...
13 Aug 2013 by Sergey Alexandrovich Kryukov
"Concatenation" is not defined on integer, isn't it? :-)And don't concatenate repetitively even the string. This is inefficient, because strings are immutable. On each concatenation, the brand new instance of the string is created, old data is copied, and so on.You need to use either...
22 Aug 2013 by dhruv chaudhary
LAP provides an feature rich environment for learning and enjoying history and geography of places across the globe
14 Sep 2013 by H.Brydon
You can just open the old file with the newer version of the program. Open VS2012, click File -> Open Solution, and open the VS2010 solution. The version mismatch will be detected by VS2012 and any necessary conversion(s) done by the compiler. You can do this across multiple versions (ie....