I created an active-X control in visual basic, it has a function "CreateChart", creates a chart diagram. And I am using this control on some other form in a different project. If I have "CreateChart" function in the form load, it works. If I have this function in a command button click, it does not work. and If I go in debug mode through command button click, it works. Do you have any suggestions for it to make work from Command button click?