Microsoft Visual Studio

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have a program and I don't want the form to be visible.  I tried using both Me.Hide and Me.Visible = false in the Form Load sub, but the form still shows. I thought there was a setting in the properties of the form in Visual Studio that could be set to hidden, but I can't find such a setting.

The only way I could get it to be hidden was to set the Opacity to 0%, but I thought there was a setting in Visual Studio or vb code that would accomplish this.
Ensure you’re charging the right price for your IT
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

so on a btn click I have this code:  not getting any errors but it's not transferring to the database:

 if (rd.HasRows)
                    if (rdshop.HasRows)
                        if (rdoper.HasRows)
                            SqlConnection uptime = new SqlConnection();
                            uptime.ConnectionString = ConfigurationManager.ConnectionStrings["gcerp"].ToString();
                            cmd.CommandText = "Insert into [_lcclockfil](empId, shift, clockin, ord_no, item_no, oper_no, oper_desc) values('" + TxtEmp.Text + "', '" + TxtShift.Text + "','" + TxtTime.Text + "', '" + TxtShop.Text + ",'" + TxtSHOPItem.Text + "','" + TxtOp.Text + "','" + TxtOpDesc.Text + "')";
                            TxtEmp.Text = "";
                            txtfullname.Text = "";
                            TxtShift.Text = "";
                            TxtShop.Text = "";
                            TxtOp.Text = "";
                            TxtOpDesc.Text = "";
                        { Response.Write("<script>window.alert('Did Not Update')</script>"); }
I updated my mac to the latest Catalina version and updated Visual Studio for Mac to the latest version.
When I try to run my app it won't launch the browser like it used to, instead if opens a page of the app inside VS. That's it. Nothing else happens.
I don't get any errors on the build.

Any ideas?  This started happening after updating to the latest OSX.
This Morning I tried to run Microsoft SQL Server Management Studio with no response  Going to "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"

I get the attached error

This isn't listed under "Uninstall or change a program"
Trying to reinstall from DL exe hangs

Googling suggests this could be fixed by reinstalling various versions of Microsoft Visual C++  Redistributable  

I've got 8 so am unclear which should be repaired or or if this is the issue

I'm Running Win10 in an Azure VM which shuts down each evening

I was using this program last night and nothing has been installed since  MS Office 2 days ago prior to last use
I'm writing some selenium automation using c# in Visual Studio with NUnit and Chrome browser. In the webpage there is a Yes button which opens a new window.

The webpage states - Do you wish to proceed Yes / No?

Answer [Yes] a new window opens and then another new window within that has a [Print] button

The button has some javascript associated with it:  onclick="return printId();"
function printId() 
	var orgName=$("#organisationId option:selected").html();
	var siteName=$("#siteId option:selected").html();
    var container = $('#svgDiv');
    var productId=$('#packProductId').val();
    var printWindow ='', '', 'height=400,width=800');
    printWindow.document.write('</head><body  onafterprint="printerStatus();"><body  onafterprint="printerStatus();">');

Open in new window

When the [Yes] button is clicked in Selenium the new window opens but the click event does not complete, the code hangs on the click and then throws a timeout error after 60 seconds. It looks like the new window opens and completes i.e. there is nothing to indicate the new window is still loading, nothing is spinning. To resolve this i enclosed the click in a try catch to handle the error. However the next section of code then times out after 60 seconds as well.

By complete chance i left this code running on the try-catch in debug and found that if i sleep for 9 minutes (so thats 10 minutes in total including the 60 second click timeout), then the code continues without any further timeouts. If i reduce the sleep time the timeout failure re-occurs.

Open in new window

How do I fix a localhost:#### port in use error?  I have several ASP.Net Web Applications.  All load fine in Microsoft Visual Studio 2019; however, two of them present the error and fails to run.

How do I fix this???
Is there an easy way to migrate a Microsoft ASP,Net application in Visual Studio 2019?  I want to move the project from my laptop to my desktop.
How do you reset a Microsoft ASP.NET Application?  I have the following files:


I want to use the files I have and start all over.  Is this doable?  If so,  how???
In Visual Studio or is there a way to track a programmer's productivity -- lines of code created or altered and time spent in the project actively working/ debugging/ etc.?

We use Team Explorer for our code repository, so perhaps there is a way to use that.

I've looked at an example of a coding tracker and it seemed to only handle it locally for the local person to see. I'd like something perhaps handled in Team Explorer by the checked in developer.

I once worked for a company that had a tracker like that, but not visual studio related, and at the end of a quarter they would have a % productive and level of difficulty the person did in their coding.

Is there such a thing available anywhere for .NET programming?

A have a telerik rad grid that is not displaying all the records in the recordset provided to it.  The radgrid's datasource is a SQLDataSource. When if I run the sql statement in SSMS, I see all records.

Another isuue I have is have to debug the sqldatasource in Visual Studio.

Any thoughts?
Python 3 Fundamentals
LVL 19
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

I have a C# WCF application that I've been working on. It contains 2 sites, an external one and an internal one.

Previously they have both worked perfectly. I have local urls for each app defined in IIS pointing to 2 different AppPools. I am using a defined user and have given this user Full Control for the entire directory structure of the app's code as well as Permissions on each of the apps and set the identity for each AppPool. When I click on the Test Settings button, they both show green checks next to the Authentication and Authorization.

I recently had to delete my local repo and Clone the one from our TFS server. The external one no longer runs saying that Access is Denied. The internal app works perfectly.

Any ideas on what I can check to help figure out why this is happening?
Using VS 2012 Professional.  Can't build a winforms application.  

Receiving error:  "Couldn't process file xxxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file.  Remove the mark of the web if you want to process these files".

I tried adding to the local intranet -> file://computername like example below but didn't work.  I also tried to right click, properties, but there was NO unblock checkbox.

Any idea how to resolve.  This is a production problem for me.
I know that the regular uninstall available through Windows  10 for installing and uninstalling programs leaves bread crumbs in both the C:\Users subdirectory and the registry. I had to do this for Visual Studio 2019 when I uninstalled it but do not know the equivalent instructions for VS2012.

Does anyone know any specifics with regards to this?


C. T. Blankenship
I have the following line of code and it lags sometimes for several seconds while other times it executes quickly. Any thoughts on how to correct the problem?

Dim frmX As New ApplicationX.Form1

If I change the code to the following I get the same behavior too.

Dim frm X as ApplicationX.Form1
frmX = New ApplicationX.Form1

The issue occurs both in Visual Studio and when the application is run from the EXE.
In visual studio 2019  how to set auto incrementing build number or version number.
The Win Forms designer page is divided into two windows ... the upper is the GUI where I can drop controls on the form and rearrange them and set properties. The bottom half is where only 'special' items show up. For me those items are business objects from the StrataFrame application ... and others. Unfortunately, now ALL of the controls in the form appear in this part of the design window and I am unable to access any of the controls in the upper part of the design window. Here is a picture of what I am talking about.

WiinForms design view problem ...
What setting in VS 2019 could cause this 'problem'. I transferred this project to another development computer and the Windows Design view displays as one might expect. So, it is a problem with this machine. I also opened the project in VS 2012 and I get the same problem. As a matter of fact ALL of my projects are having the exact same problem.

I have also attempted to correct this problem by

1. Activating and deactivating "View -> Other Windows - Document Outline" menu option.
2. Uninstalling and reinstalling VS 2019
3. Uninstalling and reinstalling both of my third party applications (ReSharper Ultiimate and StrataFrame)

Finally, all of this started after I allowed Windows Update to update my version of Windows to a newer version as my current version was going out of its support window. After reboot the update did screw up my microphone and speaker default settings. Just another possibility. I'm beginning to get the …
Very complicated program here with Visual Studio 2017 in C#.

When I created the solution a default form came up.

I added a button.

What code, if any, would I add to the button click event to close the form?
Are there any Visual Studio 2019 Tweaks that should be applied to improve performance?
Hi We are using Visual Studio and we want to start storage PDF or some other files in DB but we would like to know which is the best DB to do it?

we have SQL, Mysql, and MongoDB    if you know other, please advice
Build an E-Commerce Site with Angular 5
LVL 19
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

I am trying to drag  CrystalReportViewer to my form and i got the following error

CrystalReportViewer  Error
This my first time of using Crystal Report  within Visual Studio

Is there some setting or references  i should set withing visual studio which i have not done
I am using VS2017 with TFS. I can see files in my local repository but they do not display in Solution Explorer,
see below
tfs solution explorerany guidance appreciated,
Is there a way to build a solution for installing a Microsoft Access database . I want to deploy a an .exe file that when double clicked installs the Access solution
I am working on an ASP.NET application.

The Design window of VS2019 does not render correctly CSS3, like grid or flexbox. Or it only understands the old CSS. (?)

While this may not be important (one can view page in browser), still I may be missing some setting... Is there a way or option I can set for CSS3 in VS2019?
When I try to run a web application in Visual Studio 2019 I get the following error.  How do I fix this once and for all?

Unable to connect to the configured development Web server.

Output from IIS Express:
Failed to register URL "http://localhost:1789/
Error description:  The process cannot access the file because it is being used by another process. (0x80070020)

Is there an alternative to using IIS Express?
Hello Experts,
I have this piece of code in Visual CS

            System.Diagnostics.Process process = new System.Diagnostics.Process();
            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
            startInfo.FileName = "cmd.exe";
            startInfo.Arguments = "/C NET USER" ;
            process.StartInfo = startInfo;

            startInfo.Arguments = "/C copy " + (char)34 + "D:\\_ms2\\02 FamBZP\\Lalita\\DNI_LALITA_29325453.jpg" + (char)34 + " " + (char)34 + "C:\\tmp\\ftp\\aaaaaaa.jpg" + (char)34;
            startInfo.Arguments = "/C copy " + (char)34 + "D:\\_ms2\\02 FamBZP\\Lalita\\DNI_LALITA_29325453.jpg" + (char)34 + " " + (char)34 + "C:\\tmp\\ftp\\BBBBBBB.jpg" + (char)34;
            process.StartInfo = startInfo;

            System.Diagnostics.Process.Start("CMD.EXE", "/C D:&cd \\temp&dir& pause");

How can I verify if each dos command was executed successfully?

The code works just fine, I would like to programmatically verify the success / errorlevel / output

Microsoft Visual Studio

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.

Top Experts In
Microsoft Visual Studio