| | |
Adding code to form using code
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 30
Reputation:
Solved Threads: 0
0
#3 27 Days Ago
ok well i am making a loop that gets all the drives in a drive box and inserts a picbox and a label for each one.
because there can be a different a number of drives i want to add some code that will insert code (for when the label or picbox is clicked) in the loop
because there can be a different a number of drives i want to add some code that will insert code (for when the label or picbox is clicked) in the loop
Last edited by drabsch; 27 Days Ago at 12:06 am.
0
#4 26 Days Ago
you will add a code during runtime? I don't know it its possible but to make a work around on that... make a code/function that will be soon called of the control you will be going to add. You can try the AddHandler() method. Well I don't know it there's a AddHandler() method in VB6.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
•
•
Join Date: Sep 2008
Posts: 34
Reputation:
Solved Threads: 2
0
#9 22 Days Ago
ok i think i get it: make your picture box as an array, picture1(0), picture1(1) etc., then use this code then you can specify the location with i hope this helps!
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Load picture1(index)
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
picture1(index).top = ...
![]() |
Similar Threads
- Seperating UI code (C#)
- VB Code About Closing 2 or more forms pls. (Visual Basic 4 / 5 / 6)
- newbie needs code help for form (HTML and CSS)
- Jump from code in one form to another. VB6 (Visual Basic 4 / 5 / 6)
- How to change php code html code and code like this ? (Existing Scripts)
- ASP: Sending a HTML form to an email address (ASP)
- Separating socket code from GUI code (C++)
- I GIVE UP, how do I modify this code to call from one form to the other and back (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Vb calculator to work with keypad
- Next Thread: generate numbers
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column 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 retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





