Staredit Network

Staredit Network -> Miscellaneous -> Visual Basic!
Report, edit, etc...Posted by FaZ- on 2005-03-08 at 17:13:46
What is the "action" for making some two things do something on mouseover? I mean without even clicking, just placing the mouse on top of the object, which is a label in this case.
Report, edit, etc...Posted by Clokr_ on 2005-03-08 at 17:34:43
MouseMove ?

EDIT: and it is called event, not action tongue.gif
Report, edit, etc...Posted by MapUnprotector on 2005-03-08 at 17:54:47
Hey Clokr how do you get started programming in VB?
Report, edit, etc...Posted by FaZ- on 2005-03-08 at 19:15:15
Thanks a lot Clokr, I had a feeling that you would be the one to reply. tongue.gif
I just started VB with a "VHS" class. It's virtual high school and it offers tons of different courses that may not be availible at your school. VHS Site Take a look at it and see if your school offers it. I got the software free as well.
Report, edit, etc...Posted by MapUnprotector on 2005-03-08 at 19:18:15
I selected Intro to Computer Programming as an elective next year, I hope I get it. Its supposed to teach VB I think.
Report, edit, etc...Posted by DT_Battlekruser on 2005-03-08 at 22:55:58
School computer programming sucks. At least at my school you can't take it until you're a junior and I know practically the whole 'Intro' course.
Report, edit, etc...Posted by Kow on 2005-03-09 at 15:40:33
I'm taking a Database programming class next year (SQL), because its a prerequisite for a programming class that i wanna take.
Report, edit, etc...Posted by MapUnprotector on 2005-03-09 at 15:43:46
I'm taking it as a freshmen, then after you do the Intro course you can do the Java course, then theres an AP course.
Report, edit, etc...Posted by FaZ- on 2005-03-09 at 16:26:43
My school doesn't offer any programming classes, thus I am taking the VHS online class where I got mailed the program and attach any files that I make to the assignments and e-mail them to him. It's a great system.
Report, edit, etc...Posted by MapUnprotector on 2005-03-09 at 16:34:21
Lol thats interesting...
Report, edit, etc...Posted by FaZ- on 2005-03-09 at 20:38:13
Ahh clokr_ I need help again tongue.gif

I'm trying to link multiple conditions required, but cant figure out how. I'm making a calculator program and want it to set the second textbox, (which is divided by) txtNumberTwo, to one so that the program wont end.

CODE
Private Sub cmdExecute_Click()
If optAdd.Value = True Then
   lblAnswer = Val(txtNumberOne) + Val(txtNumberTwo)
End If
If optSubtract.Value = True Then
   lblAnswer = Val(txtNumberOne) - Val(txtNumberTwo)
End If
If optMultiply.Value = True Then
   lblAnswer = Val(txtNumberOne) * Val(txtNumberTwo)
End If

If optDivide.Value = True & Val(txtNumberTwo) = 0 Then
   Print "Cannot Divide by Zero."
End If

If optDivide.Value = True Then
   lblAnswer = Val(txtNumberOne) / Val(txtNumberTwo)
End If
End Sub


The part seperated is the code im talking about, but using & to link them does not work. I also don't know if print is what I want to do, but I'd like a popup window to appear that says not to, or simply set optAdd.Value = True. How?
Report, edit, etc...Posted by FaZ- on 2005-03-10 at 13:46:34
Ahaha my teacher taught me how. I was saying as a complete guess

CODE
If optDivide.Value = True & Val(txtNumberTwo) = 0 Then

and the right way is

If optDivide.Value = True AND Val(txtNumberTwo) = 0 Then


Damn I'm just that good tongue.gif And they said use msgbox as a popup window. Thanks anyway for not replying Clokr_. ranting.gif mad.gif huh.gif
Next Page (1)