| | |
convert string into object
![]() |
Hi,
I think u r trying to create a checkbox on runtime and give it the name stored in variable b. if so below is the code to do it:
I think u r trying to create a checkbox on runtime and give it the name stored in variable b. if so below is the code to do it:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Command1_Click() Dim a As CheckBox Dim b As String b = "check1" Set a = Controls.Add("VB.CheckBox", b) With a .Visible = True .Caption = b .Top = 50 .Left = 50 End With End Sub
It is never about the number of languages you know, you either have the logic of programming or you don't ...
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
![]() |
Similar Threads
- Convert string to to HEX (C)
- Size of string object??? (C++)
- How to convert string to const char* in C (C++)
- Convert string "aA" to a BigInteger (Java)
- making a string .. name of an object (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Excel & VB
- Next Thread: Form that maintains a table by reading a second table
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





