Results 1 to 3 of 3

Thread: Arrangement

  1. #1

    Thread Starter
    Hyperactive Member ahmad_iam's Avatar
    Join Date
    Jun 2005
    Location
    Pakistan
    Posts
    265

    Exclamation Arrangement

    I am developing an Application to calculate the CGPA. I want that the user enter the total number of subjects, then the application display the controls like texthbox and labels equal to the total no of subjects enterred. How I can do that.

    Imran Ahmad Mughal
    "Visual Studio .NET 2005/.NET Framework 2.0"

    The eyes are the greatest telescopes, one will ever need to study the universe. Let the heart be the tripod, the mind be the shaft, then let the eyes become the lens of that great telescope of which God gave to us all.

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: Arrangement

    VB Code:
    1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    2.         Dim i As Integer
    3.         Dim j As Integer = 100
    4.         For i = 0 To 2
    5.             Dim t As New TextBox()
    6.             t.Name = "myTextbox" & i
    7.             t.Location = New Point(100, j)
    8.             Me.Controls.Add(t)
    9.             j += 25
    10.         Next
    11.     End Sub

    edit: I just put a name of the textbox
    Last edited by mar_zim; Sep 27th, 2005 at 09:19 PM.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Arrangement

    You could do it yourself, but you might find it easier with the DataRepeater control included with this library. I assure you that this library is free. We've already had that debate on a couple of other threads.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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