Click here to Skip to main content
15,887,214 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 Updated

Visual Studio 2012 

28 Jun 2023 by BlueVLC
Screenshot Error:Error:Object reference not set to an instance of an object.Error is on the line: AxVLCPlugin21.playlist.items.clear()When I try to clear the vlc playlist within Visual basic.net I get the above...
28 Jun 2023 by Member 11129220
Lösung zur Option Dim zählervideo As Integer = 0 Private Sub Button9_Click(sender As Object, e As EventArgs) AxVLCPlugin21.playlist.add(New Uri(playerdatei).AbsoluteUri) AxVLCPlugin21.playlist.playItem(zählervideo) zählervideo += 1 End Sub ...
4 Apr 2023 by Tough Developer
How to compile WinQEMU v0.10.2 in VS2008 and VS2012
24 Sep 2021 by adriancs
A tool to export and import MySQL database in .NET
19 Feb 2021 by Member 3498572
test without item AxVLCPlugin21.playlist.clear
16 Aug 2020 by Member 14915876
as i tried , it must have refreshing in the report. it works for me. this.reportViewer1.RefreshReport();
16 Aug 2020 by Andrew Alix
I am using a dynamic table in a dataset and filling it with data from various other tables, based on a linq query. I have created a report.rdlc, based on that table and put it in a reportviewer on the form.For information, I have used several reports in the ReportViewer control to show...
5 Aug 2020 by Tapirro
Hi, I have small problem with WPF app as a library. It was originally designed to be standalone application but later we decided to use it as a plugin. I searched in Google and now I know that I should use WPF Custom Control Library or WPF User Control Library. My project is WPF App, and...
19 Apr 2020 by Andrew Alix
It's been so long that I can't remember ever getting it to work. Out of frustration I went to SAP Crystal Reports and downloaded the Visual Studio Free version. The new one (I believe It's still free) is here ...
29 Nov 2019 by Leo Chapiro
This tip shows how easy it is to debug the VBScript by using Visual Studio Debugger
23 May 2019 by Member 14430889
Dear All: i am new, i just start to learn draw shape with vs2012 c++ and Gdiplus about 5 weeks, i create a simple project to test, but when i draw polygon finish, i cannot delete any polygon which i selected from canvas, it not so easy like to delete a rectangle or a ellipse, only delete the...
23 May 2019 by Richard MacCutchan
You should do all your painting/drawing to the screen in the function that handles the WM_PAINT message. Each time this function is called it should redraw all the shapes. When a shape is deleted you just remove it from the list of items to draw, and then call InvalidateRect to force a repaint...
10 Mar 2019 by Member 14177973
Application showing error:- I am using VS2012+CR13 on Win 10 64Bit. ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80000000): No error. at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object...
9 Mar 2019 by AlexeyYakovlev
This paper demonstrates a technique of building Sprache parsers using grammar inheritance.
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.
30 Dec 2018 by Chinmoy Mohanty
Multiple techniques of implementing The Observer Pattern in .NET
16 Dec 2018 by Praveen Raghuvanshi
An application explaining the basic implementation of Autosave feature
12 Nov 2018 by Tushar_Gupta
Quick Start tutorial for creating AngularJS applications
11 Nov 2018 by Christian Vos
SOLID principles: The Liskov Principle, a simple example in C#
31 Oct 2018 by Aydin Homay
In this article, we will discover the power of generics in C#.
19 Sep 2018 by Hakan Bayrak
You can look here also: Update an Existing Database using Code First Migrations with ASP.NET and Entity Framework[^]
19 Sep 2018 by AbhishekDotNet
Hi,I have a created two separate C# web application using EF6 (one with Database First and other with Code First approach). everything is going on smoothly but after sometime it is required to merge both.After merging , Database is same for Code First Approach.Initial I was using...
11 Sep 2018 by Nillo123
here are the footsteps that i maid:database Tables Add New Table create the table with(ex:id, user,pass) CTRL + S and save(on the toolbar) doesn't work.what i have to do, to save this table that i created.I am using VS12.
1 Jun 2018 by User 6679439
4 Mar 2018 by MarioRainer
Here is a simple way to sort the datagridview by Multi-Columns
16 Feb 2018 by scoket
Hello: Developed with VS2012, use MVC4. I have two web pages.one is main.aspx,the other is parts.aspx.The main.aspx's source code as below:frames["iframeName"].document.forms["fromImport"].submit();..........................
10 Jan 2018 by Amir Jalilifard
In this article, you are going to learn about P2P Network and Windows Communication Foundation to share your files between peers through a P2P network.
26 Dec 2017 by macika123
Hello everybody!First of all, it's not a big deal, I can solve the problem by manual editing of config files, but I'm curious why this is happening. So if you don't really want to read my whole novel, don't waste your time :) .I have a solution currently containing 2 C# projects and 1...
26 Dec 2017 by Member 13594429
Same funny thing happened to me also :-). I actually used "Save All" button on toolbar to save the property sheet but did not work.
2 Dec 2017 by User 6679439
Library extending the .NET numeric support
7 Nov 2017 by Sergio Balanza Sandoval
Hi am trying to connect visual studio 2013 with oracle throws bad image format exception. i am running windows 7 64 bit, visual studio 2013 ultimate, oracle 11g 64 bit. please guide me how to establish database connection using ODTI already have ODT for oracle 11.20.20 but it doesn't work...
7 Nov 2017 by Mohammed Hameed
When we open a project/solution in Visual studio, the project's vshost.exe file will be executed and launched in memory automatically (I think this is done by Visual studio) and this process (vshost.exe) will be in running state till we close the solution from VS.I know that this process has...
1 Nov 2017 by Member 13341679
Hello, I want to get only RGB values from an image present in picture box and show it on my form. Code I have tried gives the whole pixel values( and also takes too much time to calculate pixels ) but I need to show only RGB values. Please help. Thanks in advance. I am working on Image...
1 Nov 2017 by Member 13341679
I found the solution and here is the code. It's giving the exact output I wanted. private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (opened) { newBitmap = (Bitmap)pictureBox1.Image; label1.Text...
26 Oct 2017 by Member 13341679
Hello, I am working on image processing(designing a UI) using C#.Net and VS 2012. I have added Convolution filter to my form. I have added a kernel matrix in back-end but now i want to add new matrix(of any size-3*3, 5*5, 7*7 etc) during run time. I don't know what to do and how to do. Can...
24 Oct 2017 by phil.o
In addition to Solution 1, I would like to draw your attention on a few issues: 1. You don't need the pix variable, or at least not in the piece of code you have shown. Removing the copy could spare a few cycles (but that won't be a drastic improvement either). 2. You don't need the a...
24 Oct 2017 by lukeer
You seem to have two issues 1) function, 2) speed. 1) Edit your question: Does your code already do what you want, only too slow? If not, what did your code do differently than you wanted it to? 2 a) Wrap your textbox access code in listBox1.SuspendLayout();...
15 Oct 2017 by Member 13341679
I am trying to apply "Unsharp Mask" filter on an image. I am using C#.Net(FrameWork 4.0) and VS 2012. I tried this code, I am also getting the output image but only for 1-2 seconds, after that this error is coming. I tested everything but failed to solve.can anyone help me out of here. Thank you...
15 Oct 2017 by OriginalGriff
When you asked a related question: How to solve this " index was outside the bounds of the array." error ?[^] this morning, I told you to use the debugger. It's the only tool that can tell you what is wrong: this depends on the data in your image and we do not have access to it. So put a...
15 Oct 2017 by Member 13341679
I am working on a image processing project and i have tried to code for unsharp mask filter. I am using C#.Net and VS 2012. Here, I want to subtract two arrays but this error is occurring in run time. Can anyone please help me out of here. Thanks in advance. What I have tried: int[] Oarray =...
15 Oct 2017 by OriginalGriff
Compiling does not mean your code is right! :laugh: Think of the development process as writing an email: compiling successfully means that you wrote the email in the right language - English, rather than German for example - not that the email contained the message you wanted to send. So now...
15 Oct 2017 by Patrice T
Try to replace for (int n = 0; n
21 Sep 2017 by erummirza
I am working on vs 2012 and mvc 4 ,just small project , i need to apply theme( http://all-free-download.com/free-website-templates/download/magic_city_template_2087.html[^] )and remove default one ,can any one help me how to do this ?? What I have tried: i have done all copying stuff ,but...
21 Sep 2017 by Vaidhya.P
Steps to Apply a Bootstrap theme, Step 1 : Copy all the Css and Java scripts inside the application. Step 2 : Then add the related css files and java script files in the bundle.config like the below code. Scripts: //-------------- jQgrid ---------------- ...
7 Jun 2017 by rakeshjena
i am using Visual-Studio2012, whenever i am trying to add a .mdf file of sql server 2012 (copied from C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA) to the appdata folder of my website it is showingthe following errorThis database file is not compatible with the...
7 Jun 2017 by Madhusudhan V Indian
simplest way: go to VisualStadio 2012 In Server Explorer Windows open Data Connections Right click on ASPNETDB.MDF click on Modify Connection... a new windows open for you ... you just click OK if other windows open for you click Yes FINISH ( be Happy ) :D
3 May 2017 by dmihailescu
A Visual Studio add-in that inserts some commonly known OO patterns into your working project and searches your highlights online.
24 Apr 2017 by syna syna
Hi,how to convert visual studio 2010 solution to visual studio 2012?
3 Apr 2017 by Edgar Maass
Display a Point Cloud grabbed by the Microsoft Kinect v2 in a OpenGL control
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)
20 Feb 2017 by joshrduncan2012
Hi everyone!I am working on an element of a project that has to do with FTP uploading files. This is the code that I have to upload all types of files.#region FTP Upload// Get the object used to communicate with the server.FtpWebRequest request =...
7 Feb 2017 by Er. Puneet Goel
I have a SSIS project Created in sql server data tool 2013 (VS2013). But When i tried to open it with VS2012 due to some urgent reason, It is throwing error. So I wants to know can we downgrade SSIS project ?What I have tried:I tried to fix error while searching on google. But they are...
7 Feb 2017 by Er. Puneet Goel
Below is the link to fix the issue. Actually we need to change the schema of the project dstx file.How to “downgrade” SQL Server Integration Services 2014 packages to 2012 – Vanie's View[^]
26 Jan 2017 by John Melling
This is a simple program that demonstrates a method used to adjust the screen brightness on any C# application.
11 Jan 2017 by Dean Feng
A simple method to display a waiting dialog in WinForm application, and not block the main form.
9 Dec 2016 by Shesh Lamichhane
Step by step to add the transformation files of app.config in your .NET Windows service
16 Nov 2016 by Lars Hove Christiansen
XML Visualizer v.2 improves the standard XML Visualizer in Visual Studio 2005, 2008, 2010, 2012, 2013 and 2015.
23 Oct 2016 by Jakub Szymanowski
The article shows implementation of fundamental algorithms in matrix and polynominal algebra
9 Sep 2016 by Jose A Pascoa
SIMD instruction sets may expect a special alignment of memory, but when that memory is on the stack MASM does not provide alignment facilities.
7 Sep 2016 by Member 10454592
Got Setup VS 2012 Error 0x80070643. Tried for multiple solutions but still exist. Any effective approach to fix it? Thanks.What I have tried:Setup VS 2012 Error 0x80070643
7 Sep 2016 by David_Wimbley
I suggest using google for your error message. It seems you aren't the first person to achieve this error. From a quick glance at top few links, it looks like you need to install .net 4.5 probably. I say that as a suggestion because i don't have access to your PC to troubleshoot this...
17 Aug 2016 by Vincent Maverick Durano
Using EF and LINQ has nothing to do with using Identity or SQL Membership. EF is an object relational mapper (ORM) and you'll use it as a replacement for good-old-plain ADO.NET to work with data. LINQ on the other hand is used for querying objects and collections. For example objects generated...
17 Aug 2016 by Андрей Голубцов
HI am making an ASP.NET Web Forms app and i'm searching for way to do a good, secured and easy to make Login Page . My main problem that i already have a SQL DataBase and i'm using EF + LINQ to operate with this . Because of that i can't use Idenity, Owin and Katana ( if some one now how it...
17 Aug 2016 by Edgar Maass
Open and display point clouds using a simple user control. Technology used: C# and the OpenGL library via the OpenTK port to .NET.
15 Aug 2016 by Edgar Maass
Different methods to align (aka stich, register) point clouds via the ICP (Iterative Closest Point) method
5 Aug 2016 by Umesh AP
I want to create MVC 5 application application using Visual Studio 2012. How Can I set up my VS 2012 to create MVC 5 application. Any suggestions will be highly appreciated.What I have tried:Installed .net version 4.6.1 from...
5 Aug 2016 by Vignesh Mani
Hi friend please follow below steps.Using ASP.NET MVC5 within Visual Studio 2012[^]
5 Aug 2016 by Bikesh Srivastav
Visit here...Create a New ASP.NET MVC Project | The ASP.NET Site[^]
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 ...
26 Jul 2016 by Yochai Timmer
Debugging C++ projects in release. Finding the lost object information
12 Jul 2016 by David A. Gray
Share Win32 string resources without the risk of conflicting resource IDs
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
23 Jun 2016 by Sumit Thakur
Send & Receive SMS using TWILIO SMS API
5 Jun 2016 by Charles T. Blankenship
Foolishly, I just upgraded my development machine to Windows 10. I use a third party development framework called StrataFramePrevious to the upgrade, all I had to do was to drop the control from the toolbox onto the form and it showed up on the form right where I dropped them. ...
5 Jun 2016 by Charles T. Blankenship
I thought it was enough simply to recompile the StrataFrame libraries, not so.Once the upgrade to Window 10 took place I had to uninstall and then reinstall StrataFrame. All, now, is well. At least I think it is as the design surface is working just fine.Thanks for the attention...
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
22 May 2016 by Stan Huang
I've got compilation error of "fatal error C1012: unmatched parenthesis : missing ')'In line: #if !defined(FALSE) || (FALSE !=0)and #if !defined(TRUE) || (TRUE!=1)while using VC++2012 to compile the file beginning with:#ifndef __INCvxWorksh#define __INCvxWorksh#ifdef...
22 May 2016 by George Jonsson
Seems like you are missing an #endif in your code#if !defined(FALSE) || (FALSE !=0)#if !defined(FALSE)#define FALSE 0#endif#endif // Added one #endifalso this might be a problem unless it was a miss in the copy&paste#if !defined(TRUE) || (TRUE!=1)#define...
19 May 2016 by violence666
i have made a code in which i receive the live stream on my client from my Raspberry pion my Pi (server) i have used a netcat command pi@raspberrypi ~ $ raspivid -t 0 -o - | nc -l 5001 on the receiver, i store the received data in a buffer, and then that buffer i pass it to my decoder...
12 May 2016 by violence666
i want to save and decode a video slice from a live video stream sent from my raspberry pi to windows PC via TCP/IP using raspivid and netcat. i run my pi code 1st. i get the video displayed on my pi screen. but when i run the client, i get an error "Connection to server failed"I am...
12 May 2016 by Albert Holguin
raspivid -t 0 -o - | nc 172.16.26.32 5001 (my windows pc address and the port number)Seems like you're running this as a client...nRet = connect( hServer, (sockaddr*)&saServer, sizeof( sockaddr ) );if( nRet == SOCKET_ERROR ){ cout
10 May 2016 by violence666
helloi want to achieve a live streaming from my raspberry pi to windows PC via TCP/IP using raspivid and netcat. On the windows side, I want to display the live video stream using openCV.I have created a c++ based tcp/ip client model on the windows side (using VS2012) where it tries...
2 May 2016 by Fajeje
I am really new in ASP.Net MVC 4.I need to Display columns and their data in a grid -or webgrid or what- in a page of web application. I should implement the application by Asp.net MVC 4, Visual Studio 2012.Any help or source to guide me?Env.SQL server 2012Visual Studio 2012
2 May 2016 by F-ES Sitecore
Part 1: Overview and File->New Project | The ASP.NET Site[^]
30 Apr 2016 by violence666
update:Since my initial question was very specific, i would like to start of with asking how do i inititate a simple bidirectional communication using tcp/ip?Hello,I want to receive H.264 video stream from a TCP/IP socket (without use of RTSP or other internet streaming protocols)...
30 Apr 2016 by leon de boer
The easiest way to start playing with this is grab telnet code its everywhere on the net in all flavours.Windows has both telnet server and client options standard you go to "install options" and you can choose either. You can therefore play with writing the client or server code and have...
31 Mar 2016 by Jochen Arndt
Your server sends initially the image size as integer and it is received by the client and stored in the variable size.What is printed by your client when it receives the size?According to the linecout
30 Mar 2016 by violence666
hello,i have designed a code for a tcp ip communication between raspberry pi and windows. the pi acts as a server and the pc acts as a client. the server listens on the port for any incoming requests form the client side. as soon as it receives a request, it sends an image to the client....
29 Mar 2016 by Jochen Arndt
When fopen() fails (returns NULL) check the global variable errno to know why opening the file failed and optionally get the error message using strerror(). To have access to errno, include the header file errno.h: #include // ...if( image == NULL){ int err = errno; ...
29 Mar 2016 by violence666
Hello,I have configured my raspberry pi as a server and my Windows pc as a client.The raspberry pi sends an image to the pc when connection is established.on the PC side, i am using Visual studio. I have included the dependencies of openCV2i used the following command: image =...
26 Mar 2016 by Amit Kumar Tiwari
.NET to Hadoop connection using Keytab file
24 Mar 2016 by Wolfgang Foerster
3D Tools for the Windows Presentation Foundation (WPF)
24 Mar 2016 by PJ Arends
First off, UINT32 is an unsigned int, not unsigned long. That may be why you are getting redefinition errors.You could put your definition inside a #ifndef protection block. #ifndef UINT32 #define UINT32 unsigned int #endif
24 Mar 2016 by Stan Huang
I've the following code snippet:typedef unsigned long UINT32;typedef struct{ char str[128]; UINT32 mSec; } SUB_SEQ_LINK;I've got compilation error using VS2012/C++ to compile it:D:\programs\ATP-3\ATP3MMI\MMI\Include\GlobalData.h(294): error C2371: 'UINT32' :...
24 Mar 2016 by Jochen Arndt
You are including your file GlobalData.h in different source files. Some of them include basetsd.h (which will throw a redefinition error when including GlobalData.h) and some do not (which will throw the missing type error when UINT32 is not defined in GlobalData.h).The solution is to...
9 Mar 2016 by Avelino Ferreira
Remembering the first time, being already an experienced programmer in VB and VBA, I felt the need to build my first reusable DLL.
29 Feb 2016 by chimcham
Hi Good Day,I would like to ask.. I met this code and I tried to run in VS 2013 in it is okay..public const string my●var = " "; But when I tried to run in VS 2015, Please help. Thanks.What I have tried:Already researched about const variable name with dot.. but...
29 Feb 2016 by OriginalGriff
Just to complete what Peter says: that code doesn't compile under VS2013 either:Error 1 Unexpected character '●'It's not a legal character in variable names in C# of whatever vintage.
29 Feb 2016 by Kornfeld Eliyahu Peter
If this code compiles on 2012 and 2013 (I doubt that), than it is a bug...According to C# specification such a sign can not be part of of a variable name (see 2.4.2 Identifiers)...For sure it does not compile in 2008/2010/2015...