Results 1 to 6 of 6

Thread: Application Question

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    35

    Application Question

    Im currently in the process of turning a web simulation of an application into an exe simulation.

    The file is attached below.

    When the screens move from one to the next the taskbar flashes as i used:

    Show.form2
    unload me

    Is there a better way to do this to make it move smoothly onto the next screen and i noticed that with every click the memory usage increases. Is there a way to combat this or is that just the nature of VB?

    Im quite new to all this vb stuff so go easy on me

    Many thanks as usual.

    File Hosted On My Webserver in .zip format to compress size

  2. #2
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Application Question

    Try
    Code:
    Load form2
    form2.show
    unload me
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    35

    Re: Application Question

    Quote Originally Posted by some1uk03 View Post
    Try
    Code:
    Load form2
    form2.show
    unload me
    Sorry you are correct that was the way i was doing it, but still seems to take up more memory for every level of the app that you enter which i don't believe it should

  4. #4

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    35

    Re: Application Question

    Also when using the rex X to exit the appliaction it does not unload the form from memory either

  5. #5
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Application Question

    rex X ? Clarifiy plz...

    and i noticed that with every click the memory usage increases
    On every click to what, where ? There seems to be some memory leak somewhere then...
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  6. #6

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    35

    Re: Application Question

    Quote Originally Posted by some1uk03 View Post
    rex X ? Clarifiy plz...
    My typing there sorry, ment to be red x in the corner.

    Here is an example of a few screens and code:


    Code:
    Private Sub Image1_Click()
    transactions.Show
    Unload Me
    
    
    End Sub

    I just found out the reason why it was staying in the memory, one option was set to Hide not unload which fixes that issue.

    Is there a way to stop the application from refreshing the taskbar icon when it moves from one from to the next, or does it have to stay that way?

    Thanks



    Code:
    Private Sub Image1_Click()
    riposte.Show
    Unload Me
    End Sub
    
    Private Sub Image2_Click()
    servec.Show
    Unload Me
    
    End Sub

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