Tutorial :Perform button action at variable frequency [closed]



Question:

I want to make an button that runs an action with the frequency from an number input in Visual Basic .NET . How do I do it? Could someone point me out the syntax of such an action?

@Jon, I think that's C++, I am talking about VB.Net.

@Adam Davis, VB.Net 3.5 and all that I want to do is use an number from "NumericUpDown" to give a button how many times the action the button has to do it.


Solution:1

    Dim i as integer        For (i = 1 To InputNumber)         'Code here      Next  


Solution:2

This should do the trick.

    For i As Integer = 0 To CInt(NumericUpDown1.Value)          'Code to execute       Next  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »