|
-
Nov 2nd, 2006, 10:24 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] How to call a public fn that's in one form, from another?
Hi,
Hoping you can help...
1) I have a form, frmDisplay, that displays data in a ListView control.
2) When a user selects a row and clicks btnEdit, a little editng form, frmEdit, pops up with a few combo boxes to allow editing.
3) In frmEdit's btnOkay_Click event, I can save the data to the data source, BUT...
Question
How can I refresh the ListView from frmEdit's btnOkay_Click?
BTW I have a Sub RefreshList in frmDisplay that refreshes the ListVew. That's not the problem. The problem is how to call that code from the other form! Even after making it Public, I couldn't access it, even using frmDisplay.RefreshList().
My workaround for now is to have a btnRefresh on frmDisplay and update the list manually, but that's not a suitable solution.
Your help is much appreciated!
Gregg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|