Author Topic: Using Visual Studio 2017 /2019  (Read 18065 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Using Visual Studio 2017 /2019
« on: April 24, 2017, 02:30:37 PM »
Version 2017 of Visual Studio has changed to a new style installer that lets you select only the components you want. For AdvancedHMI to work, you must select the .NET Desktop Development option.

After you build the initial project, if you still do not see the components in the Toolbox, check this:

Go to Tools->Options menu

In that window go to Windows Forms Designer->General and make sure AutoToolboxPopulate is set to true.
« Last Edit: June 18, 2019, 08:26:49 PM by Archie »

ltw826

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Using Visual Studio 2017
« Reply #1 on: March 09, 2018, 01:55:03 PM »
I just installed Visual Studio Community 2017 and the option is set to "true".  The tools show up but I can't drag any object and drop it on the form. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: Using Visual Studio 2017
« Reply #2 on: March 09, 2018, 03:06:00 PM »
Are you using the MainFom from the default AdvancedHMI project?

mawrya

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Using Visual Studio 2017
« Reply #3 on: May 08, 2018, 09:58:31 PM »
I have the same problem: Installed VS 2017 Community Edition on two different computers (both Windows 10, 64-bit) and everything goes smoothly until I try to drag a driver or HMI control onto the MainForm.vb or MainForm.cs form. The cursor changes to a circle with a line through it, indicating the operation is not allowed. I have also tried creating new forms and even new projects with new forms but am never able to drag and drop a control onto a form.
« Last Edit: May 08, 2018, 10:02:22 PM by mawrya »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: Using Visual Studio 2017
« Reply #4 on: May 08, 2018, 10:21:54 PM »
I have the same problem: Installed VS 2017 Community Edition on two different computers (both Windows 10, 64-bit) and everything goes smoothly until I try to drag a driver or HMI control onto the MainForm.vb or MainForm.cs form. The cursor changes to a circle with a line through it, indicating the operation is not allowed. I have also tried creating new forms and even new projects with new forms but am never able to drag and drop a control onto a form.
Instead of dragging from the Toolbox, try selecting the item in the Toolbox then drawing a square on form to indicate position and size.

When you installed Visual Studio, did you select the Desktop development workload?

mawrya

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Using Visual Studio 2017
« Reply #5 on: May 08, 2018, 10:28:07 PM »
Ah, I found the problem. The Toolbox wasn't displayed to begin with, I was dragging controls from the solution explorer, not the toolbox. Dragging from the Toolbox works as expected.