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

Visual Studio 2010 

20 Feb 2024 by merano99
The problem is probably that Visual Studio 2010 does not support C++11 initialization lists for vectors. Although I cannot test with VS2010, I could imagine that this task could be solved with a template function. Here, a two-dimensional vector...
19 Feb 2024 by 0x01AA
There is I direct way without first declaring a helper vector: vector > myVector { /* Element 0 */ {1, 2, 3, 4}, /* Element 1 */ {5, 6, 7, 8}, /* Element 2 */ ...
19 Feb 2024 by dj4400
Hi all, I want to initialize a vector of vectors in c++ vs2010 I tried to declare a table of doubles double dTable[3][4] = { 1,2,3,4, 5,6,7,8, 9,0,-1,-2}; and then declaring a vector of...
12 Feb 2024 by Elmue
An easy to use 3D control which can be integrated into an application in a few minutes
15 Sep 2023 by Member 11408361
I'm completely new to VB.NET and have been given a homework assignment. I need to be able to read certain lines and display them in a DateGridView. I have been able to link my notepad .txt file to the DGV, however it reads the whole file as...
20 Aug 2023 by Ștefan-Mihai MOGA
How to download files from an HTTP server.
25 Jul 2023 by 2011999
Yes it is possible which drive in install, you need to install that drive in install SQL Management Studio Express edition. If support that more than one operating system.
9 Jun 2023 by FoxRoot
Hello everyone,I am developing ASP.Net MVC App. When I hit on F5 (Or clickin debug button), VS 2010 debugs and runs my app on the browser. No problem till here. However, debug stops by itself immediately(less than 1 second). So I tied to put breakpoint on Home controller, Index method....
17 May 2023 by MasterCodeon
hello everyone!i am trying to send a string to another application.the way i am trying to do this is by using the SendMessage function in the windows api, and i am setting the WParam parameter to a string value(when i imported the function i did use a string type for this parameter).now in...
6 Feb 2023 by Member 11115800
I want to Create a Login Form that the fields in password are case sensitive example if my passwords is "PassWord" it will only accepts the keyword "PassWord" and not accepts "password" Or "PASSWORD" keyword etc. I want it a character sensitive thanks Please Help me Im a new Programmer using...
30 Nov 2022 by Richa Vats
An Exception of type System.Exception was thrown when I am trying to open an already created window form in designer mode. This problem is coming when I am trying to open any window form which I have already created, in designer mode. I don't know why this error is coming. I need to edit my...
30 Nov 2022 by timothy collins 2022
Go to project. Then properties and delete any duplicate references or those references with error they are usually marked with a red I notation delete them and reload your design sometimes you may need to reboot the system if it persists
9 Aug 2022 by Delitur Per
Hi i just use the code of this: Adjust combo box drop down list width to longest string width[^] My problem is it go outside the screen's bounds. What I have tried: see the image below. it display longest text but it goes outside the windows...
9 Aug 2022 by OriginalGriff
So check it and restrict it to the screen width: Screen.PrimaryScreen Property (System.Windows.Forms) | Microsoft Docs[^]
15 Jun 2022 by Ank_ush
I am working on windows application. I have a datagridview in form. I want to hide the pointer of the Row Header(which is in traingle form or which occurs on the row selected). I don't want to hide entire row header.Thanks In Advance !!!
14 Jun 2022 by Aamir Mitha
I am a new user to visual studio 2010 ASP.NET and I am struggling to connect to my database. The code I am testing to try and get it working is as follows:protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new...
4 May 2022 by Bani De leon
How can i focus cursor on sepecific textbox. I tried using textBox1.Select(); This is working when on form load. But when i load item in the listbox does not select the textbox. Also i tried using textBox1.Focus(); Its the same. What i want...
4 May 2022 by Graeme_Grant
Looking at your code sample, I am assuming that you are talking about a WinForm app. Here is the documention on how to set the selected item in a listbox: ListBox.SetSelected(Int32, Boolean) Method (System.Windows.Forms) | Microsoft Docs[^] ...
25 Jan 2022 by Richard Deeming
Assuming you're talking about designing your form: Yes, you technically can use drag-n-drop to place controls on your WebForms form: Design your Web Forms apps with Web Live Preview in Visual Studio 2022 - Visual Studio Blog[^] However, in...
25 Jan 2022 by OriginalGriff
Does this help: ASP.NET - Drag and Drop on a Webpage[^]?
23 Nov 2021 by David MacDermot
This article describes the creation of a non-MFC custom PropertyGrid control.
10 Sep 2021 by Devendra Sarang
I am developing one software in VB.NET. Now I am creating setup project and add all the Prerequisites that are needed in project. this are Prerequisite 1[^] Prerequisite 2[^] I am adding setup of all of the Prerequisites along with my...
10 Sep 2021 by RickZeeland
Don't know about the VS installer, but a dual 32/64 bits installer can be made with Inno Setup using the IsWin64 option. See: inno setup - how to detect 64bit platform by script[^] You might also be interested in InnoDependencyInstaller:...
10 Jul 2021 by Jerrell77
Hello, i have problems with validating the file upload types. The rest are working fine but i have no idea how to validate the file types.Below is the part where i validate my file types: private void StartUpLoad() { string companyID = this.Label1.Text; string...
29 Jun 2021 by Ziya1995
I have been reading that unsafe is faster than Marshal.Copy,but the next 2 codes show converse results:Slower:unsafe { for (int i = 0; i
29 Jun 2021 by esteenbrink
As Sergey already mentions, it is not the keyword unsafe, but your code that's slower. You are using a for loop where Marshal.Copy most probably uses something like the c++ std::memcpy under the hood. std::memcpy takes advantage of block copy...
12 May 2021 by Paulo Zemek
A tutorial explaining how to create a Virtual Machine and a Compiler for such virtual machine
6 Apr 2021 by Member 879724
Deploy multiple SharePoint 2010 features with VS2010
6 Mar 2021 by Avirup Das
This tip describes an application to control with Sony TVs connected to your Home Wi-Fi network from PC.
6 Mar 2021 by nlakumar
I am trying to perform fade in transition on a Window. I am able to do the transition but only to the contents of the window. I mean the frame of the window and title bar are not transforming like the content in it. Please check the XAML code below and see what has to be done for the whole...
6 Mar 2021 by Member 14881992
set this property AllowTransparency = true;
17 Feb 2021 by ravitv
Ok friends - I gave up digging up to find a solution to upload all my .aspx, .aspx.cs, database folder App_code, App_Data,images etc in Godaddy.com webhost and make the domain go public. What I have tried: I did a simple dotnet project with sql...
17 Feb 2021 by farremireia
Hi! I know this might sound stupid and you have probably already done it but have you tried the help chat in godaddy? I have had some issues in the past in regards of the website going live etc and they have been able to guide me and help me! ...
23 Jan 2021 by Mehdi Gholam
In this article I demonstrate why fastJSON is the smallest, fastest polymorphic JSON serializer (with Silverlight4, MonoDroid and .NET core support)
21 Jan 2021 by Divin Ookken Athappan
Step by step explanation of 3D image rendering using OpenGL
23 Sep 2020 by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
23 Aug 2020 by shivanand3291
Hi, I am currently working with visual studio 2010 and MS access DB. i ahve installed crystal reports 2008. I use windows forms and a crystal reports viewer control in it. On a button click i want to show a report from database in a crystal reports viewer. But i encounter the following...
23 Aug 2020 by Member 14851467
I once encountered this error on my Windows 7 machine and it was resolved after I installed .Net Framework 4.5 on the machine.
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...
23 Jun 2020 by Ciumac Sergiu
Explains sound fingerprinting algorithm, with a practical example of detecting duplicate files on the user's local drive.
25 Apr 2020 by Shao Voon Wong
Benchmark between OpenMP, Parallel Patterns Library, Auto-Parallelizer and C++17 Parallel for_each
30 Mar 2020 by Vasily Tserekh
Collision algorithms aren't rocket science and this article proves this idea.
26 Mar 2020 by Michael Haephrati
How a computer can be identified in order to generate a unique ID
11 Mar 2020 by Dan Letecky
Create an AJAX monthly event calendar (with drag and drop support) displaying data from SQL Server database in just 10 minutes (including a coffee break).
29 Nov 2019 by Leo Chapiro
This tip shows how easy it is to debug the VBScript by using Visual Studio Debugger
28 Nov 2019 by sounsoun
Hi, i had the same problem, but I noticed that on the pc with the sqlserver already installed, the reports crystal report displayed correctly. I did research and finally I found that it was necessary to install "Microsoft® SQL Server® 2012 Native Client". and all Crystal reports are displayed...
24 Nov 2019 by KumarGautam
Add the code below code under the element in your app.config
13 Nov 2019 by Member 3751752
Use grid controls cellvaluechanged event for the student column and check if the student exists in the list? if not add the student to the table. and save the grid or save the customer data. Since the student not exist, you cannot add to the customer table? Hope this helps.
13 Nov 2019 by Mohammad Abdullaha
Hi, friends.. I have a problem relating to datagridview combobox.. I have a datagridview binded with a customer datatable, one of datagridview columns is combobox which uses student datatable as a datasource (means: datagridViewCombobox.datasource= studentDatatable).. Now, when the user adds...
13 Nov 2019 by pdoxtader
A multithreaded server class that accepts multiple connections from a provided client class. Each client can send and receive files and text (byte data) simultaneously along 250 available channels.
11 Nov 2019 by Suk H. Lee
WPF Window allows tabbing by drag and drop
20 Sep 2019 by dj4400
Hi I have a DataGridView with fixed number of rows and columns I want to change the rows height according to the whole form size - for example if i maximize the form i want the rows height to increase accordingly How can i achieve that? thanks dj What I have tried: Handling the Resize...
20 Sep 2019 by Member 3020851
// before binding it to dataset DataGridView1.RowTemplate.Height = 40; // bind data with dataset
16 Sep 2019 by CHill60
If you go to the bottom of the page at The TreeListView To End All TreeListViews[^] you will find the Q&A forum for that article. Posting here relies on the Author happening by - highly unlikely that you will get a response
16 Sep 2019 by MillerME
I've downloaded the TreeListView files and would like to use the TreeListView control in one of my VS2010 (VB.Net) projects. I need some help getting started. Can you please answer these questions? The CodeProject page is here: The TreeListView To End All TreeListViews[^] How do I add the...
10 Sep 2019 by Javaid Rafique
You can download Visual SourceSafe 2005 and use it with VS2008, VS2010, even VS2015 and VS2017 also.
10 Sep 2019 by MONISH K M
Hi,I would like to know that Visual Source safe come with Visual Studio setup or is it download separate.please Anybody help me.Thanks in advance.Monish K M
12 Aug 2019 by Member 13092868
This tool helps you create a label with given degrees of view angle. Also helps you estimate REAL label height and width by providing you linear correction functions to apply to inaccurate MeasureString values
28 Jul 2019 by Abduu Atef
I have a problem with accessing the process This is the code Dim p As Process = Process.GetProcessesByName("Wolfteam.bin")(0) For Each moz As System.Diagnostics.ProcessModule In p.Modules If moz.FileName.IndexOf("obj") -1 Then Label1.Text =...
28 Jul 2019 by Richard MacCutchan
See Process.GetProcessesByName Method (System.Diagnostics) | Microsoft Docs[^] for details on how the name should be specified. You can also check it by looking in Task Manager.
24 Jul 2019 by Mehdi Gholam
NoSql, JSON based, Document store database with compiled .net map functions and automatic hybrid bitmap indexing and LINQ query filters (now with standalone Server mode, Backup and Active Restore, Transactions, Server side queries, MonoDroid support, HQ-Branch Replication, working in Linux, .net
19 Jul 2019 by Nitin Surya
Hi.. i am using VB.net code and access DB. In my application i am doing some major table structure level changes through vb.net code. while doing this i am getting error File sharing lock count exceeded. Increase MaxLocksPerFile registry entry Access DB file version is 2000. using...
19 Jul 2019 by OriginalGriff
At a guess - and that's all it can be, we don't have access to your full code, or to your DB - you've opened so many Commands and so forth that you have exceeded the systems lock count, possibly combined with accessing the same Access file from too many users simultaneously. To fix the former,...
28 Jun 2019 by Member 14515951
#include using namespace std; class ToyotaModel { public: void name(char z); void codition(char y); void modelno(double x); }; void ToyotaModel::modelno(double x) { cout
28 Jun 2019 by Somesh Dhal
I have the following code -intellisense identifier is undefined// First_ATL.h : Declaration of the CFirst_ATL#pragma once#include "resource.h" // main symbols#include "ATLProject1_i.h"#if defined(_WIN32_WCE) && !defined(_CE_DCOM) &&...
18 Jun 2019 by armarzook
I have used the following code to extract the datagridview contents to an excel sheet. But the thing is i can't able to get the column headers in the excel sheet. Please assist me to get the column header in the excel sheet.Dim ExcelApp As Object, ExcelBook As ObjectDim ExcelSheet As...
16 Jun 2019 by Kenneth Haugland
Mathematical treatment of acoustic leaks in walls
24 May 2019 by Alexandros Pappas
This deletecertstore tool deletes certificate stores as a pendant to makecert
23 May 2019 by Saira Fazal Qader
Conversion of image to byte and Encryption using 128 bit key than Decryption using the same key and re-conversion from byte to image
9 May 2019 by kyrons
I have a program that can create a workbook. Inside a workbook is the Sheet1 and Sheet2. Sheet1 has dropdownlist control created programmatically using vb.net. it's working fine when this line of code is like this:Formula1:="=$A$1:$E$1" but when I change it to Formula1:="=Sheet2$A$1:$E$1" it...
9 May 2019 by Patrice T
Quote: How to create dropdownlist with source from another sheet in excel using VB.NET Since Interop is used to remote control Excel, it have Excel limitations, and Excel (at least on hold versions) do not allow what you want to do (at least directly). Excel do not allow droplists with an...
1 May 2019 by Member 14086051
add private variable for sourcestream put init block to Main function sourcestream = new NAudio.Wave.WaveIn(); and other setting delete while loop put this to thread's Service function sourcestream.StartRecording();
1 May 2019 by Member 10005477
Hi guys I am using the NAudio library to transfer voice over the network i.e. from my microphone to any other remote PC speakers for that i need some help i have used the Naudio library to record a voice from microphone and store it but now when i am trying to send it over the network i am...
1 May 2019 by OriginalGriff
Have a look at this: A simple "human scale" number to string converter[^] - it's in C#, but it's pretty obvious, and anything you can't understand you can feed to this: Code Converter C# to VB and VB to C# – Telerik[^]
1 May 2019 by Member 14333655
hello guys I am not a programmer so for me it is more of a hobby. I am trying to write a small routine that calculates electrical parameters' such as voltage impedance resistance current etc: I have no problems with the actual program, but what I want to do is get for example 5,000 ohms to...
21 Apr 2019 by anand.phaniraj
Dear Guys, I am trying to develop an OPC Alarms and Events Client (OPC AE) on Microsoft Visual Studio 2010 (on either C# or VB.Net, language is not a big issue) . I am using Simatic Net as the OPC Server (Siemens). I am through with the server side. But i dont know how to begin with the code...
21 Apr 2019 by payamss
I have the same problem similar to any connection at the back-end we don't have any kind of problem because Siemens handle the source but when i want to connect to opcae:\\myhost i have problem i can't retrieve any data i know something about ns=1;s=Temperature in node js or something like...
21 Apr 2019 by Sharath2790
My code was working fine till yesterday but today... It is coming up with this error:c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(4038): error C2039: 'exception' : is not a member of 'std'c:\program files\microsoft visual studio...
18 Apr 2019 by cvbharathi
Hi, I am working with visual studio 2010 with Oracle 10g back-end, i used ODT with ODAC 112012 to connect oracle 10g with vs 2010, after i enclosed a webform with Oracle database, but getting this error ,CS0433: The type 'Oracle.DataAccess.Client.OracleCommand' exists in both...
18 Apr 2019 by Member 14315647
Clean and rebuild the solution delete all ODATAACCESS reference in your library, clean rebuild, Open Nugget, add Odataaccess x86 clean rebuild Open the project path , delete file : Obj & bin Open C:\Windows\Microsoft.NET seach look for Temporary ASP.NET Files delete all file inside it...
13 Apr 2019 by Patrice T
Quote: How to put a VBA code inside command button of excel sheet using VB.NET? " xlWorkSheet1.commandbutton1.caption = "Generate...
13 Apr 2019 by kyrons
Here is my code in creating a command button in sheet1 and adding code in module: Dim xlMod As Microsoft.Vbe.Interop.VBComponent Dim objBtn As Object Dim celLeft As Integer Dim celTop As Integer Dim celWidth As Integer Dim celHeight As Integer celLeft =...
29 Mar 2019 by Nitin Surya
Hello. I am developing application with C#.net and sql DB, i am using dataset and adapters for data retrieve. I get dataset as empty if i run in timer or thread but if i run same query in sql server it give me some count of rows. When i run this code outside timer(on page lode or on button...
29 Mar 2019 by Richard MacCutchan
The test for rows count does not actually do anything; how do you know it returns zero? Also, you are creating a new DatasSet and SqlDataAdapter inside the timer_Tick method. So as soon as that method returns, both objects go out of scope and disappear. Why are you using a timer in the first place?
15 Mar 2019 by Maciej Los
Seems you're using VB/VBA instead of VB.NET... If i'm right, than you're in troulble, because MS Access engine does NOT support regular expressions. There's few alternatives: 1. You can use string functions[^] to split string into parts, for example: LEFT()[^] INSTR()[^] RIGHT()[^] 2. You can...
15 Mar 2019 by kyrons
I have an ms access database with table named "pop" and inside the table there are 3 columns, the first column named "itemnumber" which contains alphabet and numbers (e.g. sdfddf-12454), the second column named "itemalphabet", and the third column named "itemnumeric". The "itemalphabet" column...
15 Mar 2019 by Leo Chapiro
You need to use .NET Regular Expressions. It will be easy to separate the digits from alphanumeric characters by using this technique: you loops over all characters and checks whether the current char matches with pattern like [0-9]!
28 Feb 2019 by SSDiver2112
A custom Panel that creates a glow effect around a child control or a drop shadow when it receives focus
24 Feb 2019 by Mehdi Gholam
Smallest full text search engine (lucene replacement) built from scratch using inverted MGRB bitmap index, highly compact storage, operating in database and document modes
24 Feb 2019 by Member 14161585
Encryption software is installed on the computer and "Files Value and "b #e?" appears when debugging the code. I don't know how to solve it. Help me,please! What I have tried: Find the "... \ The'.csproj.FileListAbsolute.txt'file with the same name as the project in the folder of obj\Debug\...
20 Feb 2019 by Igor Krupitsky
Tool that will let you import data from SQL Server and Access to MySQL
20 Feb 2019 by Igor Krupitsky
This project will show how to create nested modals.
20 Feb 2019 by Igor Krupitsky
The ASP.NET pages let you upload, delete and browse files into a database.
15 Feb 2019 by Zijian
WCF development for real RAD in enterprise
28 Jan 2019 by Roger65
Selected Font name, Point Size and Weight are displayed
24 Jan 2019 by ngthtra
Hi all,I have a MFC dialog C++ application in VS2010, And my application has two textbox is source folder(txtSrcfolder) and destination folder(txtDesFolder) so when I drag and drop a file to txtxDesFolder, I want to assign full file path to txtDesFolder and the same to txtSrcFolder. But...
18 Jan 2019 by A.R Farooqui
how to add serial nos in crosstab in crystal reports??? plz help need quick answer
18 Jan 2019 by Jamshaid Riaz
Add this code in your SQL select statement: DENSE_RANK() OVER (PARTITION BY [COL1],[COL2] ORDER BY [COL3]) as Serial, This will add a Unique Row Number to each group of Record. Use this "Serial" Column in Crystal Reports as your serial number. To see an example goto the following link...
15 Jan 2019 by Igor Krupitsky
This Windows application lets you scan image in a given folder and generate CSV file to show barcodes for each image file.
2 Jan 2019 by Richard MacCutchan
The web application must run on a web server. You can use IIS on your local system to host it.