Solved

ME.REFRESH

Posted on 2000-03-14
5
805 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks.

Have a good day!!!

0
 

Expert Comment

by:FONATURE
Comment Utility
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
Comment Utility
Im sorry i use Form1.cls instead of refresh.me or picture1.cls thats works for me :0)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now