CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Clearing Screen

  1. #1
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Clearing Screen

    How do I remove objects from the screen when I shut down a program or exit to desktop. I Refer to a case in point where I have generated a sound recorder upon load. It stays there on desktop when I leave VB. VB Doesnt seem to like (Unload)
    73 RSH


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Clearing Screen

    From your previous post, You started the recorder using the SHell command which caused it to start up in its own window.
    You now need to send it a message saying to close down, kind like clicking the big X. There are several samples of how to do this on Http://www.Planet-Source-Code.com/vb that shows how to do this. I do not have a sample at hand, but perusing PSC.com using "CLose a program" as a search argument showed 10 pages of hits (about 100 samples)

    John G

  3. #3
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: Clearing Screen

    As the previous post says but, one other thing that may be of use.

    If you go to VB-helper.com you'll find a program there I wrote some months ago. Go to the HOW TO section and click search and find - open and close a program. This will do much as you want and also solves your earlier problem of having the 2nd sound added to the first.

    VB-helper also supplies a weekly mag of useful stuff and has zillions of VERY useful program examples.

    You will need winzip to download these things and I think you mentioned that you don't have that. You can download winzip free of charge (share) and if I am right )that you don't have it) that you will not survive long without it if you want to use VB.

    All the very best

    Phil



  4. #4
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: Clearing Screen

    Thanks Phil/John:
    I will persue these suggestions post haste.
    By the way I now have an unzipper so that may help. Dont know what one would do without this Forum. I have the Black Book 3 inches thick and none of this stuff is in there.
    Tnx again & 73 RSH


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

Featured