Determing what got clicked that caused me to open..

kco1122

Member
Joined
Mar 29, 2006
Messages
21
Programming Experience
5-10
Hi folks..

I'm creating a lil stock tracker program and have a question.. I've got several buttons available for things like viewing, adding, deleting stocks (currently owned vs. those just being watched). I know that the functions do the same thing whether its a stock thats owned or just one being tracked, but I'd like to keep them in seperate data sources but want to use the same function to access them...

I started with adding.. the button brings up a small input dialog form that will then perform some action.. my problem is how do I tell that dialog form which Add button got pushed (add ticker to owned or add ticker to watched) so that I can then tell function which data source to hit up for the info.
 
add a public variable/property to the dialog form where you can set this info, from the creator/caller of this dialog you set the info before showing the dialog.
 
Back
Top