Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x

Microsoft Visual Studio

387

Solutions

452

Contributors

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

Thank you fo spending time read my post!
This is project with .sln file https://drive.google.com/open?id=0BwnB8SavOtQPZndIdjJUZExpNXM
I tried many times and ask so many help to solve this. But after publish application-> setup -> run application (issue at this step)
Nothing happend when i run application.
I see on task manager: my app appear but immediate suspended.
Please help. I got stuck it a month :( :( :(
0
Efficient way to get backups off site to Azure
LVL 1
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Hi

I am trying to find an example of building a web project in Visual Studio that manipulates the REST/SOAP API
as per https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm

I am an ASP.net developer and was hoping to use an ASP.net web app
0
I have a large (14 000 lines) aspx file, every time I click, type or save my visual studio 2017 completely freezes for a few seconds.

I have looked on google and can't seem to find an answer.
All extensions have been disabled.
All code analysis tools have been disabled.

I have then used Process Monitor to investigate and I can see devenv.exe hammering my computer with "NAME NOT FOUND" for both files, folders and registry entries. I am not sure what it is trying to find, but its not succeeding.

Is there anything I am missing? Maybe a feature somewhere I can disable?

Attached the procmon output.
Logfile.zip
0
Hi all,

In my visual studio project, I set the target framework to be 4.6.1

But some of my client PCs only have the .net version 4.6.0 installed.

May I know if there is any impact.
I tried executing my application on a PC with version 4.6.0 installed. It seems okay.

Please advise Thanks.
0
Sometimes I make changes to code and mess things up.  Back in the VB 6 days I had a program that zipped a version of my code every time I ran the program.  Is there a way to setup visual studio so I can undo changes or revert to code as it was a few days ago?
0
I have added a ProgressBar and Timer to my project but it's behaving strangely. When I press a button it just increments the progress bar by 1 until it finishes regardless of how long the buttonclick event took. I would like to have it increment and fill to 100 when the event finishes.

Here is my code for the bar under my buttonclick event:

Private Sub FixAllButton_Click(ByVal sender As System.Object, e As EventArgs) Handles FixAllButton.Click
        MasterProgressBar.Value = 0
        MasterTimer.Start()
        FixAllButton.Enabled = False

Open in new window


Here is the rest of the code in the timer sub:

Private Sub MasterTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MasterTimer.Tick
        MasterProgressBar.Value += 1
        If MasterProgressBar.Value = 100 Then
            MasterTimer.Stop()
            FixAllButton.Enabled = True
        End If
    End Sub

Open in new window


How do I make the progress bar dynamically increase depending on the length of time it takes to complete the event and then fill when it ends?
0
I'm writing a program that will install a network printer depending on selections made in two combo boxes.

Here is my form:

printer app form
Here is what I have so far for code:

Public Class AddPrinterForm

    Private Sub AddPrinterForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.PrintServerBox.Items.Add("PrintServer1")
        Me.PrintServerBox.Items.Add("PrintServer2")
        Me.PrintServerBox.Items.Add("PrintServer3")
        Me.PrintServerBox.Items.Add("PrintServer4")
        Me.PrintServerBox.Items.Add("PrintServer5")
        Me.PrintServerBox.Items.Add("PrintServer6")
    End Sub


End Class

Open in new window


I have a spreadsheet that has 1 sheet populated with columns A-F with the names of the printers.

I would like the 2nd ComboBox (PrinterNameBox) to be filled with content from whichever PrintServer is selected in ComboBox1 (PrintServerBox) relative to the columns in the spreadsheet. PrintServer 1 = Column A, 2 = Column B and so forth. Then people will click Install Printer! and the button will execute a command depending on the variables selected in the ComboBoxes.

I've looked everywhere and I cannot find how to do this. Every place I find has solutions for SQL Server but not a simple spreadsheet or other solution.

If this is not the place to ask newbie questions like this please let me know a good place to go.
0
I want to create a SharePoint add-in that has a document library with meta-data similar to the Sharepoint OOB customization done here.

However, when I create a Content Type in Visual Studio (Add -> New Item -> Office/SharePoint -> Content Type), the content type columns are pick from a list, instead of configure your own. I could configure how I want in the .xml, but this seems awkward. Am I taking the right approach here?

Content Configuration Box
Content Configuration XML
0
My old computer was crashed but I have all files save in my usb. I have another computer Dell Latitude D620  with same windows 7. I copied all of my vs 2010 projects and run all of my saved sql scripts back into sql server 2008. But when I try to load projects in visual studio 2010, I am keep getting error.
screenshot.pngscreenshot2.pngscreenshot4.pngscreenshot5.pngscreenshot3.png
0
I use Chrome and wonder what I need to install into Visual Studio Code in order to debug inside of Visual Studio Code.

I do not want to use the Chrome debugger, since I waste so much time  searching for the file to debug. I wand to set breakpoints in Visual Studio Code.

Thanks.
0
NEW Veeam Agent for Microsoft Windows
LVL 1
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Hello, i am learning to create a App using https://github.com/MicrosoftEdge/JSBrowser . You can see on github have .sln to we create own browser.
I want to CSS Google.com with javascript but i dont know how to write code and embed it.

Exp: i wrote a script  document.getElementsByClassName('jsb')[0].style.display="none"

'jsb' is a class contain Google Search Button + I'm feeling lucky Button
Thank you so much, regards!!!!!
0
Hi,

I am compiling a .Net application using Visual Studio 2010 which has 2 C# projects, one VB.Net project and one Deployment project.
It compiled successfully on my development machine on Release/x-86 mode. Compiled successfully (when i compile it manually) on our build server on Release/x-86 mode.
But on same build server when TFS auto build tries to compile it then it is throwing following error:
vbc: compiler initialization failed unexpectedly: Project already has a reference to assembly stdole. A second reference to 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\stdole.dll' cannot be added.
0
I have a TableLayoutPanel on my form. However, when I Debug or run the Release the table doesn't appear. Just the contents inside the table.

How do I make the actual table grid lines show up on the form when it's running?
0
I'm extremely new to programming. I've been tinkering with it on and off for decades but have never written an actual program. That changed yesterday.

Now, I've hit a brick wall.

I do not understand the fundamentals, but I get how code works for the most part.

My question is I have code that looks like this:

Private Sub Crystl32Button_Click(ByVal sender As System.Object, e As EventArgs) Handles Crystl32Button.Click
        For Each P As Process In System.Diagnostics.Process.GetProcessesByName("InHouseApp")
            P.Kill()
            P.WaitForExit()
        Next
        My.Computer.FileSystem.CopyFile("\\remoteserver\software\iha\ocx\crystl32\*.*", "C:\Windows\System32\",
        Microsoft.VisualBasic.FileIO.UIOption.AllDialogs, Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
    End Sub

Open in new window


I want to add the functionality of this:

Sub RemoveFileSecurity(ByVal fileName As String, ByVal account As String, _
        ByVal rights As FileSystemRights, ByVal controlType As AccessControlType)

        ' Get a FileSecurity object that represents the 
        ' current security settings.
        Dim fSecurity As FileSecurity = File.GetAccessControl(fileName)

        ' Remove the FileSystemAccessRule from the security settings. 
        fSecurity.RemoveAccessRule(New FileSystemAccessRule(account, _
            rights, controlType))

        ' Set the new access settings.
        File.SetAccessControl(fileName, fSecurity)

    End Sub

Open in new window


This code is supposed to remove the ACL listing of a specific account for a file.

However, I do not know how to add this:

Sub RemoveFileSecurity(ByVal fileName As String, ByVal account As String, _
        ByVal rights As FileSystemRights, ByVal controlType As AccessControlType)

Open in new window


To my button click sub. Whenever I try, it auto-completes and removes the "Sub" I type in. I assume you can't have a Sub within a Sub but what do I modify in order to get the rest of the ACL code to work with the button click? Do I have to modify the button click Sub in order to match the ACL one?

I apologize if I'm not making sense. Again, this is my first real program and I'm not exactly up to par on all the methodologies.
0
Hi all,

We have a bit of a strange issue after an upgrade of SAP Crystal Reports for Visual Studio. All applications have build issues after the upgrade because all of the "CrystalDecisions" DLL's seem to have disappeared after the upgrade.

We were running Version 13.0.10.1385 and all was fine with the DLL's all being located and available for referencing. We upgraded to 13.0.21 and all of the DLL's no longer exist on the machine, and all applications using Crystal Reports now have build errors due to the fact that the CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll have all disappeared!!

I tested further by removing the new version and replacing the older version and all the issues went away and all was good again. I then reinstalled the new version and the issues come back. There is no error from the install, and it claims that all was successful. I have searched the entire machine and there are no CrystalDecisions DLL files anywhere, so it's not that they have moved them.

It is all very strange ...

Steve
0
How to get 64 bit SDT tool for visual studio. I'm working on SSIS but it is causing a lot of compatibility issues.
0
Hi All,

Is there any enhancement datagridview and datagridview using virtual mode from VS 2008 to 2013, 2015 and 2017 ?

Thank you.
0
I need to refresh my use of writing unit tests with Visual Studio and hope to download some simple program with a handful of working unit tests I can inspect.

Thanks
0
I have not done unit testing for a little while and expect a test upcoming to verify I can quickly write unit tests.

Suggestions of the thing I should be practicing?

Unit tests generate their own mock data, but I doubt a test would include me setting up a mocking framework. I think hard coded lists of objects would be the ideal method, on a coding test.

I assume the object wold be written already for me (it's going to be a 15 minutes test only)

I would create an instance of the object, review the parameter list for that method being tested...

I could create multiple sets of test data. Would a switch statement be appropriate for this kind of knock em out unit test? I could iterate through and handle a handful of test conditions...


Assertions are key.

Once it fails, the unit test fails. I need to be sure the specific test condition which failed the assertion is visible in the console.

Am I approaching this test the right way?

Suggestions?

Thanks.
0
Get free NFR key for Veeam Availability Suite 9.5
LVL 1
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Greetings,

I am fairly new to Infopath and I am using it to create forms to replace manual office document forms. They will then be published to Sharepoint online.

My current project is a Manager communication form that will require multiple people on it.  
I am using the people picker control to have those fields populated.

Each line in question has a people picker field, Title field, Department Field and a Division field.  (And a spot to initial)

I have the "User Information List" added as a data source. I would like to auto populate the fields after the people picker once the people picker populates.  

I do have Visual Studio installed and set for VB.

Thanks for any help.
0
I use Visual Studio Code on Windows to code Angular, with a Node server running and Chrome as the browser.

Is there a way to set breakpoints?

I assume Chrome breakpoints work the same as with Javascript, with no issue.

I also know that Visual Studio debugs Javascript (with breakpoints) for the old Internet Explorer.

What are my options for setting breakpoints easily with Angular? I do not find Chrome easy since I need to find the file, find the line number, etc. I much prefer using Visual Studio since it's more like a WYSIWYG type of setting breakpoints.

Suggestions?

Is there a modern browser which works with Visual Studio the way VS once suppoted Internet Explorer?

Thanks
0
Mobile App is free??? in Visual Studio 2017 Community
Almost 30 GB in size!FREE?What will happen to my existing VB installed?
Thank you.
0
I am developing windows forms application  with C# on Visual studio 2017 with an aim to upgrade my applications developed on old visual basic 6.  I am retrieving data from mysql database to populate rich text box.  Backend database table of the relevant field contains  rich text formatting characters saved from rich text box of visual basic 6 of windows.  That time, I used rich text box to hold images as well.
As usual, I am using the following code to populate the rich text box with C# on Visual studio 2017

 MySqlCommand cmd1 = new MySqlCommand(sql1, conn1);
 MySqlDataReader dr1 = cmd1.ExecuteReader();

Code………
If (dr.Read())
{
     rtbEventInfo.Text = dr1["eventinfo"].ToString();
 }

The rich text box is displaying  System.Byte[] instead of rich text formatted information

Any thoughts
0
How to add database? Properties window Data>DataSource? From my SQL from another computer.
Datasourcehere's my Module and code/sql connection IP/user/pass/database

Imports MySql.Data.MySqlClient
Module dbModule
    Public conn As New MySqlConnection
    Public Sub dbConnect()
        Try
            If conn.State = ConnectionState.Closed Then
                'Local Database
                conn.ConnectionString = "server=127.0.0.1;userid=root;password=root;database=dashboard"
                conn.Open()
            End If
        Catch ex As Exception
            MsgBox(ex.ToString())
        End Try

    End Sub
End Module

Open in new window

0
How do you setup a wait wheel animation while a file is loading in Visual Studio?

Thanks,

Dan
0

Microsoft Visual Studio

387

Solutions

452

Contributors

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.