Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ME.REFRESH

Posted on 2000-03-14
5
Medium Priority
?
818 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

636 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