Author Topic: New computer woes, all controls and missing, forms blank  (Read 1083 times)

boardmaker

  • Newbie
  • *
  • Posts: 13
    • View Profile
New computer woes, all controls and missing, forms blank
« on: June 16, 2022, 05:31:13 PM »
Picked up a new computer.  Had one go down from heat exhaustion.

Anyhow, loaded VS 2022 and some other needed software.  Loaded a current AdvancedHMI solution I deployed elsewhere in a similar machine.  Had to update the framework to 4.8.

Everything loaded.  Built the solution.
The main form had all the proper controls in designer.  Everything looked good.  Hit start.

The Main form launches and has the AdvancedHMI bitmap logo in the corner but all the controls are missing.

Did get an message in the debug window that stated: Skipped loading symbols.  Module is optimized and debugger option 'Just my Code' is enabled.

Searched online and recommendations seemed to focus on going to tools, options, debugging, general, uncheck enable just my code.

That doesn't help.  However, I do not get the Skipped loading symbols message in debugging.  In fact, the degging window states the symbols loaded.

I've been googling and searching the forum. Just not having any luck.

Anyone have any ideas?

I also added new controls to the form.  Both AdvancedHMI controls and VS common controls.  Neither displayed. 
« Last Edit: June 16, 2022, 05:40:00 PM by boardmaker »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New computer woes, all controls and missing, forms blank
« Reply #1 on: June 16, 2022, 05:44:22 PM »
Delete the \bin and \obj folders, then try again. That will ensure the solution us building.

boardmaker

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: New computer woes, all controls and missing, forms blank
« Reply #2 on: June 16, 2022, 07:03:08 PM »
Followed the advice on this post.
https://www.advancedhmi.com/forum/index.php?topic=1062.msg5555#msg5555

"- Open your AdvancedHMI project in Visual Studio
- Window->Close All Documents
- File->Save All
- Exit Visual Studio
- Using Windows Explorer, go to the folder with your AdvancedHMI project
- Delete the 6 following folders:
   \AdvancedHMI\bin
   \AdvancedHMI\obj
   \AdvancedHMIControls\bin
   \AdvancedHMIControls\obj
   \AdvancedHMIDrivers\bin
   \AdvancedHMIDrivers\obj

- If your PC is setup to show hidden files, also delete AdvancedHMI.sou
- Re-Open your project in Visual Studio
- Build->Clean Solution
- Build->Rebuild Solution
- Open MainForm from Solution Explorer"

Had an issue with a gtrackbar on the rebuild.  Just deleted all references to it. 
Everything built fine.
The main form looks perfect in designer, but when I press start and launch it.  The form loads missing all controls.  The only thing that makes it is the AdvancedHMI bitmap.

Any other ideas?
I'm going to keep googling.
« Last Edit: June 16, 2022, 07:20:12 PM by boardmaker »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New computer woes, all controls and missing, forms blank
« Reply #3 on: June 16, 2022, 07:38:17 PM »
In Solution Explorer, right click each Project and Rebuild them individually to see if it is one project in particular causing problems.

boardmaker

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: New computer woes, all controls and missing, forms blank
« Reply #4 on: June 17, 2022, 08:42:23 AM »
Thanks Archie for all the help.

This morning I delete all of the \obj and \bin files.

Right clicked AdvancedHMI in the solution explorer.
selected clean
3 succeeded, 0 failed, 0 skipped
selected rebuild
3 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIControls.
2 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIcs
3 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIDrivers
1 succeeded, 0 failed, 0 skipped

Opened the main form.
All controls are there and looks good.

Hit start
The main form loads with only the AdvancedHMI logo in the upper right corner.


boardmaker

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: New computer woes, all controls and missing, forms blank
« Reply #5 on: June 17, 2022, 08:55:47 AM »
I went ahead and uploaded another copy of the same exact AdvancedHMI program I had before.
Upgraded the framework.
Cleaned and Rebuilt each file.

Works great.

I have no idea, but something wasn't right with the first program I copied over.
Thanks for the help Archie.

By the way, this is my second use for AdvancedHMI.  Although I'm a hack in VB.net and am stumbling as I go, it works great.  Thank you. 
My third application is going to be for a homemade sawmill that I built.

I'm sure I'll be back in touch with more problems... ;D