The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
Geen idee...NMe84 schreef op maandag 22 november 2004 @ 19:50:
Kun je in VB niet dynamisch nieuwe forms creëren? (In Delphi wel iig.)
Ik zit op google te browsen maar ik begrijp der niets van... Ik zie allemaal wel loopjes maar ik kan het niet zo verbouwen dat ik er iets aan heb
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
Hey, I came here to be drugged, electrocuted and probed, not insulted.
Dat stukje (code) voorbeeld is een manier hoe ik het in het begin had gedaan.
Het is echter niet zo slim om dit allemaal te gaan type als het ook automatisch kan.
De vraag is echter hoe
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
1
2
3
| dim newform as form set newform = new Form1 newform.show |
zoiets, IIRC
Mja, en daar doe je een for-lus omheen
[ Voor 18% gewijzigd door muba op 22-11-2004 20:46 ]
Reporter: Mister Gandhi, what do you think of western civilisation?
Gandhi: I think it would be a good idea
[...]Alpha_Mouse schreef op maandag 22 november 2004 @ 20:16:
Ik wil een loop.
Dat stukje (code) voorbeeld is een manier hoe ik het in het begin had gedaan.
Het is echter niet zo slim om dit allemaal te gaan type als het ook automatisch kan.
De vraag is echter hoe?!
Meestal maak je loops met ofwel FOR of WHILE. Dus iets als:
1
2
3
4
5
6
7
8
| For n = 1 To 100
Print n
Next n
While n < 100
Print n
n = n + 1
Wend |
Maar sorry, dan snap ik nog niet wat je probeert te doen met het enablen van die tekstvakken en labels. Dat is toch geen loop.
Hey, I came here to be drugged, electrocuted and probed, not insulted.
Ik probeer een form te maken die dynamisch gegenereerd wordt. Dus D.m.v. een loop.Haploid schreef op maandag 22 november 2004 @ 20:55:
[...]
[...]
Meestal maak je loops met ofwel FOR of WHILE. Dus iets als:
code:
1 2 3 4 5 6 7 8For n = 1 To 100 Print n Next n While n < 100 Print n n = n + 1 Wend
Maar sorry, dan snap ik nog niet wat je probeert te doen met het enablen van die tekstvakken en labels. Dat is toch geen loop.
Ik snap het loop idee wel. Echter ik weet niet hoe ik het moet implementeren.
Alvast bedankt
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
hehe k ff kijken hoorNMe84 schreef op maandag 22 november 2004 @ 22:46:
Combineer dan de posts van MUBA en Haploid hierboven? Dat is waar ik op doelde met dynamisch nieuwe forms maken.
Ik ben echt noobisch hierin.
1
2
3
| dim newform as form set newform = new Form1 newform.show |
maakt dynamische een form aan. maar hoe werk ik dat in een loop
1
2
3
4
5
6
7
8
9
10
11
| For n = 1 To 10 dim newform as form set newform = new Form1 newform.show Print N Next n While n < 100 Print n n = n + 1 Wend |
zo?
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
Vervolgens controleer je bij het sluiten van het andere form de waarde van deze variabele. Zolang deze nog niet op 0 staat, verlaag je de globale variabele en sluit je het scherm en toon je het weer. Zodra de waarde op 0 staat open je geen nieuw form meer...
Maar ik zit hier echt al de hele avond mee te klooiten...
Wat ik dus een dropdown menu met het aantal maal dat het form zich moet herhalen.
Als ik dat heb ingevult, moet er dus een form gemaakt worden (nog geen idee hoe).
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
Dus dan wordt 't:
1
2
3
4
5
| Dim newForm As Form
For n = 1 To 10
Set newForm = New Form1
newForm.Show vbModeless
Next n |
Oh ja, en die 10 moet je vervangen door de waarde uit de ComboBox, dus dan wordt 't iets als:
1
2
3
4
5
| Dim newForm As Form
For n = 1 To CInt(ComboBox1.Text)
Set newForm = New Form1
newForm.Show vbModeless
Next n |
Hey, I came here to be drugged, electrocuted and probed, not insulted.
1
2
3
4
5
| Dim newForm As FrmCD
For n = 1 To CInt(ComboBox.Text)
Set newForm = New FrmCD
newForm.Show vbModeless
Next n |
Haploid en uiteraard de rest, bedankt!
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
Heeft iemand hier een oplossing voor?
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.
1
2
3
4
5
6
| Public aantal As Integer Private Sub Form_Load() For n = 1 To aantal TabIndex !!!! Next n End Sub |
Ik probeer tab te maken d.m.v. aantal in een loop te mikken.
Heb alleen geen idee hoe de tabs aangemaakt worden. Gebeurd dit met Tabindex?
[ Voor 0% gewijzigd door Alpha_Mouse op 23-11-2004 00:21 . Reden: Crap 3 browsers open :S en nog nooit gehoord van refresh! ]
The real definition of windows 9x: A number of 32-bit extensions of a 16-bit shell for an 8-bit OS, made for a 4-bit computer by a 2-bit company who can't stand 1-bit of competition.