473,394 Members | 1,714 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,394 software developers and data experts.

letting users make controls

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
Nov 21 '05 #1
3 1021
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" <st***@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
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

Nov 21 '05 #2
I would half to say yes, Since .net can compile at runtime then this is
possible.
What is the use?
It will be a pain in the ass as far as useability, a lot of training will be
required
"steve" <st***@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
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

Nov 21 '05 #3
Hi Chris

Thanks for replying to my question

I like to build an environment where the users can input variables and use
them later in al dataset for calculation. This already exists in other
applications but the thing is you can only make the variables in datasets. I
like to take it a step furthers so that the users can input the variable
values in a dataset and generate a form or a view of controls where the can
change the input of these variable values.
This if after the saved the variable dataset as a template.

Again I've seen it work in an application in java where the user can make a
view of controls with JavaScript, save it as a template and call it for
manipulating the values of the variables by using the controls
And again I do not like it it’s too difficult for the users.

Do you now any books or sites where I can find help on this topic?

Steve


"Chris" schreef:
I would half to say yes, Since .net can compile at runtime then this is
possible.
What is the use?
It will be a pain in the ass as far as useability, a lot of training will be
required
"steve" <st***@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
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


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bengt Richter | last post by:
We have where syntax in combination with suite expression syntax (bear with me, I think a good synergy will emerge ;-) ...
1
by: VM | last post by:
Is it possible for the bound data in a web datagrid to be displayed in links? The grid will show the client's first name and last name and, when the user clicks on the first or last name, I want...
1
by: Brandon Potter | last post by:
I'm having a bit of trouble figuring out how to let IIS 6 pass on default document requests for documents that don't exist to ASP.NET. In a simplified version of my application, all of the...
13
by: darrel | last post by:
I had a conversation with a friend today. I'm working on a project where I have an XML file that stores the site structure and some page-centric variables. I have a handful of controls that will...
19
by: | last post by:
Just seeking some advice (or solace)... Am I the only who's having trouble letting go of notation? Having extensive experience in C++ years ago (both before I jumped into VB3 in college and at...
4
by: BerkshireGuy | last post by:
I have a form, with a subform that changes AllowsEdits,AllowAdditions, etc depending on who is coming in. This is done by using the OpenArgs and is working fine. However, if the user is...
3
by: Steven Nagy | last post by:
Hi all, I'm getting across the membership API stuff. However it seems that we would have benefitted from some extra controls for "Manage Users" and "Manage Roles". Is there some additional...
6
by: Simon | last post by:
How to pass messages through events from a user control to its containing page, or to another user control? Is there any recommended way? Thanks very much.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.