Re: letting users make controls
- From: "Phil G." <Phil@xxxxxxxxxx>
- Date: Fri, 2 Sep 2005 21:58:52 +0000 (UTC)
You can dynamically create controls, no problem.
The format would be on the lines of:
Dim frm As New Form
Dim tbox As New TextBox
frm.Name = "Form" & cnt
tbox.Name = "Textbox" & cnt
tbox.Text = "Textbox" & cnt
tbox.Location = New Point(30, 40)
frm.Controls.Add(tbox)
frm.Show()
cnt += 1
HTH, Phil
"steve" <steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7D8C153D-E16A-41C1-8003-9129847B4F4E@xxxxxxxxxxxxxxxx
> Hi
>
> I've been wondering for a wile now if its possible to make an application
> were the user can make a form by inputting data in variables this by using
> VB.net
>
> Example
> The user gets a dataset and below a button make form
>
> varname ! Description ! Default value ! Max length ! typeval
> ---------------------------------------------------------------------
> strTest ! Length ! 100 ! 7 char ! String
>
>
> If the user clicks on the command button it will make a form with a
> textbox
> (because of the string value) 7 charters long with a label in the label
> Value
> length. And the default value in the textbox will be 100
>
> Is this possible?
> Can someone direct me to help files, books where I can find examples of
> this
> or something like it?
>
> thanks steve
.
- References:
- letting users make controls
- From: steve
- letting users make controls
- Prev by Date: Re: How to logon and post this to a web form
- Next by Date: Re: letting users make controls
- Previous by thread: letting users make controls
- Next by thread: Re: letting users make controls
- Index(es):
Loading