TipGiver
Programmer
- Sep 1, 2005
- 1,863
Hi and Merry Xmas!
It is much time that i left high level programming (i was dealing with microcontrollers and assembly) and i need help. It is simple, i know the solution which is delegates, but i cant get it work. So.
I have a usercontrol that has a button. The control is... on a form. The form has a method SetError(msg as string). When i press the button i want to call the form's SetError and pass the string argument. I use the usercontrol.parentform to get the form.
Note that: I can't use an other dll to store a "Byref" copy. The code structure is complex and causes circular depedency. Also, the SetError messes other controls so i can't just use the parentform's .Control("name") to transfer the message.
Thank you in advance.
It is much time that i left high level programming (i was dealing with microcontrollers and assembly) and i need help. It is simple, i know the solution which is delegates, but i cant get it work. So.
I have a usercontrol that has a button. The control is... on a form. The form has a method SetError(msg as string). When i press the button i want to call the form's SetError and pass the string argument. I use the usercontrol.parentform to get the form.
Note that: I can't use an other dll to store a "Byref" copy. The code structure is complex and causes circular depedency. Also, the SetError messes other controls so i can't just use the parentform's .Control("name") to transfer the message.
Thank you in advance.