• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 820
  • Last Modified:

ME.REFRESH

Could somebody give me advise on the following code usage...

me.refresh

Many Thanks

Felicia
0
felicia
Asked:
felicia
  • 2
  • 2
1 Solution
 
Erick37Commented:
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
 
Erick37Commented:
That's from VB Help, by the way.

Example:

Private Sub Form_Load()
    Me.Show
    Me.Refresh
    Form2.Show
End Sub
0
 
feliciaAuthor Commented:
Thanks.

Have a good day!!!

0
 
FONATURECommented:
I use refresh.me instead of cls.me some times both clears the form or object for updateing.I use it in Animation
0
 
FONATURECommented:
Im sorry i use Form1.cls instead of refresh.me or picture1.cls thats works for me :0)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now