Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Frequently Asked Questions > Scripting

Thread Tools Rate Thread Display Modes
Old 05-02-2007, 04:20 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,837
How to refresh GUI app with changes made via object model

When script code modifies the current project via the object model, the GUI app may not immediately update to reflect those changes. To force a refresh of the GUI app from the underlying object model, use the following VBScript code in a Run Script action:
CreateObject("WScript.Shell").SendKeys "{F5}", True
Note: This code may need to be adjusted if F5 is not configured as a keyboard shortcut for View | Refresh (it is by default).
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is On

All times are GMT -5. The time now is 01:28 PM.

Copyright 1999-2021 Kinook Software, Inc.