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

Visual Studio

Visual-Studio

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Martin Mitáš
How to support scrolling within your controls.
by Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.
by Hans Dietrich
XQueue implements a shared-memory first-in first-out (FIFO) queue, based on memory-mapped files, that works on all versions of Windows.

Latest Articles

by Shao Voon Wong
A new C++ SAX library to simplify parsing
by Shao Voon Wong
Tutorial on a cross-platform C++ XML DOM library
by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by PJ Arends
How to use a .props file for your custom user settings across all your projects

All Articles

Sort by Title

Visual Studio 

26 Aug 2013 by Arjun Kerala
Hello, I Made a Program With VB.Net 2010 With a MS Access 2007 Database.I Used a Crystal Report in My Program. The Program is Working Fine But When I Take The Program To Another Computer It Works Fine and Saves Data and View Them But When I Click On The Button That Opens Form With The Crystal...
26 Aug 2013 by Hasan Habib Surzo
Actually crystal report not come with Visual Studio 2010. so you have to download it.here is the link.https://www.sap.com/campaign/ne/free_trial/crystal_reports_visual_studio/index.epx?url_id=text-na-sapcom-crvs-trial-landing&kNtBzmUK9zU=1[^]sing up as developer and follow the...
5 Jun 2023 by Le lance Flamer
Hello, Microsoft Visual Studio 2022 problem: I made a simple program that converts text to an URI and after it gets generated, the program will ask the user if they want to copy the URI to use it somewhere else. I need to use the...
4 Jun 2023 by OriginalGriff
Put the text cursor in the word "Clipboard" and hover the mouse over it - a symbol will appear at the beginning of the line. Click it with the mouse and it'll make suggestions as to what you need to do, which is almost certainly to add a using...
5 Jun 2023 by Alan N
I had something similar recently with VS2017. I can't remember what I did to fix it but most likely I would have done a super clean on the project. I do recall that there was nothing wrong with the source code. Super Clean 1) Delete obj...
5 Jun 2023 by Le lance Flamer
Well, I fixed it myself. The file of the class was the problem: Now I can access all everything as they should. But I still don't understand why it didn't want to work at the first place. Here's the solution: Delete the file then recreate it. It...
22 May 2016 by OriginalGriff
Have a look in the install log and see if there is anything obvious there: Download Microsoft Visual Studio and .NET Framework Log Collection Tool from Official Microsoft Download Center[^] will put a CAB file into your Temp folder containing teh install-so-far info. It may be of use.If it...
22 May 2016 by wardakhan
First, I downloaded VS 2015 on windows 8(not IOS file) thrice I installed VS while installing I got an error packages missing or damage. I clicked to download from the internet, but nothing happened. Then I installed windows 8.1 and downloaded VS 2015- community(IOS file) and I got same errors...
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[^]
23 Jan 2022 by Member 15435636
When I try to add a view, an error message pops up saying "Arithmetic operation resulted in an overflow" What I have tried: I've unsuccessfully tried rebooting my PC, restarting and updating Visual Studio Community 2022
23 Jan 2022 by Member 10163600
I have the same problem with VS2022 Community. Released version. It's an MVC4 project.
23 Jan 2022 by M Imran Ansari
Quote: This issue already reported for fixation. Kindly open your Visual Studio in Admin mode to avoid this exception. I would suggests open as Admin by default. To open you Visual Studio in Admin mode, open VS installed folder. Right click on...
23 Aug 2005 by Its Piyush Gupta
In the Vista world, application type selection is based on security requirement and deployment method but not on user interface requirements. This article describes various application types supported by Avalon sub-system of the Vista operating system.
5 Sep 2001 by Marat Bedretdinov
Shell interfaces in use. IShellFolder, IEnumIDList, etc.
26 May 2010 by Mike Corley
C# (.NET and Mono) library provider for RRDtool
29 May 2003 by Nicolas Bonamy
Simulate the Class Wizard in VS.NET 2003
24 Sep 2012 by Member 7909353
Hi,In Visual Studio 2008 -> Visual C++, I create a simple dialog. Afterwards I right click on the project in solution explorer and select "Add Class...", and then the MFC Add Class Wizard pops up. I want my dialog to be a "CMFCPropertySheet", but the Base Class field does not allow me to do...
24 Sep 2012 by Richard MacCutchan
See the note here[^] that states: This page is specific to Microsoft Visual Studio 2012/.NET Framework 4.5
25 Sep 2012 by Member 7909353
CMFCPropertySheet class is avialable in vs 2010,2012 not in vs 2008
23 Aug 2014 by junaid2
i have created an application in which i have designed a crystal report and the application has single winform in which there is a crystal report viewer. everything is fine and working but when i try to run that same application on other PC an error occurs saying "crystal report application name...
23 Aug 2014 by OriginalGriff
This isn't a problem we can solve, or even help with that much: we don't have access to your code or to the "other PC".The chances are that when you try to run the app on a different PC, one or more of the assemblies, resources or frameworks that your app requires is not installed, and so it...
4 Feb 2003 by Nicolas Bonamy
Two simple ways to add "Do not ask again" Message Boxes to your application.
2 Sep 2013 by Manish Arya
Dear All, private void btnSave_Click(object sender, EventArgs e) { string connstr = @"Server=.\SQLEXPRESS ;Initial Catalog=RPSJDB;Integrated Security=True; Max Pool Size=100"; SqlDataReader reader = null; SqlConnection conn = null; ...
2 Sep 2013 by saguptamca
You must check mobile number value before inserting into database(because it's numeric datatype in your db).Check whether its null or not, it is then handle situation by writing different queries.
19 Jul 2010 by Gregory Gadow
I am redesigning my company's website. Because so much is getting rewritten, I decided to upgrade from .Net 2.0 to 3.5 (the most recent version we have.) Since the change was made, I have been getting a persistent warning in VS 2008: Errors occured while compiling the Xml schemas in the project....
6 Dec 2020 by ShantanuHadap
I have developing an Windows Form application in C# Visual Studio 2012.I want to close the application by pressing "ESC" key.My doubt is which keypress event should I use? Form_KeyPress or textBox_KeyPress?
5 Dec 2013 by CPallini
I suppose tou should use the Form ProcessKeyPreview[^].
5 Dec 2013 by CHill60
I would suggest that this is a good time to experiment and see what happens. What if the textbox doesn't have focus - does your form exit?This will lead you to the correct decision.
5 Dec 2013 by PDBHONGAON
You can use this :-Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.Esc Then End 'or Me.Close() End IfEnd Subwrite below line on button's close...
5 Dec 2013 by agent_kruger
just write this on Form1_KeyDown eventif(e.KeyData==Keys.ESC){ this.close();}
5 Dec 2013 by BillWoodruff
If you set the Form's 'KeyPreview Property to 'true, then it will handle a Key Event before any of the Form's Controls get the Key Event.I would strongly suggest ... since you are doing something which is not quite standard Win UI design ... that you build in a safety mechanism so the user...
6 Dec 2020 by Member 8303221
You could over-ride the ProcessCmdKey method. Just add this code and it jsut works. protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { bool fHandled = false; switch (keyData) ...
20 Sep 2022 by Mateen Khan
I have a winforms application which was working fine. Recently i formatted my system and reinstalled VS 2008. From that time the application has stopped running.When i run it through VS it gives error"exception has been thrown by the target of an invocation."I went on to debug and...
15 Mar 2012 by Mateen Khan
Eventually I solved this myself. It was just a matter of getting to the root of the problem.Actually the cuase of this exception was another exception which occured inside the method being invoked.So i went to look out for solution by searching the exception ex.innerexception .From there...
5 Jun 2012 by Nilesh (Puna)
Disable the ajax for a moment (EnablePartialRendering="false" on the scriptmanager).we Got Exception aftr that delete EnablePartialRendering property.
21 Dec 2012 by Elegantly Wasted
Great said by Mateen Khan, you need to understand what is you controls default value..eg i'm using combobox in silverlight and i was trying to bind its selected indexas a default its selected index was -1but it was get nothing from the respective property ...I looked inside...
20 Sep 2022 by Member 15773989
for the said error, we are talking about inner exception. How to get this inner exception? running bat "${NUGET_HOME}/nuget.exe restore Dotsolution.sln from jenkins file and getting this error: Error parsing solution file at...
13 Dec 2010 by niknishu
Hello,When I click on execution of asp.net application, when loading of page on browser, I get following exception error message:"Failed to create AppDomain"despite search results via google on this following steps dealing with renaming of security.config or doing caspol -reset didn't...
28 Jul 2011 by Member 8120835
Step 1 :Delete the 1.security.config 2.security.config.cchfrom the below linkC:\Documents and Settings\Admin\Application Data\Microsoft\CLR Security Config\v2.0.50727.42here the "Admin" user may changes depends upon your user nameStep 2 :Go to Microsoft Visual...
4 Nov 2005 by eug_acc (Eugene Akimov)
A photo images gallery browsing template - CatalogView style.
9 Nov 2011 by vikky08
What is wrong here in the code Dim sReaderList As StringsReaderList = New System.String(vbNullChar, 2048) Dim x As Integer = Convert.ToInt32(sReaderList)When debug it produce "Format Exception was Unhandeled"and Input string was not in a correct format in vb.net
10 Nov 2011 by Timberbird
You are trying to convert a string of 2048 NULL characters to integer value. Of course it would give an exception. What are you trying to achieve?
23 Jan 2013 by Alpman
I have a question about generating a new type while writing a unit test in Visual Studio 2010.I have a project "Donk" for the code and a test project "DonkTest" for the unit tests. The test project has a reference to the project "Donk".In my unit test I write something likeDonk d =...
26 Apr 2015 by Herbisaurus
Why, when I select "get latest version" it does not really get the latest version. If I delete a local file, and I want it back, I select get latest ... only to find it does not get it. Instead I get an "All files are up to date" message. What up?
26 Apr 2015 by Mehdi Gholam
Read this for recovering files : http://geekswithblogs.net/TarunArora/archive/2012/11/26/how-to-undelete-files-in-tfs.aspx[^]
26 Apr 2015 by Joezer BH
TFS's get latest version actually gets only what files the server thinks you are missing or were changed. Thus if you want to get the latest version regardless of what the server thinks, you should select "Get specific version" and then check both of the Overwrite checkboxes.Cheers, C
21 Nov 2013 by arevant
Hi,I am a completely new to MVC and am in first tutorial. I am getting an error while adding a controller. The complete text of error is "Unable to retrieve metadata for "Project.Model.ModelName". Unable to find requested .Net Framework data provider. It may not be...
12 Nov 2007 by Lou Franco
Atalasoft leverages their DotImage toolkit to manipulate color channels for the purpose of image enhancement, in this case satellite images. The article is a tutorial on image enhancement and it includes all source code and test images.
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" ''
2 Jul 2013 by Sebastian T Xavier
Hi all,I have a web setup project of my REST Web Service which is working correctly in 32 bit OS. I have a prerequisite of .net framework 4.0 & a launch condition for IIS. When I try to install this in a Windows Server 2012(With IIS8 is setup), an exception is thrown.Installation is...
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[^]
4 Jun 2013 by Vasudevan Deepak Kumar
When you type Script Lang...,Visual studio objects to 'Language' and prefers something like 'Lang' telling that HTML5 has no such attribute like 'language' for script tag.Is this a Microsoft-driven HTML5 extension or W3C recommendation? I could not find an equivalent citation in the...
4 Jun 2013 by Sergey Alexandrovich Kryukov
In HTML5, the "language" attribute for script is claimed obsolete:http://www.w3.org/TR/html-markup/script.html[^].However, nor attribute, neither "lang" weren't really needed earlier. Please see what HTML 4.01 specification...
17 Nov 2012 by armarzook
Dear Coders, Please Help me regarding the error "Object reference not set to an instance of an object" The Source code is:Imports System.Data.SqlClientPublic Class Form3 Dim con As New SqlConnection Dim myconstring As String = "Data Source=ETA-TESTSRVR;Initial...
17 Nov 2012 by OriginalGriff
Ah!then you need to look at Mat_Sub_NoComboBox.SelectedValue.ToString - since it is in the SelectedIndexChanged methoid, the most likely reason is that there is nothing selected. Check the value of Mat_Sub_NoComboBox.SelectedValue at the top of your method - if it is Nothing then you either...
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!:)
30 Apr 2013 by FARMAN786
This is the actual code and in this I am taking the values of the datagrid and sending it to the db through a sql stored proc, all the help appreciated. Please let me know if anything wrong in this that is causing the error Private Sub BtnSendToGP_Click(ByVal sender As System.Object, ByVal e...
30 Apr 2013 by Sergey Alexandrovich Kryukov
You did not show where the exception with the message "Object reference not set to an instance of an object" is thrown. Not to worry. This is one of the very easiest cases to detect and fix. It simply means that some member/variable of some reference type is dereferenced by using and of its...
30 Apr 2013 by Sandeep Mewara
There should be more in the stack trace.Based on above code, most susceptible lines are: VarItemNumber = DtGridView(0, cn).Value.ToString VarItemDescription = DtGridView(3, cn).Value.ToString VarUnitOfMeasure = DtGridView(4,...
30 Apr 2013 by FARMAN786
Hi Sergey,We can get rid of the last column by using the syntax below. DtGridView.AllowUserToAddRows = FalseThanks a lot for all your help.
16 Dec 2003 by Todd.Harvey
Imitate Windows Paint.exe using C# and CsGL
18 Oct 2015 by planetz
Hello All,I am getting "Provide value on 'System.Windows.Baml2006.Type.ConverterMarkupExtension' threw an exception" while creating new project in visual studio 2010. And even existing projects are not opening.This is happening after windows 8 got upgraded to windows 8.1. Before that it...
18 Oct 2015 by Maciej Los
Have you seen this: Provide value on 'System.Windows.Baml2006.Type.ConverterMarkupExtension' threw an exception message when creating new project in Visual studio 2010.professional[^]?By The Way: forget about Win8.1! Upgrade to 10 as fast as possible.
25 Feb 2011 by Kunal Chowdhury «IN»
"Quick Find" a better way using Visual Studio Productivity Power Tools
25 Feb 2011 by Kunal Chowdhury «IN»
"Quick Find" - a better way using Visual Studio Productivity power tools
14 Aug 2012 by asdf9009
Im trying to select all items in a listbox by clicking a "Select all" button,and i got some info from MSDN website,http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.selectall.aspx[^]However when i try to use "Select All" method,it shows that such method could not be...
14 Aug 2012 by Zoltán Zörgő
Wait! You have confused everything! This has nothing to do with VisualStudio. And either you use WPF or WindowsForms control. PresentationFramework.dll is WPF, the link is for the WindowsForms control.To allow user to select all elements in wpf listbox look here:...
16 Apr 2001 by Igor Sukhov
The ATL and MFC versions of the class that implements a dialog for selecting users(computers) within the Windows Network.
16 Nov 2010 by Klemzi
Hi,I am having a big problem with my custom editor for my component and I can't find solution. "Select Resource" dialog is the default window for editing "image types" (type "Image" for example) in Visual Studio. For example, we have a component called "MyComponent" with property...
19 Sep 2006 by tanvon malik
This article shows you ways to run Control Panel applets from VC++, even those that don't have a cpl extension file.
5 Oct 2005 by Sadish Kumar.V
This article will help you to open an MS-Word Document (Document or Document template) or MS-Excel sheet from server side code (ASP.NET) with minimum configuration efforts.
2 Aug 2012 by ahsanriaz1K
Hi all,I am using "u_strToUTF8()" in my function "UnicodeToString()" to convert a unicode string to string. All was going fine but it is destroying the value of string having arabic data.Is there any solution?Here is code , just for...
2 Aug 2012 by pasztorpisti
Short answer:UChar is a 16 bit integer so I guess that unicodestring stores the string in utf16. Actually utf16 is the native format of windows (not true for win9x versions) so you should just use this string with windows with the 'W' (utf16) versions of the winapi functions (I guess you don't...
2 Aug 2012 by Richard MacCutchan
I don't know where this function comes from but you may like to take a look at my tip: Handling simple text files in C/C++[^]. This shows how to convert using the standard Microsoft library functions, which also take account of the fact that the source and destination buffers may not be the same...
16 Oct 2006 by azharkhan
This article provides the steps to solve the "Unrecognized Tag" problem for an Atlas control.
19 Jan 2012 by developercorei3
"Value of '20.1.2012 0:00:00' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.\r\nParameter name:Value"The problem is that the 'MinDate' is set up as '1.1.0001 0:00:00', and the 'MaxDate' is '31.12.9999 23:59:59'.Does anyone see what is the problem, and how it...
19 Jan 2012 by OriginalGriff
Check your culture: Is your date format set to accept "." as a date part separator? If it isn't, then 20.1.2012 is not a valid date, but 20/1/2012 may be.
19 Jan 2012 by MadhuCodePro
DateTime dateValue = DateTime.Now;Use like this in query '" + dateValue.ToString("MM/dd/yyyy hh:mm:ss tt") + "'
15 Jun 2003 by Oscar Bowyer
12 Nov 2011 by user_code
Hello,I have visual studio 2010.I have a .tlb file in my Thirdpart directory, and I want to import it.I looked on another project, and it's imported like this:#import "mytlb.tlb" no_namespace named_guids raw_interfaces_onlyand it compiles fine in other prjects.In my project,...
5 Mar 2012 by valeriyabobko
try adding .tlb into your project by properties->add-> add existing then choose it. dont remove #import and try to compile
14 May 2007 by TyronM
A way to modify Zip archives without extracting them completely.
11 Aug 2020 by Member 14898617
i am building a win form app using access database as data-source , and in the search button of my winform i have this code" private void searchAccessDatabase() { if (string.IsNullOrEmpty(KeywordTextBox.Text.Trim())) ...
11 Aug 2020 by Sandeep Mewara
Think, this should not be in single quotes: 'System.String' Further, can you make sure the strFilter looks like as expected? Surely following corrections: 1. Is it not missing spaces between all the OR conditions? 2. Missing OR in line: ...
7 Jan 2001 by Mumtaz Zaheer
This article is all about how to create a context menu shell extension. 'Copy To' & 'Move To' will be added to the files/folder context menu.
19 May 2002 by Dan Elebash
Modified version of Frank Fang's code ported to VB and made CCW.
26 Jan 2011 by OrlandoCurioso
Customize an internal designer by encapsulation in a custom component designer
29 Dec 2016 by ADI@345
I have made window application using .NET and storing database to Access , but it work on my system as it is 32 bit and i am using MS access 2007 but when i installing to it to another system it through error i.e 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine, system...