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

Visual Studio 2017 

14 Nov 2023 by Inczu
I have a admin account in Windows Forms. I have a code that create a account to the lusrmgr but the problem is when I want to write username before creating a account, I will always have a username called NowyUzytkownik (in polish language it's:...
4 Nov 2023 by Inczu
I want to create a code without admin license when I select a username from a Items listbox: private void ExistUserList_SelectedIndexChanged(object sender, EventArgs e) Then the code must search the same username in lusrmgr.msc and put the...
4 Nov 2023 by Inczu
I want to create a code using netuser function that will search by clicking on the button: private void NextForm3_Click(object sender, EventArgs e) if the user by selecting an Item from listbox. private void...
3 Nov 2023 by Dave Kreskowiak
Like Richard already said, I told you how to validate credentials against the machines local account database that does not use shelling out to "NET USE". It is not called "in Windows services". That phrase means something completely different...
1 Nov 2023 by Inczu
I want to create a timer when user picks an Item from listbox: private void ExistUserList_SelectedIndexChanged (object sender, EventArgs e) Then write down the wrong password in textbox: private void FirstPassword_TextChanged (object sender,...
30 Oct 2023 by Dave Kreskowiak
An "admin license," whatever that is, has nothing to do with this. You're completely misunderstanding the Windows security system and directory. You cannot check an entered password against what you perceive to be a plain text password in the...
30 Oct 2023 by Richard Deeming
You can't. Windows does not store user passwords using a reversible encryption. Passwords technical overview | Microsoft Learn[^]: For use in Windows networking, including Active Directory domains, the password is stored two different ways by...
19 Oct 2023 by Inczu
When I want to click on back button private void Back_Click(object sender, EventArgs e) in Form2.cs, I want to create a code that will remember data in textboxes: private void CompanyText_TextChanged(object sender, EventArgs e) , private void...
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.
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...
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...
3 Oct 2023 by Inczu
I want to create a code in VS2017 Windows Forms that will add users to SQL Server automatically: id, username, first password, second password (repeated password) in database SQL Server Management Studio. That's my code in Form1: using System;...
27 Sep 2023 by Andreas Saurwein
Better recentlist, solutions and projects management for Visual Studio, not replacing the start window
19 Sep 2023 by Inczu
When I created Form2.cs, I added two radio buttons private void UserExistRadioButton_CheckedChanged(object sender, EventArgs e) and private void UserNotExistRadioButton_CheckedChanged(object sender, EventArgs e), my button private void...
19 Sep 2023 by Richard MacCutchan
if(UserExistRadioButton.Checke...
20 Apr 2023 by DoingWork
Dear All I am new in Xamarin.Android A device is connected to My Android smart phone using OTG function. I want to access it via Serial port by Xamarin c# (Visual Studio 2017). Please guide me. Thanks in Advance for your help What I have tried: I have read topics on UsbManager, UsbDevice and...
15 Dec 2022 by Member 15752716
In VS2015 I could install nuget packages, a packages folder and a packages.config file were automatically created in my solution. Also references were automatically added. In VS2017 however I can't install any nuget package, I get an error...
15 Dec 2022 by Member 15752716
@Richard Deeming: Webview2 isn't the problem, I downloaded this example and it works just fine. I now downloaded VS2019 but I get the same error: DLL not registred. When I look up the error "Exception from HRESULT: 0x8002801D...
18 Oct 2022 by lelouch_vi 2
I'm just wondering while I'm looking at my project it has 6 forms and a bunch of labels and textboxes. Can I change the font style or font sizes of the controls all at once without having to edit them one by one in the designer? What I have...
10 Jul 2022 by manjiri bangale
I am using VS2017 and do not understand why I am getting compiler "Warning C6001 Using uninitialized memory 'values'", on line if(values!= NULL) in catch block. #include typedef enum { ...
10 Jul 2022 by 0x01AA
Not really a solution, but maybe a little help to confirm your doubts ... In case the warning is really exactly on the line if(values!= NULL) in the catch block, I'm with you, I don't see a reason for that warning. This because: In case values...
27 Jun 2022 by ormonds
Is it possible, at design time, to print a copy of a form showing the control names? At the moment I snip the form, print it, and write the control names on by hand so I can use it for easy reference while coding. What I have tried: Hand...
27 Jun 2022 by Dave Kreskowiak
There is no built-in option to do that. I don't know of any extension to VS that would do that. At the very least, you'd have to write the extension to do that yourself.
22 May 2022 by #realJSOP
I'm in the middle of working on a .Net Framework (4.7.2) app, and tried to use a library that had some preprocessor symbols in it to handle .Net framework vs .net core usage. I discovered that the built-in preprocessor symbols do not appear to...
22 May 2022 by OriginalGriff
At a guess - and without access to your system that's all it can be - the NETFRAMEWORK symbol was defined in the build properties for the library module, to build a module that worked for one system but not the other. You already know that...
6 Jan 2022 by BobbyStrain
Need help with VS 2017 project. What I have tried: I need to show the project file structure.
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...
9 Dec 2021 by Andy De Filippo
Draw a shape-like editor implementing the use of anchors to resize and rotate a selection rectangle
1 Dec 2021 by OriginalGriff
If you want to do something and you don't know how, then step one (or even step 0) is simple: try google. A trivial search using most of your subject as the search term gave 52,000,000 hits: configure Static Code Analysis in Visual Studio 2017 -...
6 Nov 2021 by Kevin Brady
I am using VS 2019. I have a custom control dll that I created. It contains a number of customized controls. It also contains a few customized forms. I can select the dll to add to the VS toolbox. Only the controls appear in the listing, not the...
6 Nov 2021 by OriginalGriff
YOu can't add a Form to the toolbox, because it contains items that can be added by drag and drop to a Form at design time - and you can't drop a form on a form, that doesn't make any sense as it can' be "enclosed" in the form itself! Instead, a...
21 Aug 2021 by Davood Riazi
Hi, When I want to deploy the SSIS package in vs 2017 and I got the below error message. Can someone guide me on how to resolve this issue? Thanks, TITLE: SQL Server Integration Services ------------------------------ An error occurred during...
21 Aug 2021 by Davood Riazi
I solved the problem : fist I renamed the SSIDB database to SSIDB2 as below script : USE SSISDB GO ALTER DATABASE SSISDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE GO ALTER DATABASE SSISDB MODIFY NAME = SSISDB2 GO ALTER DATABASE SSISDB2 SET...
19 Aug 2021 by Richard MacCutchan
See Linked server connection fails with “An error occurred during decryption” | Microsoft Docs[^]
5 Aug 2021 by Slow Eddie
I am fairly new to Web forms. I am using VB.net Web Forms, running under IIS, on a Windows10 desktop, to develop an ecommerce web site. The form in question, the Catalog form, allows the user to select the make, model, year and engine, for the...
16 Jun 2021 by Nick Polyak
Dynamically compile and assemble code snippets into a dynamic assembly
5 Jun 2021 by Private Dobbs
How to initialise a database and then automatically keep it up to date with version releases
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#.
13 Apr 2021 by Derek Carpenter 2021
I have declared two table. One is called Artists and has columns like ArtistID, ArtistDisplayName, ArtistFirstName etc. The second table is called MusicBoxsets and has columns like MusicBoxsetIndex, MusicBoxsetArtistIndex etc ...
13 Apr 2021 by Dave Kreskowiak
You never mentioned what line throw the exception. The problem is you're assuming something has a valid object when it doesn't. You're creating a new DataAdapter, but you never set up the SelectCommand with a connection object. Just opening...
31 Jan 2021 by Primo Chalice
Hello, I am creating an application where the user will login and then start working. What I want is that once the user has logged in, it will create a session where the data saved by the user stays in that particular session. I have a login form created that fetches its data from SQL Server...
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)
10 Nov 2020 by Yisrael Lax
.NET Library for automatically validating and casting console input parameters
11 Oct 2020 by User 14859875
Can I ask about why the output in GeneralError.aspx.cs cannot display on GeneralError.aspx page, please? Because I have tried to change a lot of methods in some my codes of application error based on search google (but not suitable) but cannot...
11 Oct 2020 by Richard MacCutchan
Why are you still using that bad code? I explained yesterday how to validate your inputs at https://www.codeproject.com/Questions/5282429/How-do-I-display-the-correct-pageerror-aspx-output[^]
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): ...
11 Oct 2020 by Richard MacCutchan
double dblAns = Convert.ToDouble(TextBox1.Text) / Convert.ToDouble(TextBox2.Text); You should not use code like that as it allows any garbage to be entered into your program. Capture each field separately and check that the entered values are...
1 Oct 2020 by Gerry Schmitz
Where you have "loadResult", you just have a "result"; representing either "load" or "history" (#3) Then you have 2 public methods: one that takes a "load number" (#1) and another that takes a "history number" (#2). You call #1 or #2 depending...
1 Oct 2020 by MIDCOPC
I have form A that I enter in a number in a search box and click a button. If the number is found in the load table, I open form B and populate with the data from the load table. This works fine. When the number in the search box is found in the...
17 Sep 2020 by kusnaditjung
Web specification and framework
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...
15 Jun 2020 by dnibbo
Hi Does anyone know where I can download the latest reportviewer.winforms dll? I have to .common dll v15.0.0.0 but cant find the winform one to go with it. It does not appear to be in nuget! Thanks What I have tried: googled as always, tried...
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.
31 May 2020 by RickZeeland
You can use shared variables to keep the value, see: https://www.dotnetperls.com/shared-vbnet[^]
31 May 2020 by lelouch_vi 2
I made a calculator using vb.net. What I want to happen is to make the calculator calculate every time an operation is pressed without pressing the equals sign. I don't know how to do it. This is my code Im using for my 0-9 buttons: Private...
31 May 2020 by OriginalGriff
You can't really do that unless you keep a record of the whole calculation so you can "recalculate" the whole expression on the fly - think about it: I enter "1 + 2" You calculate "1 + 2 equals 3" I press "* 3" You calculate "3 * 3" equals 9 But...
27 May 2020 by RickZeeland
Maybe you can try this alternative way: vb.net - How to move form without form border (visual studio) - Stack Overflow[^]
27 May 2020 by lelouch_vi 2
I'm having trouble for a while and I decided to bring this up here because I can't find a nice solution for this ugly flickering in my WinForms. I made a borderless form and use this code to make the form draggable and resizable on every edges...
27 May 2020 by phil.o
How to: Reduce Graphics Flicker with Double Buffering for Forms and Controls - 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...
24 May 2020 by lelouch_vi 2
Hi I need some little help here. I'm trying to make a look-alike of win 10 calculator for my project but I can't understand the logic of the history (I don't know what it's called it just look like the history of what you do. The label that is...
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...
22 May 2020 by lelouch_vi 2
Hello, I'm having a problem on how to do display commas after every 3 digits in my textbox. I don't type in the value in the textbox I'm using a button to insert the numbers. Honestly I have read the docs and search the internet on how to do...
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)...
20 May 2020 by OriginalGriff
Set the Form.MinimumSize Property (System.Windows.Forms) | Microsoft Docs[^]
20 May 2020 by lelouch_vi 2
I have a form and a bunch of controls inside it. I just want to know how can I minimize the form but not too small? I want the form to minimize depending on the controls inside it. I don't know how to do this. The minimized button is working...
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...
25 Apr 2020 by Shao Voon Wong
Benchmark between OpenMP, Parallel Patterns Library, Auto-Parallelizer and C++17 Parallel for_each
24 Apr 2020 by OriginalGriff
I'm not sure - you can certainly edit the templates for the default Form, UserControl, and so on, but I've never tried to edit (or even find!) the templates for an event handler obut they probably do exist. YOu can try looking for them: ...
24 Apr 2020 by CHill60
I think what you are looking for are "Code Snippets" Have a look at Snippets in Visual Studio Code[^] Code snippets - Visual Studio | Microsoft Docs[^]
18 Apr 2020 by lelouch_vi 2
After weeks and days finding the solution I already found this: I'll just leave this here for anyone seeking the same solution as mine. This is now the code I'm using for the NUD_VALUECHANGED EVENT: Shered num As Integer = 100 Private Sub...
18 Apr 2020 by lelouch_vi 2
Hello I have a numeric updown control in my form and a label which changes the value depending on the numeric updown value change event. I also have a clear button which clears the numeric updown and a save button because my form is connected to...
8 Apr 2020 by Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
8 Apr 2020 by OriginalGriff
You can't do that without faffing - when you clear the NumericUpDown, the value is changed and that triggers the update. What you could do is have two class level variables (don't use Static, that's not what you want at all) an integer which...
6 Apr 2020 by Doctor Autonomy
A surprisingly easy way to avoid memory leaks with new/delete allocations in C++
13 Mar 2020 by Volynsky Alex
New features of the C++17 standard
22 Feb 2020 by Shenwei Liu
A sample web application and discussions on creating, displaying, and downloading PDF documents with Web API data sources (including ASP.NET Core), client Angular CLI or AngularJS Components, and resolutions for web browser compatibility to handle PDF documents.
5 Feb 2020 by Fred Song (Melbourne)
Demonstrating a series of Angular fundamentals through an Angular 7 application.
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
11 Dec 2019 by Fabrice Lacharme
Yet another Knob Control in C#
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.
28 Nov 2019 by Akhil Mittal
In this article, we’ll focus on Azure Active Directory and Service Principal and integrate Jenkins with Azure Service Principal before we move on to CI/CD of ASP.NET Core application on Azure using Jenkins Azure Pipeline.
14 Nov 2019 by honey the codewitch
Creating a simple parser in 3 easy lessons
29 Oct 2019 by Alexander Lednev
This is a fast binary serializer with compile-time members and version check
10 Oct 2019 by Joseph Rozario
This article explains how to implement Token Authentication and Authorization using JWT in ASP.NET CORE.
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.
7 Oct 2019 by Charles T. Blankenship
This is beyond odd ... the following corruption has occurred to all of the forms files when I view a form in either Visual Studio 2012 and VS 2017. All of the controls on the form appears in the lower design area (I really don't know what that area of a VS2017 forms designer is so I cannot be...
5 Oct 2019 by OriginalGriff
You are out of luck on that one: The security of your connection is reduced. Criminals can attempt to steal your data from the website. You are advised to leave this website. URL: www.novantconsulting.com Reason: Invalid name of certificate. Either the name is not on the allowed list, or was...
17 Sep 2019 by CHill60
I found the following ssis - Is it possible to install SQL Server Data Tools in Visual Studio 2017 Community?[^] (despite the SSIS in the title it is actually referring to SSDT) It suggests that a complete reinstall of Visual Studio would be the solution. Another link suggests installing it...
17 Sep 2019 by simpledeveloper
Hi I have installed SQL Server Data Tools, with VS 2017, now it is not showing up in the Services section, not in the VS project Templates and not in the Start menu. Its very embarrassing why is it not happening, any help would be greatly helpful - thanks in advance. What I have tried: ...
13 Sep 2019 by honey the codewitch
A B-tree, an AVL tree, and a Splay tree in C#
11 Sep 2019 by honey the codewitch
A simple home HTTP server that works across all .NET platforms
23 Aug 2019 by Leif Simon Goodwin
This article presents a highly configurable rotary dial control.
20 Aug 2019 by honey the codewitch
Using PCK to create grammars, parsers and tokenizers for C# and other .NET languages
17 Aug 2019 by honey the codewitch
Using PCK's grammar system, and understanding the concepts behind it
16 Aug 2019 by honey the codewitch
Quickly and easily build parsers and tokenizers using Pck's editor
13 Aug 2019 by Benktesh Sharma
Demonstrate how to add EF support in .NET Core project
6 Aug 2019 by honey the codewitch
A parser generator and unification system for different parsing tools
1 Aug 2019 by D_code_writer
Hey Guys, I have an interesting question regarding migrating a 32 bit MFC project on VS 2008 to 64 bit on VS 2017. The problem revolves around the following example code CMyDialog *dlg; CString myString; dlg = new CMyDialog(NULL); myString = _T("test"); dlg->m_dlg_string = myString; ...