Results 1 to 3 of 3

Thread: User Control

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question User Control

    I am about to begin a lot of equal calculations. User Controls are taylor made for that. But I have some problems realising this.

    In my user control I have:
    A label, lblDimension, with the dimensions varying from 20, 22, 25, 28 to 110 mm.

    Two text boxes where I enter the energy supply, txtEnergy, and the length, txtLength.

    And finally I have three labels which contain different calculations:

    lblRes1.txt = CSng(lblDimension.txt * txtEnergy.txt + txtLength.txt)

    lblRes2.txt = CSng(lblDimension.txt + txtEnergy.txt *txtLength.txt)

    lblRes3.txt = CSng(lblDimension.txt - txtLength.txt*4)

    How do I specify the value of lblDimension for each of the 20 different calculations?

    I have attached a zip file which contains the complete Visual Studio Project.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width