Solved

ME.REFRESH

Posted on 2000-03-14
5
809 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
[X]
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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

749 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