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

Visual Studio 

U 26 Apr 2024 by Shao Voon Wong
A new C++ SAX library to simplify parsing
U 26 Apr 2024 by Shao Voon Wong
Tutorial on a cross-platform C++ XML DOM library
U 23 Apr 2024 by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
N 20 Apr 2024 by danash
Using this code (below), Trying to obtain an access key via oAuth2 . Request runs fir about 2 mins then throws and error "request was cancelled". This is driving me nuts. Could use a second set of eyes and help. -Thanks Protected...
N 17 Apr 2024 by PJ Arends
How to use a .props file for your custom user settings across all your projects
9 Apr 2024 by Member 10371658
I am working with .net core MVC project, in which i set the idle timeout and session expired, it should redirect to the session timeout page, where i am showing message to user, your session is auto timeout, but it's redirecting to the...
9 Apr 2024 by Member 14941845
Go to that webpage then press "Ctrl + p" then when the printing page opens in your computer then press "Save As PDF".
7 Apr 2024 by Graeme_Grant
I popped your question into Google Search and found many solutions. Here is the first one returned: Redirect back to login page after session timeout ASP.NET 5 MVC 6[^]
7 Apr 2024 by Member 10371658
I am working on .net core 6 MVC project, in which i want to logout the user automatically and redirect to login page, after session idle timeout. please see the below code i have written in program.cs file: builder.Services.AddSession(options...
2 Apr 2024 by kmoorevs
Tables/nested tables are the way to handle layout.
2 Apr 2024 by Dave Kreskowiak
You really don't want to use the designer to layout web pages. That's going to generate a ton of inflexible HTML that you're going to have to rip out and redo for a really flexible page layout when screen sizes change. You typically just write...
2 Apr 2024 by Jo_vb.net
Check if Tools > Options > Web Forms Designer "Legacy Web Forms Designer" is selected.
2 Apr 2024 by Rama2F
I'm trying to move the controls (label, textbox, etc..) freely on the [Design] screen of an [ASP.NET Web Forms Site] template, using VS 2022. What I have tried: I know that to achieve it, I should ... select the control I want to move around...
30 Mar 2024 by RedDk
To make what others have said more clear, the "Advanced Save Option" which doesn't appear to be anything in Visual Studio 2022 really is there you just have to know where to find it. It is on the File drop down ... Use Save-As and when the...
30 Mar 2024 by Graeme_Grant
I did a quick Google Search: vs c4335 - Google Search[^] 0x01AA links to Compiler Warning C4335 | Microsoft Learn[^] which is in the Google Search. Here is what it says: Quote: Mac file format detected: please convert the source file to either...
30 Mar 2024 by Gbenbam
This error say something about line ending. My project won't compile again. What I have tried: I have google tirelessly and I still am.
27 Mar 2024 by StruggleBus
I'm creating a report with page breaks between each group and the customer has requested that each group be saved to it's own pdf. So, potentially, I could have one report saved of to numerous files. I honestly don't even know where to start...
27 Mar 2024 by Richard Deeming
"Website projects", which have no project file, have been deprecated for over a decade now. You can still open existing ones, but in order to create a new one, you need to install the "additional project templates": Can't find the 'create new...
27 Mar 2024 by Richard MacCutchan
Take a look at Tutorial: Create C# ASP.NET Core web application - Visual Studio (Windows) | Microsoft Learn[^]
27 Mar 2024 by Rama2F
I am having trouble creating/opening a website project in VS 2022. (It opens like a 'project' not 'website') Our professor gave us this video: 02 Creating a Web Forms User Interface vb - YouTube[^] I am trying to recreate in VS 2022, but I'm...
19 Mar 2024 by Dan Letecky
Weekly HTML5 event calendar with CSS themes, drag and drop support, date navigator. PHP and ASP.NET Core REST API backends.
14 Mar 2024 by Pete O'Hanlon
If you are inside an editor block, have you tried toggling around using Ctrl+]? Depending what you are trying to do, this can be a help to you. Combine this with Shift+Alt+[ to play around with moving around in the editor.
14 Mar 2024 by Jo_vb.net
For US keyboard this may work: Ctrl+Shift+\ Jump to matching bracket https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf[^]
14 Mar 2024 by Pada Temp
I know that alt + shift + "[" will take me to the top but is there one that will get to the end of a code block? What I have tried: tried the obvious alt + shift + "]" but no go
11 Mar 2024 by StruggleBus
I have a paginated RDLC report and am trying to export it to PDF, while keeping all of the columns on the same page. Currently, the columns are being spread across multiple pages. The number of columns are variable, so I would like the table to...
6 Mar 2024 by Richard Deeming
It sounds like you're publishing your site as precompiled and not updatable: Precompiling Your Website (C#) | Microsoft Learn[^] The compiler seems to think your RDLC file is a page to be compiled, so it gets compiled into the .dll, and the file...
6 Mar 2024 by StruggleBus
When I publish my web app to a remote server, the XML of the RDLC report is lost and replaced with the following: "This is a marker file generated by the precompilation tool, and should not be deleted!" Depending on the Build Action selected, I...
2 Mar 2024 by Fabrizio Menichelli
Solution is to put flag in Exception Setting "Break when this exception type is thrown except when thrown from itextsharp.dll". maybe it was a known problem.... regards
1 Mar 2024 by OriginalGriff
To add to what Dave has said ... This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried...
1 Mar 2024 by Dave Kreskowiak
This is an error where nobody can diagnose it for you, but you have the power to do it yourself. Run the code under the debugger. When the error occurs, the debugger will show you the exception and the line that is throwing it. How the mouse on...
1 Mar 2024 by Fabrizio Menichelli
hello guys, i get error creting pdf with itextsharp, this is my code Dim Documento As New Document(PageSize.A4, 100, 100, 25, 25) Dim fileStream As New FileStream("D:\test.pdf", FileMode.Create, FileAccess.Write, FileShare.None) ...
1 Mar 2024 by Matt Bond
You need a DeployTarget. See Building and Packaging Web Application Projects
27 Feb 2024 by Maxim Kartavenkov
In practice to control releasing instances of the COM objects in the application you can use the helper template classes such as CComPtr CComQIPtr or CInterfaceList of the ATL. That allowing you to work with COM interfaces as with the regular C++...
24 Feb 2024 by KarstenK
Check that you release your own COM pointers in time, so best not in the destructor but earlier like at the begin at the WM_CLOSE handler or even earlier like when the user wants to exit. The COM stuff takes some time, so be sure that it gets its...
23 Feb 2024 by CPallini
With objects you do not control (e.g. COM objects internal to the libraries) there's nothing you can do. On the other hand, with objects you do control, you may check the return value of the Release method, at least to inspect the updated...
23 Feb 2024 by Saurabh Ashtaputre
I have a C++ MFC application which uses many COM pointers from some other libraries. Those pointers are fetched using QueryInterface calls. While closing my application, I get an exception log stating that some COM pointers are not yet released. ...
23 Feb 2024 by Pete O'Hanlon
To remove this from the unanswered questions list; this was answered in the comments on the question.
21 Feb 2024 by OriginalGriff
Check your build type: if you are running a 32 bit system (Win 10 or 11) and building for a 64 bit EXE file, it won't work. Then check it running it under the debugger rather than executing an EXE directly: that'll tell you if it works at all,...
21 Feb 2024 by glennPattonWork3
Hi All, Another in the continuing saga, I have managed to get Vis Studio 2022 to open the project and I can build it all is good, but I am trying to run the Exe on Windows 10 (the test rig is built around Win 10) which is built in Win 11, I have...
20 Feb 2024 by glennPattonWork3
Hi All, I have an issues (linked slightly to yesterdays, thanks Pete). I have some code & I have a working program now comes the issue. It works in VS2008 so I copied the folder over took it to work opened it in VS2022 and it returns Quote:...
20 Feb 2024 by Richard MacCutchan
How can you be sure there are 10 items in the combo? You should use the Count property of the Items collection. That way you can have any number of entries, and can always guarantee to find the last one. As to colouring the last one, take a look...
20 Feb 2024 by Pete O'Hanlon
It depends what you mean by coloured as to how you would solve this (and I'm assuming you're using Windows Forms here). If you wanted to change the foreground colour, you could use something like thisprivate void comboBox1_DrawItem(object sender,...
19 Feb 2024 by glennPattonWork3
Hi All, Can the last item in a Combo Drop down be colored Highlighted? The need is to highlight the last item in a combo box (or list box if thats easier...) What I have tried: To fill the box: for (int i = 0; i
19 Feb 2024 by Member 16202340
I am trying to create an extension for the tables in any database which will be shown when I right click on any tables in SSMS, I want to run that extension from there. Furthermore, I want my extension to make insert queries, delete queries or...
15 Feb 2024 by CODING_MLD
Expanding and collapsible panels implemented in VB.NET
13 Feb 2024 by YDaoust
I have been using Visual Studio for ages, developing WinForms applications. Though this has always been irking, I am used to the fact that switching from the Code mode to the Designer mode often crashes the Designer, showing a call stack that is...
13 Feb 2024 by Andre Oosthuizen
Your issue might be related to the timing between running your code and calling the Title of the window. You need to check for the main window handle before attempting to retrieve the title after the process has entered the idle state. I have...
13 Feb 2024 by Member 12032655
I have windows 11 . I have a console application in VS2019(C#). I am trying to launch calculator exe thru system.Diagnostics.Process. code snippet: ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Windows\System32\calc.exe"); ...
13 Feb 2024 by Alan N
C:\Windows\System32\calc.exe is just a stub which starts another process. If you look at your process object it will have exited. On my windows 10 system calc.exe actually starts the calculator "app" which is C:\Program...
12 Feb 2024 by Elmue
An easy to use 3D control which can be integrated into an application in a few minutes
11 Feb 2024 by DataBytzAI
A fast intro to working with CoPilot in VS Code
7 Feb 2024 by OriginalGriff
That code doesn't do anything with the DB, so it's difficult to work out what your problem might be. All that code does is set a connections string (which I'll come back to later) and nothing else: the connection is not usable - and is being...
7 Feb 2024 by TADIWANASHE MAHOVO
I am trying to connect my visual basic project to mysql database using xampp. I downloaded an sql vbconnector from this website https://dev.mysql.com/downloads/connector/net/ but when i try to debug my project every mysql command reads an error...
6 Feb 2024 by Dave Kreskowiak
The first question is why are you even doing this? VS allows you to add any file type to any folder for good reasons. You cannot modify the behavior of Add Existing Item. In the VS implementation, the items has already been "validated", because,...
5 Feb 2024 by Mark Pelf
VS 2022 extensions can interfere with the IntelliSense Hover functionality.
5 Feb 2024 by Meghana Mekala
I am trying to add file type validation in "add existing item" in solution explorer in visual studio experimental instance. If the selected file type is not valid, then it needs to display message box like invalid file type. Else it needs to add...
4 Feb 2024 by fsobotka1995
Hello! I'm trying to connect my vb.net project to an external machine via api, to get and send data. The objetive will be reboot, poweroff, check status and open door. I have this code working on a similar equipment with 0 problems. In...
1 Feb 2024 by sunnyjohn
I wanted to work with Chrome browser, so these is what I did- 1. Edge Browser uninstalled from PC. 2. Changed this code in Settings.json file- "liveServer.settings.CustomBrowser": "chrome", 3. Now, the Live Server is opening with Chrome. ...
1 Feb 2024 by Orphraie
Study of 3D graphics in video games with minimal prior knowledge of mathematics
30 Jan 2024 by Graeme_Grant
ClickOnce was mentioned above. I have written an in depth article and helper: Silent ClickOnce Installer for Winform & WPF in C# & VB[^] (there is also a.Net core version and article as well). The key benefit of doing it this way is that you can...
30 Jan 2024 by M Imran Ansari
Well, here are some suggestions which can be adopt to achieve the goal. These suggestions should be adapted to align with your specific requirements and the chosen deployment method. The customization of configuration settings or connection...
30 Jan 2024 by tstoneami
My VB app works great in Visual Studio, and I can publish successfully. I have an app.config that is read successfully, setting connection strings. My problem/confusion. It publishes to a local folder (set in the publish dialogue), and creates a...
28 Jan 2024 by CPallini
You know you may search articles, here at CodeProject. An example of a quick search[^]
28 Jan 2024 by DrMN
Is there a simple minimal example of a project in Visual C++ that graphs x-y data? This is to operate a small spectrometer. I would like a starting point that shows a graph and does little else, to which I can add controls, a thread that reads...
24 Jan 2024 by Maxim Kartavenkov
To figure out the first issue under compiler settings on C/C++ Advanced tab choose "show includes" and it display during build the includes sequence - this way you can find is the NTDDI_VERSION defined at all before the file you interested in, or...
23 Jan 2024 by peterboulton
I am using the latest Visual Studio 2022 / C++ / MFC, Windows SDK 10.0, Platform toolset 10.0 (latest installed version), C++ Language Standard ISO C++ 17 Standard and building 64 bit. I started with the standard MDI template, added some stuff...
21 Jan 2024 by Member 10333207
The problem is that you are using Oracle's very buggy MySql.Data class library. It's not well maintained and should be avoided. It is not compatible with newer versions of MariaDB and the errors are often nonsensical like the one you received. ...
15 Jan 2024 by Espen Harlinn
Harlinn.Windows is a collection of libraries that I have put together that serves as a big part of the runtime we use at work.
10 Jan 2024 by Michael Haephrati
There is another way I found that works. You just hide the console. Next time, you don't even need to 'unhide' it, but just to open it as usual. HWND console = GetConsoleWindow(); ShowWindow(console,1);