Wow, the sticky from JuggaloBrotha almost made me not post this, but I guess I have to since I'm facing a deadline. If there's no example for how to use that component, it's not much help anyway. So, please forgive me if I make a political error by asking this question, which is actually more generalized anyway.
I've built an assembly (a login dialog box) that has a component(login.vb) and a form(frmLogin.vb) compiled together. The component calls a ShowDialog() function that displays frmLogin.
Inside the frmLogin I've declared a public property called Picture that is supposed to Get and Set a picturebox image that is one of the form's controls. This is so the assembly can be customized to different applications our company owns. I have also declared this property in the component(login.vb).
I have also declared public events in frmLogin that are supposed to be fired when 1)the Login button or 2)the Cancel button are clicked. This is so I can 1)return the two values in the login and password textboxes on the form(frmlogin), or 2)close the calling application if the user clicks Cancel.
QUESTION: After adding the component to another application and setting the Picture at design time, the image I browsed to and selected from the property window of the component is not getting loaded into the picturebox (no errors are thrown). Why?
QUESTION: How do I add event handlers to a calling application to receive the events from the assembly? Are the events also supposed to be declared both in the form itself and the component that contains the ShowDialog() function? I've tried various ways and places to add the Events, and so far I've come up empty because I'm just guessing.
NOTE: I've never done this before and I'm over my head, so please try to come up with a detailed answer.
THANKS
I've built an assembly (a login dialog box) that has a component(login.vb) and a form(frmLogin.vb) compiled together. The component calls a ShowDialog() function that displays frmLogin.
Inside the frmLogin I've declared a public property called Picture that is supposed to Get and Set a picturebox image that is one of the form's controls. This is so the assembly can be customized to different applications our company owns. I have also declared this property in the component(login.vb).
I have also declared public events in frmLogin that are supposed to be fired when 1)the Login button or 2)the Cancel button are clicked. This is so I can 1)return the two values in the login and password textboxes on the form(frmlogin), or 2)close the calling application if the user clicks Cancel.
QUESTION: After adding the component to another application and setting the Picture at design time, the image I browsed to and selected from the property window of the component is not getting loaded into the picturebox (no errors are thrown). Why?
QUESTION: How do I add event handlers to a calling application to receive the events from the assembly? Are the events also supposed to be declared both in the form itself and the component that contains the ShowDialog() function? I've tried various ways and places to add the Events, and so far I've come up empty because I'm just guessing.
NOTE: I've never done this before and I'm over my head, so please try to come up with a detailed answer.
THANKS