VB6 Form Refresh help Request

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2009
Posts: 18
Reputation: pankaj.garg is an unknown quantity at this point 
Solved Threads: 0
pankaj.garg pankaj.garg is offline Offline
Newbie Poster

VB6 Form Refresh help Request

 
0
  #1
Nov 11th, 2009
i have 2 forms..when i start my application..form1 loads...then i navigate to form2 and adds some data in database using controls on form2, which should also reflect on form1...

My data is not getting reflected on form1, after i hide form2...before giving "form2.hide", i tried giving "form1.show" and "form1.refresh" but i am still not able to get the updated data on form1.

Plz help.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 904
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Posting Shark
 
1
  #2
Nov 11th, 2009
In form1 create a public sub so when you hide form2 you can call it...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Form1.MyPublicSub
  2. Me.Hide
then in the form1's mypublicsub you instruct whatever data access method you are using to refresh/requery itself and to redisplay the information.



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 496
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training
 
0
  #3
Nov 11th, 2009
you need to refresh your data control. like:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. data1.refresh
  2. msflexgrid.refresh
etc.
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Reply

Tags
refresh

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 441 | Replies: 2
Thread Tools Search this Thread



Tag cloud for refresh
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC