Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ME.REFRESH

Posted on 2000-03-14
5
808 Views
Last Modified: 2008-02-01
Could somebody give me advise on the following code usage...

me.refresh

Many Thanks

Felicia
0
Comment
Question by:felicia
  • 2
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 0 total points
ID: 2618405
Use the Refresh method when you want to:

·Completely display one form while another form loads.
·Update the contents of a file-system list box, such as a FileListBox control.
·Update the data structures of a Data control.

Refresh can't be used on MDI forms, but can be used on MDI child forms. You can't use Refresh on Menu or Timer controls.

Generally, painting a form or control is handled automatically while no events are occurring. However, there may be situations where you want the form or control updated immediately. For example, if you use a file list box, a directory list box, or a drive list box to show the current status of the directory structure, you can use Refresh to update the list whenever a change is made to the directory structure.

You can use the Refresh method on a Data control to open or reopen the database (if the DatabaseName, ReadOnly, Exclusive, or Connect property settings have changed) and rebuild the dynaset in the control's Recordset property.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2618409
That's from VB Help, by the way.

Example:

Private Sub Form_Load()
    Me.Show
    Me.Refresh
    Form2.Show
End Sub
0
 

Author Comment

by:felicia
ID: 2618439
Thanks.

Have a good day!!!

0
 

Expert Comment

by:FONATURE
ID: 2618693
I use refresh.me instead of cls.me some times both clears the form or object for updateing.I use it in Animation
0
 

Expert Comment

by:FONATURE
ID: 2618701
Im sorry i use Form1.cls instead of refresh.me or picture1.cls thats works for me :0)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question