Click here to Skip to main content
15,885,876 members
Everything / Visual Studio / Visual Studio 2017

Visual Studio 2017

VS2017

Great Reads

by Nick Polyak
Dynamically compile and assemble code snippets into a dynamic assembly
by kusnaditjung
Web specification and framework
by Marc Clifton
Talk to your rPi over a Slack channel, getting status, controlling devices, and running shell (bash) commands and viewing the console output posted back to your Slack channel
by Mr. xieguigang 谢桂纲
How to build my own 3D graphics engine from ZERO step by step

Latest Articles

by Andreas Saurwein
Better recentlist, solutions and projects management for Visual Studio, not replacing the start window
by Andy De Filippo
Draw a shape-like editor implementing the use of anchors to resize and rotate a selection rectangle
by Nick Polyak
Dynamically compile and assemble code snippets into a dynamic assembly
by Private Dobbs
How to initialise a database and then automatically keep it up to date with version releases

All Articles

Sort by Score

Visual Studio 2017 

16 Jun 2021 by Nick Polyak
Dynamically compile and assemble code snippets into a dynamic assembly
17 Sep 2020 by kusnaditjung
Web specification and framework
27 Jan 2019 by Marc Clifton
Talk to your rPi over a Slack channel, getting status, controlling devices, and running shell (bash) commands and viewing the console output posted back to your Slack channel
1 Feb 2017 by Mr. xieguigang 谢桂纲
How to build my own 3D graphics engine from ZERO step by step
24 Oct 2017 by Emmanuel Nuyttens
Example on how to use Event Sourcing in C#
14 Nov 2019 by honey the codewitch
Creating a simple parser in 3 easy lessons
8 Apr 2020 by Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
9 Oct 2018 by Akhil Mittal
Entity framework core, code first migrations and data annotations in EF Core
4 Jun 2020 by Vincent Maverick Durano
This article will talk about how to implement a custom wrapper for your ASP.NET Core and Web API applications for managing exceptions, providing meaningful and consistent responses to consumers.
8 Jan 2019 by KristianEkman
A C# object oriented Neural Network, trainer, and Windows Forms user interface for recognitions of hand-written digits.
24 Dec 2018 by David Lafreniere
Unique allocator features improve performance and protect against heap fragmentation faults on any C or C++ project.
8 Aug 2017 by Afzaal Ahmad Zeeshan, Iqra Ali
Since I wrote an article previously, I had been asked on various occasions to share the code on Yahoo! or Bing, etc. I wanted to write an article, with the code, which covers all of those vendors as well.
29 Jan 2019 by David Lafreniere
Simplify passing data between threads with this portable C language callback library.
27 Jan 2019 by syed shanu
Getting started with Angular 7 and ASP.NET Core 2.0 using Angular 7 Web Application (.NET Core) Template and ASP.NET Core MVC Application
15 Jan 2019 by Paul D. Sheriff
As more and more users interact with web applications on their mobile devices, it is becoming increasingly important for software developers to allow them to work offline; PouchDB can help.
23 Jan 2020 by Steffen Ploetz
Another fully functional ownerdraw menu with minimal effort - this time based on Win32, with icons instead of bitmaps, with accelerators and tested for ReactOS and WinNT 4.0 to Windows 10
7 Sep 2018 by Robert Vandenberg Huang
Experiment, run and compare different pathfinding algorithms and heuristic functions
10 Mar 2019 by Sergey L. Gladkiy
The article describes a simple way of realizing math formula evaluation and drawing in WPF applications.
9 Jun 2019 by Stefan Timovski
Tutorial on how to start developing SSMS extensions
26 May 2017 by John Trinder
Comprehensive Multi-Slider(-Range) that can add, delete and move arrows (thumbs)
4 Apr 2018 by Clifford Nelson
This behavior will require that for any Group of ToggleButton/Checkbox controls that are associated together, the user cannot set all to not IsChecked.
13 May 2018 by Nick Polyak
New simple but powerful IoC container
20 Dec 2020 by Shenwei Liu
A custom and configurable Angular data grid tool and demo application presenting both client and server-side data filtering, sorting, and pagination (updated to Angular 11)
22 Dec 2018 by Ken Haggerty
Scaffold and modify Identity in the new ASP.NET Core 2.2 Razor pages template
29 Jan 2018 by phil.o
C# implementation of sponge construction and SHA-3 hashing operations
3 Apr 2018 by Clifford Nelson
Normally a popup will stay open until explicitly closed. The Behavior will close the Popup if the mouse is clicked within or outside the Popup area or leaves the Popup area.
30 Oct 2018 by Carsten Breum
Data Virtualization example with a pagesize and async data request
17 Oct 2017 by Clifford Nelson
A Behavior is presented that will ensure that only one CheckBox (ToggleButton) will be checked with the same GroupName within the visual tree of the control to which this behavior is attached.
27 Dec 2018 by Alessio Aronica
Generate forms from MVC models in one simple line of code
2 Jun 2021 by Mohammed Faci
This article provides detailed steps for writing test cases using Selenium 3.7.0 and Visual Studio 2017/C#.
30 Oct 2018 by Leonard E. James
Create initial object model and database and display first Razor Page
1 Oct 2018 by asiwel
How to Deploy Trained Models Concurrently
31 Oct 2018 by syed shanu
In this article, we will see how to work on Clustering model for predicting the Mobile used by model, Sex, before 2010 and After 2010 using the Clustering model with ML.NET.
17 Nov 2018 by Daniele Fontani
TDD & BDD explained with examples
1 Mar 2019 by Rick York
I use a little wrapper class around the QueryPerformanceCounter API function. Here is a stripped down version of it: class CElapsed { public : CElapsed() // constructor { // get the frequency of the performance counter and its period in seconds LARGE_INTEGER li = { 0 };...
20 Aug 2019 by honey the codewitch
Using PCK to create grammars, parsers and tokenizers for C# and other .NET languages
29 Oct 2019 by Alexander Lednev
This is a fast binary serializer with compile-time members and version check
28 Nov 2019 by Akhil Mittal
In this article, we’ll learn the CI/CD of ASP.NET Core application on Azure using Jenkins Azure Pipeline.
31 Jan 2018 by Pawel idzikowski
How to replace the web API request query string to provide case insensitive OData search
4 Mar 2018 by Gaston Verelst
How to create a Visio Add-in in VS2017
16 May 2018 by F-ES Sitecore
You can only "Trim" on a string variable, the error you are getting suggested that "Value" is an object. How you deal with this depends on what is in the cell. The solution might be SourcePageFile = SourceFolder + "\\pg-" +...
29 Aug 2018 by Sander Rossel
Get started with Azure Functions and serverless computing in Azure. We'll see what serverless computing is and how it's implemented in Functions.
7 Dec 2018 by Dirk Bahle
Making better use of the available UI space.
24 Jan 2019 by Christ Kennedy
Draw multiple sprites of different appearances with a single instance of classSprite
17 Aug 2019 by honey the codewitch
Using PCK's grammar system, and understanding the concepts behind it
27 Sep 2023 by Andreas Saurwein
Better recentlist, solutions and projects management for Visual Studio, not replacing the start window
5 Jun 2021 by Private Dobbs
How to initialise a database and then automatically keep it up to date with version releases
3 Feb 2018 by CHill60
I would create a new function (Single purpose and all that). You might be able to adapt the concepts on this CP article Extract icons from EXE or DLL files[^] (sorry it's C#) or this MSDN one Extracting Icons Using win32 API ExtractIconEx[^]
9 May 2018 by Maciej Los
Maciej Los: Does your DataGridView is bind with datasource? If yes, what kind of datasource: BindingSource, DataTable, DataSet? Primo Chalice: It is DataSet In this case, the simplest way is to use: DataSet.WriteXml Method (System.Data)[^] and DataSet.ReadXml Method (System.Data)[^]
22 Dec 2018 by Ken Haggerty
Scaffold and modify Identity in the new ASP.NET Core 2.2 Razor pages template
27 Jan 2019 by Gaston Verelst
In this post, I show how to create an image from a VM in Microsoft Azure, and use this to create identical VMs.
26 Feb 2019 by MadMyche
I do not have the answer for you, my MS Access is a little rusty and Dates in there were not my strong point. Examples of using dates as criteria in Access queries - Access[^] However; I am obligated to point out that you are using code that is susceptible to SQL Injection. You should NEVER...
7 Oct 2019 by Maciej Los
Please, read my comment to the question first. I guess that it is NOT a bug. You enabled document outline view: View --> Other Windows --> Document Outline Disable it and everything should be OK.
20 May 2020 by OriginalGriff
Set the Form.MinimumSize Property (System.Windows.Forms) | Microsoft Docs[^]
24 May 2020 by RickZeeland
The source code of the Windows calculator can be found here: GitHub - microsoft/calculator: Windows Calculator: A simple yet powerful calculator that ships with Windows[^] Maybe you can find out how it works by browsing the source code. Also...
29 May 2017 by David_Wimbley
The following comments are what i've seen in my experience. Quote: I made my model classes and AppContext class for Database, but my Database created only when i made Migration, Your database gets created when you take an action against the DB. For example, simply running your application...
15 Jun 2017 by Karthik_Mahalingam
NuGet | System.Text.Encoding.CodePages [^]
21 Jul 2017 by Roman Kiss
Design, implementation and usage of invoking WF4 from Azure Function
18 Sep 2017 by OriginalGriff
I always install SQL server first, then Visual studio - the reason is that VS uses SQL, so if it's already installed, it doesn't add it's own version. I've had problems with VS before after installing SQL "over the top" of it. SSMS installs as part of SQL Server, so that shouldn't be a problem.
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 Feb 2018 by Patrick Skelton
Sorry for the general and (hopefully) simple nature of this question, but I can't find an answer to this for VS2017 anywhere. The step-into (F11 on my machine) function seems to be broken for constructors. Does anyone know how to alter this unhelpful behaviour? Update I must be missing an...
13 Feb 2018 by Patrick Skelton
The solution to this was to repair Visual Studio and then manually recreate the entire solution from scratch. I'm not sure if both of these steps was necessary. I suspect that the repair may have been what fixed it. However, I feel better having recreated the solution, because there was that...
15 Mar 2018 by OriginalGriff
Try:MyFormToDisplay form = new MyFormTopDisplay(); form.Message = "Hello - this will not continue until you close me"; if (form.ShowDialog() == DialogResult.OK) { // OK pressed ... }
6 Apr 2018 by CHill60
Check out these resources Cambridge Dictionaries Online API Developer Hub[^] Using Word's spellchecker in C#[^] How to: Programmatically Check Spelling in Documents[^]
10 Apr 2018 by OriginalGriff
You don't want to do that, or at least. not directly. In order to access the textbox of a different form (be it in the same assembly / project or a different one) you have to expose it as Public to the world - and that's a bad idea because it "locks" the design of both forms: you can't change it...
12 Apr 2018 by Member 13773783
I only started coding on visual studio community today and made a really simple in Visual Basic Universal Windows app. Just a button that exits the program again to test things out. BUT I cant for the life of me figure out how to get it to run without visual studio. I've tried both building in...
11 Apr 2018 by Maciej Los
There's no simply way to secure your application from being copied, used, etc. You'll never be sure that your application is not used, no matter of how many ways you used to protect it. The base idea is very similar to well known solutions: each copy of your application need to get specific...
3 May 2018 by dan!sh
You do not explicitly call Main method. That is the default entry point for your application which framework will call. The errors you have mentioned tell that there nothing called PdfSloutions.Form1. Either there is nothing called Form1 in that namespace or if it is, it not public.
9 May 2018 by OriginalGriff
There is no such thing as a "session" in WinForms: it's a construct that is needed in websites because you may have multiple users logged in at the same time, and a single application (IIS) takes care of them all. Each user gets a Session so that his data can be kept distinct from all the...
10 May 2018 by Wendelius
You don't have a parameter called @name in your SQL statement. Perhaps you wanted to select it like SELECT Name FROM NewsClip_Login WHERE Username = @Username AND Password = @Password"; If that is what you're trying to do then you refer to the result columns wiuthout @ since that is used for...
25 May 2018 by Jochen Arndt
Don't do it all in one statement. Use the statements each on it's own line assigning to a variable and checking for validity. Possible error sources with your code are that there is no match or the match can't be converted to an integer. Another tip: To make the regex better readable use the @...
27 May 2018 by Simos Sigma
I got an easy solution on my question here at stackoverflow.com. --- Reza Aghaei: If you are going to add some custom verbs to designer of a Form, you need to create a new custom Designer by deriving from DocumentDesigner and overriding a lot of properties and method to recreate FormDesigner. As...
28 May 2018 by OriginalGriff
Have a look at some of these: MP3 Player for Windows 7[^] A Simple C# Player Mp3 with NAudio[^] A very simple MP3 Player[^] You'll be unlikely to find any VB6 specific stuff these days - it's been superseded for a very long time! I'd suggest that you look at learning C#: modern VB uses the...
31 May 2018 by Richard Deeming
Use a second variable: foreach (string s in Regex.Split(replicFile, Environment.NewLine)) { string spline = s; Label9.Text = spline; this.Refresh(); while (spline.EndsWith(('\n').ToString()) || spline.EndsWith(('\r').ToString())) { spline =...
31 May 2018 by Er. Puneet Goel
When I am trying to launch VS 2017, is throwing some missing package error stating "Something went wrong". Error Log: [2544:0006][2018-06-01T11:21:08] Error 0x80131500: The dependent package of 'Microsoft.VisualStudio.Product.Enterprise,version=15.7.27703.2018' cannot be found:...
17 Jun 2018 by Maciej Los
Take a look at this line: string query = "select distinct convert(varchar,Item_GenName) from ItemMasterlistTable where datalength(Item_GenName) != 0"; This returns something like: (No column name). So, change it as follow: string query = "select distinct convert(varchar,Item_GenName) AS...
12 Jul 2018 by Andrew Baylis
Two immediate problems: i) You check row by row and if that particular row doesn't match, you add a new row. ii) The adding a new row happens inside the iteration of the row collection - very bad move! Possible solution var found = false; foreach (DataGridViewRow row1 in dgvmaingrid.Rows) ...
17 Dec 2018 by CHill60
A simple search found me this … How to include Access 2007 as a prerequisite[^]
24 Dec 2018 by Shao Voon Wong
It could be a hacking to crash your program.
11 Jan 2019 by Harshit Gindra
Check and request for Permissions in Xamarin Forms mobile application
22 Jan 2019 by seventhnight
I have the following code which adds a project to the current solution from a specified template: Solution2 solution = GetSolution(); string templatePath = "..."; string genProjectPath = $"C:\\TestVSIX\\{projectName}\\"; try { ...
19 Feb 2019 by CPallini
Embedding Python is not the simplest C project. You have to carefully follow the steps presented in a up-to-date tutorial.
26 Feb 2019 by Herman<T>.Instance
IF a DATE-field IS NULL it cannot be a filled date. SO the filled dates are excluded in your WHERE clause Perhaps: AND (Date_MES IS NULL OR Date_MES BETWEEN (DATEadd(dd, -7, CAST( date1 As DAteTime) AND CAST( date1 As DAteTime)) as part of your query
15 Mar 2019 by Gerry Schmitz
Looks like your "chart" is going "out of scope" if you created it "by code" as above. Define your chart "at the class level" as a "private or public" member so that different parts of your program can "see" chart and not just the method that first created chart (as a "local" variable).
5 Apr 2019 by Graeme_Grant
I have written an article on this topic. Hope it helps: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]
30 Jul 2019 by Sunny Makode
There are several contents available on the internet that talk about injecting dependencies through .svc file's markup [in WCF service application] and it's easy when you have a WCF service application. But, it is equally easy to do that even in your WCF Library project (without .svc).
1 Aug 2019 by Michael Haephrati
I took the liberty to create a default MFC Dialog based project. I am using Visual Studio 2017 Enterprise. I then inserted your code. Here is how your code should look like (and of course, you should not call the destructor and also nothing to do with x86 Vs. x64). CString myString; dlg =...
6 Apr 2020 by Doctor Autonomy
A surprisingly easy way to avoid memory leaks with new/delete allocations in C++
16 May 2020 by OriginalGriff
No, you have to either skin your form: Skinning form VB.NET[^] which will mean changes to a lot of your existing app, or use the Control.Controls Property (System.Windows.Forms) | Microsoft Docs[^] recursively to set your font height in your form...
22 May 2020 by Richard Deeming
Convert.ToInt32 won't work if the input string contains the thousands separator. Try: Dim value As Ineger = Integer.Parse(txtInput.Text, System.Globalization.NumberStyles.Integer Or System.Globalization.NumberStyles.AllowThousands)...
22 May 2020 by phil.o
This is for turning an integer to its string representation using the comma as thousand separator: int value = 1000; string representation = value.ToString("#,0"); // representation == "1,000" And this is to get an integer value from a string...
16 Jun 2020 by CHill60
In my comment I got the wrong component Win not Web d'oh. Here is the link to the Winforms 10.1358.0 package NuGet Gallery | Corrected.Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1358.0[^] but note there is a more recent...
11 Oct 2020 by User 14859875
Can I ask about why my output for PageError.aspx is not same as correct output below, please?: The correct output for PageError.aspx after I entered two inputs such as 7 and 0 by using the pageerror method only (cannot use try catch method): ...
6 Jan 2022 by Patrice T
Quote: How do I attach an image with my question? Basically, you don't arrach an image directly. You need to store your image somewhere on internet, and then add the URL in your question as a link. Beware, a lot of people here do not like...
19 Sep 2023 by Richard MacCutchan
if(UserExistRadioButton.Checke...
3 Oct 2023 by OriginalGriff
First off, you don't need to store the same password twice, if that's what you are planning: compare them when he registers to make sure they are the same, but if they are you don't need both ever again - just the one copy. Second, it is your...
18 Oct 2023 by Dave Kreskowiak
private void Back_Click(object sender, EventArgs e) { Form1 back1 = new Form1(); back1.Show(); this.Hide(); } Assuming this is the code that's called when you click the back button in your app, your code is creating a new instance of...
18 Oct 2023 by Richard MacCutchan
Take a look at the three tips starting with Transferring information between two forms, Part 1: Parent to Child[^], by the esteemed OriginalGriff.