473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Create Groupbox and textbox at runtime

6
What's wrong with thes code! everone??...why i click the BOOK button there is nothing happens

Private Sub btnBook_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBook.Click

Dim gboChildren As GroupBox
Dim txtName As TextBox
Dim iPositionIncreseament As Integer = 200
Dim iTest As Integer = 0
iTest = CInt(txtChildren.Text)

For iCounter As Integer = 1 To iTest
gboChildren = New GroupBox
gboChildren.Name = "Children " & iTest
gboChildren.Location = New Point(30, 400 + iPositionIncreseament)
gboChildren.AutoSize = True
txtName = New TextBox
gboChildren.Controls.Add(txtName)
Next



End Sub
Mar 14 '12 #1
2 2860
Guido Geurs
767 Expert 512MB
Is this .Net ?
Please, if so, place this call in the right forum.
Mar 14 '12 #2
Killer42
8,435 Expert 8TB
"Handles btnBook.Click"? Yes, this is .Net code not VB6 or older.
Mar 14 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tom Rathbun | last post by:
This is probably simple but it has stumped me. I want to create objects at runtime for example: A program that would allow you to draw lines on a form. For each new line I would like to create a...
1
by: pepsi330ml | last post by:
I need to create a crosstab report that does not need the user to know the total number to columns and manually add a new textbox and amend the VBA code. The VBA code should handle everything from...
13
by: invincible | last post by:
hi friends , how can I declare / create function during runtime similiar to lambda in lisp. thanks Mohan
1
by: Bruno Pimentel Machado | last post by:
is it possible (how) to build a asp.net page on the fly? i.e.: I have a db with the controls I want to add to it: 1. TextBox - name "ABC" - Text "CDE" - Left 10 - Top - 30 2. Button - name "BT1" -...
2
by: CsaaGuy | last post by:
Hi, I created a class in ap.net using vb.net that inherits from Textbox. I added a few of my own properties and methods, set it up to appear in the toolbox. And have used it. My properties that...
1
by: Luc | last post by:
Hi, I have a TabControl and, at runtime, I need to add some tabpages. The problem is that each tabpage is similar to the others and contains several controls. If I do...
4
by: Sakharam Phapale | last post by:
Hi all, Is it possible to create menu in runtime in VB 6.0. If yes then How? Thanks and Regards Sakharam Phapale
0
by: bnthorat80 | last post by:
How can i create table in runtime in window application in visual studio 2005 in vb.net on click event of button. plz help
2
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: I am using vb.net 2005 and the following code trying to create varible at runtime: For n=1 to 4 dim v+n.tostring(n) as double Next n the resone behaind using the previous...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.