thanks a lot, its working fine..
may i know u ..
with regards
kamalesh

thanks, try this one too, you can see how to easily UnLoad an object.  just
copy the whole text and read the comments
it's basically the same example

I hope it helps
.rEs





'easy example by .rEs
Option Explicit

'add 2 command buttons to your Form: Command1, Command2
'add a frame to your form: Frame1
'add a TextBox to your form: Text1
'Select Text1 and then give Text1 an Index of 0 in the properties window
'
'(this makes Frame1 the Container for TextBox1)
'select Text1 and select Cut
'select Frame1 and select Paste
'
'position Text1 appropriately on Frame1
'resize Frame1 vertically to make room for more TextBoxes



Private Sub Form_Load()
    Command1.Caption = "Click to Add"
    Command2.Caption = "Click to Erase"
End Sub

Private Sub Command1_Click()
    Dim xx As Long
    For xx = Text1.Count To Text1.Count 'can be changed to add more than one
at a time
        Load Text1(xx)
        Text1(xx).Left = Text1(xx - 1).Left
        Text1(xx).Top = Text1(xx - 1).Top + Text1(xx - 1).Height
        Text1(xx).Enabled = True
        Text1(xx).Visible = True
    Next xx
End Sub

Private Sub Command2_Click()
    Dim xx As Long
    For xx = Text1.Count - 1 To Text1.Count - 1 'can be changed to remove
more than one at a time
        If Text1.Count > 1 Then
            Unload Text1(xx)
        End If
    Next xx
End Sub





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to