I need to put code
W = W/n/m
into my usercontrol, W, n and m are the usercontrol's properties.
When I put the code in
Sub UserControl_Initialize()
I got divide by zero error. I sould put the code in what event?
I have never seen this syntax used in Visual Basic 5 or 6 before. The compiler is trying to divide W by n by m (whatever W, n, and m are). You will get the divide by zero error no matter where you put the code. What exactly are the properties you are trying to set, and what is "usercontrol"? A text box, command button, etc.
W = W/n/m" is meaningless without some sort of context to put it in. What sre w, n, and m? What values are stored there? What properties are you trying to set? What does your control do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.