Click here to Skip to main content
15,892,161 members
Everything / Visual Studio / Visual Studio 2010

Visual Studio 2010

VS2010

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Dmitri Nеstеruk
Let's create a simple project estimation DSL using F#!
by Colin Eberhardt
This article describes the development of a cross-platform HTML5 application for Windows Phone and iPhone.
by Sergey Alexandrovich Kryukov
Display names and descriptions for enumeration members: a non-intrusive, reliable, localizeable method.

Latest Articles

by Elmue
An easy to use 3D control which can be integrated into an application in a few minutes
by Ștefan-Mihai MOGA
How to download files from an HTTP server.
by David MacDermot
This article describes the creation of a non-MFC custom PropertyGrid control.
by Paulo Zemek
A tutorial explaining how to create a Virtual Machine and a Compiler for such virtual machine

All Articles

Sort by Title

Visual Studio 2010 

7 Sep 2014 by Member 10973822
Hello everyone, can someone help me with wpf buttonI want to remove the border and button glow effect.my button has an image background, it changes when the mouse hover but the button glows.here is the button code, I'm using visual studio 2010
7 Sep 2014 by Jawad Shairf
you can simply override the default border brush to your own border brush
30 Oct 2014 by Member 11194404
Db: accessim using Visual studio 2010what syntax to use for making the datagridview output only the data that is in the database only using for example Birthdate = date today not the year..im making this bday reminder program, just a simply day to day reminder who will be having a...
30 Oct 2014 by Robert Welliever
I'm not sure I have the syntax correct as I don't want to open Access and find out, but the idea is that you use the DatePart function in Access. You can compare parts of dates with it. Try something like:SELECT * FROM BIRTHDAY_TABLEWHERE DatePart ("m", [BDAY_FIELD]) =...
30 Oct 2014 by Member 11194404
kinda confused on this part.. =/If Not con.State = ConnectionState.Open Then con.Open() End If Dim da As OleDb.OleDbDataAdapter Dim Sql As String Sql = "SELECT * FROM bene_records where b_date" ''
24 Jan 2014 by Member 20
HiI am using RPC Client and Server interface. I am able to build in 32 bit but when I change it to 64 bit, I am getting error "Invalid build platform for this stub" and it is pointing to below lines:#if !defined(__RPC_WIN32__)#error Invalid build platform for this stub.#endifHow to...
24 Jan 2014 by OriginalGriff
See here: MSDN: Targeting Stubs for Specific 32-bit or 64-bit Platforms[^]
7 Nov 2012 by armarzook
Dear Coders,I have given the code below which i was working. All goes well but when existing the program a null exception error happens with the message "Object reference not set to an instance of an object"Please helpDim con As New SqlConnection Dim myconstring As String =...
7 Nov 2012 by ashriv
"Object reference not set to an instance of an object" error occurs when try to get/set null value.In your code , this situation might be occurs many places1. ComboBox1.SelectedValue.ToString ComboBox1.SelectedValue does not fetch any value.2. da.Fill(dt) when you try to fill data...
7 Nov 2012 by ashriv
object obj = ComboBox1.SelectedValue;if(obj != null) Dim sql As String = "SELECT mat_sub_no FROM e1 where project_id='" + obj.ToString + "'"use this code, it might be work with you.
7 Nov 2012 by Aarti Meswania
If you have put this code inside New() method [Constructor]thenmake sure you have called InitializeComponents() before codeelseput code inside this conditionIf ComboBox1.SelectedValue Isnot Nothing then .... 'your codeEnd IfHappy Coding!:)
25 Feb 2011 by Kunal Chowdhury «IN»
"Quick Find" a better way using Visual Studio Productivity Power Tools
16 May 2014 by Sidharth R
Vb code for passing parameter to a workflow..my form code is give belowImports System.ThreadingImports System.ActivitiesImports System.Activities.HostingPublic Class Form1 Dim param As Dictionary(Of String, Object) Dim wInstance As WorkflowInstance Dim...
11 Jan 2016 by Thakur JAI SINGH
Hi,I am trying to run VS2010 command prompt but it gives error 'cl.exe' is not recognized as an internal or external commandI have googled it found the below solution but unfortunately it did not help me still the issue is there.[^]I set path variable in advance system...
11 Jan 2016 by Abhinav S
Add the location of cl.exe in the PATH environment variable.
26 Jan 2011 by OrlandoCurioso
Customize an internal designer by encapsulation in a custom component designer
26 Sep 2012 by Ajay1242
The application is created in 'VS 2010 Ultimate' website model. My operating system is 'Windows 7 Professional' which is 64 bit. I have installed SP1 also. During compilation i am getting below errors-'Textbox' or label is not declared. It may be inaccessible due to its protection...
26 Sep 2012 by wings_
make sure that you declare texbox and lables under the tag..due to this above error is occurd
5 Feb 2013 by Fadao
Hi,Go to page design (Default.aspx.designer.vb) and declare as below.Protected WithEvents txtName As Global.System.Web.UI.WebControls.TextBoxThanks,Fadao
17 Apr 2012 by Mehmet Mutlu
Details of my solution algorithms, implemented programs, and the results I have concluded.
25 Feb 2014 by Stefan_Lang
I am using VisualStudio2010, and the problem I have refers to the "Find in Files" feature and dialog.I have a directory structure on my computer that looks roughly like this:long_path...\ Working_copy_1\ External_library_1_includes\ External library_2_includes\ ...
16 Jul 2015 by phil.o
NumericUpDown2.Value = Label8.TextValue property of NumericUpDown class is of type Decimal; whereas Text property of Label class is of type String. There is the problem: you try to assign a string value to a decimal one.One valid way to do that would be:Dim dec As DecimalIf...
16 Jul 2015 by Matt T Heffron
Two issues:One actual, one potential.Actual: You can't assign the Label8.Text (string) to the NumericUpDown2.Value (decimal).This will give a compile error.Potential: What are the values of NumericUpDown2.Minimum and NumericUpDown2.Maximum? The numeric value assigned to the .Value...
16 Jul 2015 by phil.o
Here is a more general answer for you, as I see that you did not get an important fact. It may not help you for your homework, but you may get some very useful habits as a developper:always begin a consequent homework early enough, because debugging is not an optional field for a developper,...
30 Mar 2015 by Richard MacCutchan
You may need to install the C/C++ runtime libraries on the target machine. See https://msdn.microsoft.com/en-us/library/ms235299.aspx[^].
20 Aug 2014 by Sandeep sunku
This article explains the boot strapping process of .NET Application.
4 Nov 2016 by Mr. xieguigang 谢桂纲
.NET language Canvas control for Interactive visualizing network data.
7 Aug 2014 by Jerry.Wang
Modify methods' IL codes on runtime even if they have been JIT-compiled, supports release mode / x64 & x86, and variants of .NET versions, from 2.0 to 4.5.
18 Oct 2011 by Redgate Software
Identifying an application’s performance bottlenecks is all about understanding how the application is spending its time. Only with the most complete understanding of how an application is operating is it possible to understand what it is doing wrong, as this article describes.
27 Jun 2013 by ashriv
Is the C#.Net 4.0 based windows application Compatible with Windows XP SP2 or below?I'm in process to develop a windows application using C#, .Net Framework4.0 using visual studio 2010. for Reporting, I am using SAP Crystal report.my Question is - Is this application Compatible with...
24 Jun 2013 by Ron Beyer
Here is the requirements for 4.0[^]Windows XP is supported. .NET 4.5 does not support Windows XP though.
31 Aug 2010 by Livio Francescucci
How to create an ASP.NET gridview AJAX enabled connected with WCF SOAP and REST webservices.
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
28 Aug 2014 by NILADRI SEN
First of all, sorry for this extra descriptive question.I was implementing my own assembly rather calling anything from GAC! I started with a Class Library project in Visual C# 2010 Express edition. The file Class1.cs looked very simple as:using System;using...
16 Jan 2012 by Simon Bridge
Multiple-file, searchable, streaming compression library implemented natively in .NET.
15 Jul 2014 by AlexF185
A dynamic progress bar control easy to use and literally plug and play
20 Sep 2014 by Sandeep sunku
This article showcases on explaining the Threading concepts available in .Net
14 Mar 2014 by Nikita D. Sinelnikov
HowTo: make the report background (elements) of Microsoft .NET Report (.rdlc) non-printable
23 Oct 2014 by BrokenEvent
.NET WinForms Tray icon implemenation with Win7 and Vista features: GUID identification, large custom icons, custom UI instead of the hint, etc.
8 Mar 2011 by Debojyoti Majumder
I have .Net WMI Provider extension.I am Installing my provider using InstallUtil.If I remove my assembly without uninstalling using InstallUtil. During installation the MOF file is getting created successfully but it's failing to compile. It giving error like this...An error...
17 May 2011 by nileshbahirshet
I had added .pfx file in my project, It was developed in vs2005.I have converted this project from vs 2005 to vs 2010.I have install the certificate again.now the .pfx file is giving problem. it shows 3 errors, as below...1.Error 3 Cannot import the following key file:...
10 May 2012 by Member 9648718
I've found this an issue with 2010 projects as well. Creating an empty file with the name of the KeyContainer path has help (ie in this case an empty file called VS_KEY_BB29B0994ABBAB54) This at least helps with error dot point 3 you've listed.
29 Oct 2012 by Virendra_ec10
Hello C++ Gurus,I created a 64-bit COM DLL by compiling a 32-bit application in visual studio 2010(Mode-Release, Platform-x64) and registered it successfully using Regsvr32.exe tool.I am trying to create the instance of the dll but, I am getting "Class Not registered " error in the below...
29 Oct 2012 by enhzflep
I'm still(hopefully will remain?) pretty wet-behind-the-ears with respect to COM work. Though I do note that the behaviour you report is the same as that which I observe when starting a 32bit COM server under either windows xp or 7.That is to say CLSIDFromProgId does just that - it returns...
11 Jul 2013 by Dattatraya Mengudale
Please refer..http://www.gfi.com/blog/32bit-object-64bit-environment/It will really solve your problem...
12 Jul 2013 by PrafullaVedante
If you are trying to create a COM object from a 32 bit dll/exe , then your 64 bit com object cannot be instantiated . Because Windows maintain separate entries for 32 bit and 64 bit COM objects. Hence make sure that your COM object and your container application belongs to same architecture...
5 Apr 2013 by suhail19
this the code I am using in visual basic 2010 ultimate.I have also used the following youtube link. It is more or less all the same but I cant seem to find what is causing the error. The error is where is says "grdProperties"http://www.youtube.com/watch?v=4H2g8H0bqEg[^]Imports...
5 Apr 2013 by OriginalGriff
Check the name of your control (I assume it's a DataGridView?) in the designer - it isn't called grdProperties! If it is, then it would be both declared and accessible within the form. Did you add it to the wrong form?
24 Oct 2015 by Kailash Shastri
Tips and tricks to speed up your VS.NET builds
20 Jan 2015 by charles922
3D programming with OpenGl and C# to create an interactive puzzle
3 Nov 2014 by Shivprasad koirala
6 important uses of Delegates and Events
15 May 2010 by Shivprasad koirala, Shah Chintan
7 simple steps to run your first Azure Queue program
19 Jul 2015 by Revanth Ramesh
Futuristic Talking 7-Segment Time Display Widget in WPF
26 Feb 2014 by Shivprasad koirala
9 simple steps to run your first Azure Table Program
8 Dec 2012 by ilostmyid2
hiwe use SVN in a team work. in the solution there's a project for building MSI file called Setup. the project is indeed a vdproj file.i've changed Setup.vdproj and found that someone else also changed it and committed the changes before me. so i've to Update, but the SVN itself can't merge...
10 Dec 2012 by yaser shadmehr
Unfortunately, setup projects (vdproj) don't have an ideal experience for source control integration. WIX (Windows Installer XML) is better than.And for your problem , you should convert both of vdproj to wix and compare them.How to convert vdproj file to wix format[^]Automate...
10 Dec 2012 by ilostmyid2
به این میگن یه جواب مختصر و مفیدممنون
12 Jul 2014 by ilostmyid2
hii've a dockable pane in my program with three child windows, a tab ctrl and two toolbox-like windows. since my program's window may be resized by user, the dockable pane should have vertical and horizontal scrollbars which have to get visible when required, so that the tools may be exposed...
12 Jul 2014 by Richard MacCutchan
You need to study the message and notification handling process for these controls. When a scrollbar is clicked or moved, it sends a notification message to its parent window, so that window needs to handle the message and repaint itself according to the direction and amount of scrolling. As to...
15 May 2015 by ilostmyid2
for some reason, i need the .aps file which is created by visual studio 2010 not to be located in the default location which visual studio defines. i need it to be created somewhere else, like the temp folder (%temp%). is it possible? if yes, how?
7 Jun 2015 by ilostmyid2
The following code results in "5,3", while i expect it to result in "0,2". Essentially, this is why we use bitfields!void f2(){ struct s1 { short a:9; char b:4; }; union s2 { s1 c; short d; }; s2 e; e.c.b = 5; e.d = 0; // i expect that a & b of c both get...
7 Jun 2015 by KarstenK
You must understand unions in C. Here is a tutorial. The member share memory, so you can do strange and buggy things with.A short is only 2 bytes. And sizeof return bytes, so (9+4) / 8 and alignment.
7 Jun 2015 by Frankie-C
Many aspects of bitfields implementation are compiler dependent, and this creates some problem when packing values because the layout is undefined.Anyway one main rule that the many compiler use is to differentiate between data types for packing. Meaning that is packed while in the same type,...
9 Dec 2017 by ilostmyid2
I migrated a solution from VS 2010 to VS 2017. When I build the solution, some files are reported to be missing while they're existing in the specified paths. The solution (which is in C#) was compiling in VS 2010 without any problem. The filenames are the same except their cases. I need to know...
9 Dec 2017 by Richard MacCutchan
File names are not case sensitive, but text strings in code certainly are. However, we have no idea where the problem is occurring, or even what programming language you are talking about.
9 Dec 2017 by ilostmyid2
This is not a VS issue. The drive has been mapped by SFTP Net Drive. For such virtual drives, in which the original drive is case-sensitive and will be mapped in Windows which is not case-sensitive, there's an option in the last tab, 'Drive', which one should set it. It's: Handle case-sensitive...
13 Jul 2020 by ilostmyid2
Hi We know that 32-bit exe files can't run 64-bit dll's (call their functions) and vice versa. We know that a 32-bit package (MSI Windows Installer) may be installed on a 32-bit Windows and a 64-bit Windows, while a 64-bit MSI package may be...
10 Jun 2014 by LucasRLS
I need to implement charts with square grid lines. The pixel value of a delta in X need to be the same as a delta in Y. How do it? this apper to be really simple, but I didn't find exemples in c#. I tried it, but the values do not converge in a chart run time modified... public void...
19 Aug 2014 by LucasRLS
I just need to implement it as a PrePaint. As my program is resizeble, I had to do a similar function to implement at Resize Event. Othe requisite is the required redraw of charts. For that, I must have a stoper, I suggest to use a if condition (Foo.Zoom_). I removed my project info of this...
30 Oct 2014 by Member 11194404
This is the part that I dont know the syntaxI want that my form automatically loads the data from the Databaseby using the b_date but only display the records if there is a match in month and datenot using the year, The program is like a Birthday ReminderPrivate Sub...
30 Oct 2014 by OriginalGriff
Try:SELECT * FROM bene_records WHERE DATEPART(mm, GETDATE()) = DATEPART(mm, dateColumn) AND DATEPART(dd, GETDATE()) = DATEPART(dd, dateColumn)
30 Oct 2014 by Maciej Los
Please, read my comment to the solution 1I'd suggest query like this:PARAMETERS [mnth] INT;SELECT FROM bene_recordsWHERE b_date BETWEEN #DateSerial(Year(Date()), [mnth], 1)# AND #DateSerial(Year(Date()), [mnth]+1, 1-1)# Above query should return data for given month...
17 Nov 2014 by Member 10307999
Dear all:I'd like to encryption & decryption a password for CString on MFC, having searched the problem on google; However, I can't find a solution I can use...The encrypted string is not very important so I only need a easiest way to encrypt & decrypt it.I hope someone could give me a...
17 Nov 2014 by Garth J Lancaster
A simple MFC class to encrypt data with the Crypto API[^]
28 Nov 2011 by AndrewG1231
I have been upgrading a program from WinXP to Win7 and I would like to take advantage of the ability to preview the contents of the data in saved files. The original data files are images and the file format is custom but they are displayed as bitmaps within my program. In my efforts to learn...
28 Nov 2011 by barneyman
the preview handlers are COM objects - so you're best off starting an ATL Project (DLL) and adding a Simple Object to itYou can use BNF[^] to register your DLL (there will already be an RGS file for your object you can augment) - this will automatically get called when you regsvr32.exe your...
27 May 2013 by Member 10053453
Have you found the solution for it..i also have to preview an image in preview pane. I dont understand why they have used CreateStyleSheetNode() ??? Could you please send me information on my email id [deleted email] thanks...
27 May 2013 by Espen Harlinn
Have a look at: View Data Your Way With Our Managed Preview Handler Framework[^]Best regardsEspen Harlinn
18 Mar 2011 by #realJSOP
Instead of getting the red circle, I get the hollow circle with an exclamation point icon, and when hovered, it says:This breakpoint will not currently be hit. No symbols have been loaded for this document.I've tried shutting everything down, deleting the bin and obj folders, and even...
18 Mar 2011 by Yusuf
John, I am really disappointed. Aren't you who scold people for not harnessing the power of google. See what I found using your own words[^]: http://social.msdn.microsoft.com/Forums/en/vssetup/thread/000cefdc-369c-421d-8e23-8c4e7c312ee1[^]
18 Mar 2011 by Sandeep Mewara
By any chance can this be it?:Unable to DEBUG Silverlight project?[^]Might be the Silverlight debugging is off, but I doubt it as you surely must have checked that in the first place.
8 Feb 2011 by siaswar
I want to use crystal reports for vs2010 that not included by default and should be download from site: CRforVS_13_0.exe[^].I'm trying to download it but it fails. The download support resume but not work. So I'm unable to download it. I try to download again but receive this...
4 Feb 2011 by Henry Minute
I have just tried to download from your link and everything is going fine.It must be you. CONFESS! What have you done to upset BusinessObjects?[Update]The download completed and installed with no problems.You do realize I shall now have to wash my computer out with bleach, don't...
1 Sep 2011 by Brian C Hart
I have a page where we want to either display an image of a product if the image exists on the disk of the web server, or if not, we want product features description text displayed.My approach was to implement two asp:Panel controls, one to hold the containing the asp:ListView that...
1 Sep 2011 by #realJSOP
Write a method in your code behind, put the if in there, and call your method from the markup.public void ControlEval(string evalThis){ if (pnlFeaturesText.Visible) { Eval(evalThis); }}and then you can do this:
2 Jul 2015 by SujataJK
I am new to Software development in C#.net.I have developed Windows Application using VS 10,.Net frame work 4.0,C# language,SAP Business Object's Crystal Report 2008.I have built Setup File.Its Working Well On Windows 7 but When I am going to install my setup on Windows XP It Gives Following...
19 Dec 2013 by Rahul Rajat Singh
A discussion about backbone.js and marionette.js frameworks and how we can use them to create single page JavaScript applications
3 Apr 2013 by Rahul Rajat Singh
In this article we will try to understand what are WCF REST services and how can we create one.
31 May 2013 by Mohammed Hameed
Hi Experts,Can anybody suggest me a best approach on how to generate a XML file programmatically using C# other than XmlReader/XmlWriter? (so that parsing it should be easier).Basically, it is a Xml Hbm mapping file for NHibernate. Any .NET Api available for reading/writing Hbm files...
31 May 2013 by Jignesh Khant
System.Data.DataSet ds = new System.Data.DataSet(); System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter("Select * from demo", "Data Source=184.107.55.15;Initial Catalog=demo;User ID=sa;Password=1947"); da.Fill(ds); // Write to XML...
17 Dec 2014 by George Jonsson
You can use XmlDocument[^].XmlDocument xmlDoc = new XmlDocument();XmlElement elRoot = xmlDoc.CreateElement("body");xmlDoc.AppendChild(elRoot);XmlElement elParam = xmlDoc.CreateElement("param");XmlText elValue =...
23 Apr 2016 by pdoxtader
Wait, timeout and evaluate early thread release criteria easily and clearly with WaitTimeout
1 Jul 2010 by Wayne Wood
Verify the execution efficiency of a series of short .NET 4.0 parallel programming samples
10 May 2010 by logicchild
An article that defines managed threading from the basics to the intermediate.
1 Sep 2013 by Bernardo Castilho
A calculation engine that is small, fast, and extensible.
13 May 2010 by logicchild
An Article the Demonstrates How to Build a Windows Forms Calculator
10 Dec 2013 by Rahim Lotfi
Customized Three-tier (layer) Architecture for Application and Web Design