That sounds like the kind of situation where you would raise an event and pass the data as an argument to the event.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Yes, you can do it that way if you want. I don't think it's the best solution, but I get the feeling you don't want to follow my advice since you completely ignored my last post.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>I don't really know the specific one to raise.
The event is raised when you click the button. You need to handle that event in the calling form. Your documentation should cover how to do this in detail.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Are you actually using the Win32 API to do this? You were talking about forms, so I gathered that you were using Windows Forms, which is .NET. Maybe you should post your code.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Could you post the declaration of TfrmAmountSelector and TfrmClient please.
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396