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

insert the text boxes at run time

137 100+
is it possible to insert the no, of text boxes at the run time. i want the messages to be in the text boxes rather than message box.
Apr 3 '07 #1
4 1483
vijaydiwakar
579 512MB
is it possible to insert the no, of text boxes at the run time. i want the messages to be in the text boxes rather than message box.
yes
for that create ctrl array and use following code
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub Form_Load()
  3. Load Text1(1)
  4. Text1(1).Visible = True
  5. Text1(1).Left = Me.Left
  6. Text1(1).Top = Me.Top
  7. End Sub
  8.  
  9.  
Apr 3 '07 #2
coolminded
137 100+
hi
i have to show the values of no. of record in the text boxes. when i click any button, the values should be displayed in the text boxes one by one. now i am showing the values in the same text box. when i click any button, the previous value disappears and the new value is displayed. i want to store all the values shown in the text box and to display too.
as we can show the values of the recordset in the datagrid, i want to show it in the textboxes. in the datagrid, the no. of rows increases as the data increases, likewise i want to show the data in the textbox and increase the no. as the data increases.
Apr 4 '07 #3
vijaydiwakar
579 512MB
hi
i have to show the values of no. of record in the text boxes. when i click any button, the values should be displayed in the text boxes one by one. now i am showing the values in the same text box. when i click any button, the previous value disappears and the new value is displayed. i want to store all the values shown in the text box and to display too.
as we can show the values of the recordset in the datagrid, i want to show it in the textboxes. in the datagrid, the no. of rows increases as the data increases, likewise i want to show the data in the textbox and increase the no. as the data increases.
see its not a good practise
but still ua may handle this case using xml file or notepad file
link each record with the index of text box and some other related details
Apr 4 '07 #4
Killer42
8,435 Expert 8TB
i have to show the values of no. of record in the text boxes. when i click any button, the values should be displayed in the text boxes one by one. now i am showing the values in the same text box. when i click any button, the previous value disappears and the new value is displayed. i want to store all the values shown in the text box and to display too.
as we can show the values of the recordset in the datagrid, i want to show it in the textboxes. in the datagrid, the no. of rows increases as the data increases, likewise i want to show the data in the textbox and increase the no. as the data increases.
If you are using VB6, then as vijaydiwakar pointed out in his first response, you can use a control array. This allows you to add more elements (in this case, textboxes) at runtime.

If you are using VB.Net then I have no idea how you add controls at runtime.

One thing to keep in mind. If you know the maximum number of textboxes you will need, you could create them all at design time, then just set their Visible property to hide or show them.
Apr 5 '07 #5

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

Similar topics

3
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user...
11
by: Edson Peacock | last post by:
I have a report with sub reports, one of the subreports have 12 text boxes that are 2" high and I want them all to grow if one goes to 3" high. If anyone has any suggestions they are very much...
2
by: harrys | last post by:
Hi, Just wanted to clairfy if there is an easier way of acheving the following: On my page i have ten text boxes. These boxes may or may not have data entered into them; (This is out of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.