Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...it was ingeniously designed and all those clicks were for my own good... and that was even before I got my speedy and useful answer to my tekkie question that I eventually posted..."

Geography

Where in the world do Tek-Tips members come from?
jslmvl (Vendor)
25 Apr 11 1:56
Hi,

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?
genomon (Programmer)
25 Apr 11 11:37
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.

An làmb a bheir, 's i a gheibh.

jslmvl (Vendor)
25 Apr 11 12:18
Well, User Control is a control but made by yourself not from MS.
genomon (Programmer)
25 Apr 11 12:21
"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?

An làmb a bheir, 's i a gheibh.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close