PC Review


Reply
Thread Tools Rate Thread

adiing textbox..at runtime

 
 
=?Utf-8?B?SGVtYW50X2luZGlh?=
Guest
Posts: n/a
 
      11th Oct 2007
hi there
i want to add the textboxes on my form at runtime
equal to the number ..say two as per the input
is it possible?
--
hemu
 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      11th Oct 2007
Private Sub UserForm_Initialize()
Dim newCtrl As Control, num As Integer
num = 2
For i = 1 To num
Set newCtrl = _
Me.Controls.Add("Forms.TextBox.1", _
"txtBox" & i, True)
newCtrl.Top = 30 * i
Next i
End Sub

Hemant_india wrote:
> hi there
> i want to add the textboxes on my form at runtime
> equal to the number ..say two as per the input
> is it possible?
> --
> hemu


 
Reply With Quote
 
=?Utf-8?B?SGVtYW50X2luZGlh?=
Guest
Posts: n/a
 
      12th Oct 2007
million thanks JW
--
hemu


"JW" wrote:

> Private Sub UserForm_Initialize()
> Dim newCtrl As Control, num As Integer
> num = 2
> For i = 1 To num
> Set newCtrl = _
> Me.Controls.Add("Forms.TextBox.1", _
> "txtBox" & i, True)
> newCtrl.Top = 30 * i
> Next i
> End Sub
>
> Hemant_india wrote:
> > hi there
> > i want to add the textboxes on my form at runtime
> > equal to the number ..say two as per the input
> > is it possible?
> > --
> > hemu

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox labels at runtime Raj Microsoft Excel Programming 1 26th Jul 2008 05:04 AM
Textbox labels at runtime Raj Microsoft Excel Programming 1 25th Jul 2008 06:16 PM
position textbox at runtime mcnews Microsoft Access Getting Started 3 20th Sep 2007 07:11 PM
Resize a textbox at runtime avanti Microsoft C# .NET 2 9th Aug 2006 12:26 AM
Resizing a textbox at runtime? Carl Mercier Microsoft ASP .NET 0 26th Aug 2003 08:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:28 AM.