Results 1 to 12 of 12

Thread: After VMware shut down Improper , VB6 project usercontrol always become grey

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    After VMware shut down Improper , VB6 project usercontrol always become grey

    hi~ all

    How the following issue happened ?

    step1
    Open VMware software in win7

    step2
    Run a new sub-win7 in VMware
    Name:  bbb.gif
Views: 176
Size:  30.6 KB

    step3
    Violent kill sub-Win7 process (it run in VMware) by Task Manager
    and close VMware software

    step4
    After open VB6 project in win7 use VB_IDE ,
    all usercontrol on form will miss and become grey and is replaced as vb6.picturebox by vb ide


    Name:  002233.gif
Views: 193
Size:  8.7 KB



    @@@@@@@@@@@@@
    This problem has happened countless times
    I always need use win7 system backup to recover it , and issue will be solved
    Last edited by quickbbbb; Dec 2nd, 2021 at 09:42 PM.

  2. #2
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,936

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    You really haven't given us very much information, specifically, what dependencies is this VB6 program using.

    Also, are we talking about a compiled program, running in the IDE, or both?


    If I had to guess with your limited information, I'd guess that your registry is getting corrupted, and VB6 (IDE and/or program) can't find some OCX dependency.

    Also, I often get "dinged" by others in these forums for working hard to keep my primary application "portable". I bet my application (being portable) wouldn't have this problem.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Quote Originally Posted by Elroy View Post
    what dependencies is this VB6 program using.
    (1)
    just a very easy usercontrol on form
    there are vb6.textbox , vb6.label on the usercontrol
    no any winapi in usercontrol

    (2)
    usercontrol is a script file ( .ctl ) , not ocx
    but there are vb6.textbox , vb6.listbox on the usercontrol

    Quote Originally Posted by Elroy View Post
    Also, are we talking about a compiled program, running in the IDE, or both?
    It only occur in VB6 IDE

    compiled program still work very fine
    Last edited by quickbbbb; Dec 2nd, 2021 at 09:43 PM.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    major discovery

    all gray usercontrol is replaced as VB6.picturebox

    why vb6 ide auto replace my usercontrol as VB6.picturebox ?????
    Last edited by quickbbbb; Dec 2nd, 2021 at 09:04 PM.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Code:
    major discovery part2
    
    step1 ============
        Open new vb6 project -> 
        add Form1 and add usercontrol -> 
        save vb6 project as  111.vbp ->
        close vb6 ide
    
    step2 ============
      open 111.vbp  use vb ide ->
      usercontrol is still on Form1 ( usercontrol no  miss)
    
    
    step3 ============
      
       kill  usercontrol.ctl ->
       reopen 111.vbp  use vb ide ->
       usercontrol on Form1 has  miss and is replaced as picturebox by vb ide
    why after violent kill sub-Win7 process (it run in VMware) by Task Manager ,

    vb ide will can not load usercontrol to Form ( but I can see my usercontrol is in project treeview box )
    Last edited by quickbbbb; Dec 2nd, 2021 at 09:26 PM.

  6. #6
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Sounds like your .frm file or .vbp file is getting corrupted.

    Why are you killing VMWare with task manager anyway?
    I've been using VMWare for years and don't think I have ever had to do an end task on it.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Quote Originally Posted by DataMiser View Post
    Sounds like your .frm file or .vbp file is getting corrupted.
    NO

    My .frm file or .vbp file is not corrupted.

    because after use win7 backup to recover , my all .vbp and .frm work fine
    .

    vb6 ide work fine

    it prove that the all vbp file is not damaged


    Quote Originally Posted by DataMiser View Post

    Why are you killing VMWare with task manager anyway?
    I've been using VMWare for years and don't think I have ever had to do an end task on it.
    because VMWare disappear in taskbar , VMWare only can be see in task manager
    I can not close VMWare by button

    (1) after I close VMWare by killing VMWare ---> vb6 will become can not load usercontrol.ctl of vbp file
    (2) after I close VMWare by sign out win7 ---> vb6 also will become can not load usercontrol.ctl of vbp file

    there is no any way to close VMWare and at the same time let vb6 still can load usercontrol.ctl of vbp file
    Last edited by quickbbbb; Dec 3rd, 2021 at 12:19 AM.

  8. #8
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    What VMWare are you using? I personally always shut down or pause the OS in VMWare when I am done using it then may or may not close down the VMWare.

    I have saw many cases of controls being replaced by picture boxes in VB not running in a VM and it is always because there is a reference to a control in the .frm file that VB can not find the control in question.

    If you are killing the task while the OS is running who knows what state the VM files are actually left in. Definitely not something you should be doing.

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Quote Originally Posted by DataMiser View Post
    What VMWare are you using? I personally always shut down or pause the OS in VMWare when I am done using it then may or may not close down the VMWare.

    I have saw many cases of controls being replaced by picture boxes in VB not running in a VM and it is always because there is a reference to a control in the .frm file that VB can not find the control in question.
    (1) I use VNware pro 12

    (2) example
    I run first win7 in VMware
    I run second win7 in VMware

    at time = AM 3:00 , I use other software set my PC auto go to sleep ( win7 of VMware still running )
    at time = AM 8:00 , I awake my PC ( win7 of VMware still running ) , but sometimes win7 of VMware will disappear in taskbar

    so I can not shut down win7


    (3) VB6 not run in sub win7 of VMware , vb6 is run in win7

    (4) Just now I had recover my win7 system by win7 backup
    Now my usercontrol.ctl work fine in vb6 IDE , VB6 IDE load *.ctl successful , all strange issue disappear
    Last edited by quickbbbb; Dec 3rd, 2021 at 02:51 AM.

  10. #10
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,904

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    It seems that terminating the VMware session corrupts the "windows installation"
    So do you thing it's a bug in the VB6 IDE or is it a problem of VMware
    Or is it a user error caused by killing the VMware session instead of closing it?

  11. #11
    Junior Member
    Join Date
    Nov 2021
    Posts
    18

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    1) Trash that cursed computer
    2) Go to beach, collect sand, try to make silicon to build a new computer
    3) ????
    4) Computers were a mistake

  12. #12
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    Sounds like you need to either disable sleep mode or shut your pc down when you are not going to be using it for several hours or at least close down the VMs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width