Search:
Type: Posts; User: AC_AC_AC187
Search:
Search took 0.05 seconds.
-
how do i check for CTRL & SHIFT being held in when clicking on a command button?
eg:
Private Sub cmdbtn_Click
If KeyDown = ctrl & shift Then
-
thanks so much guys, greatly appreciate it!
-
ok, that could work. but for the way i want to do this, it would be much easier if there was a way to return an index value for the last non-empty cell going from the lower boundary of the array......
-
when declaring an array, it must be set with a constant value. ie, you can not do it like this:
Dim arrayDeck(1 To x) As String
and modify the length of the array by changing the value of x
...
-
For intCard = 1 To 96
tempArray(intCard) = arrayDeck(intCard)
Next
Do While colCards.Count < 96 'y'
intCard = Int(96 * Rnd + 1)
On Error Resume Next 'x'
...
-
we got it working!
see attached project file...
-
that's maybe a slightly better way than randomly selecting a cell of the unshuffled array then setting it to 0, if you have if value > 0 when randomly selecting the cell. but either way would be...
-
i got a shuffle working on an array of integers from 1 to 20
but i'm struggling to implement it to shuffle set strings...??
i've set a value to each cell of the array that i want to shuffle...
-
i have an array of uno cards in my project, and need to shuffle the array. each array cell from 1 to 96 is set as form load...
yes, i searched the forum for solutions. but couldn't implement...
-
yes please, i really need to get this working before tomorrow if possible...
-
just figured out that the type mismatch error was from not selecting an item in the listbox before clicking the command button. then it gives me the same variable not set run-time error aswell...
-
started a new project again, just copying the code from your last post. this time getting a variable not set run-time error
struggling...
-
ok, modified the code and am getting a type mismatch run-time error... not sure if i implemented the code correctly?
please help asap, this is due tomorrow afternoon.
-
you may not be able to pull the connection speed from the broadband modem either. because alot of modems (with say a 512/128 plan) will show an internet conection speed of 1536/256
i have no idea...
-
is it possible to use form names instead of the numbers? (such as frmMain)
and is it possible to load a form from its name in the array?
so that i could do something like this...??
question =...
-
it's a project for school and that's the way it's gotta be done...
-
thanks heaps for that!
like this? (listbox is just to view result)...
then how would i load each question (form) in that shuffled order? (show next form after user submits answer on previous...
-
sorry about that, i followed a link from the forum and didn't realise i was in the codebank...
could you please help me out here
-
i've never actually used an array in vb6. but i need to create an array with the numbers 1 to 25 and shuffle them into a random order in the array, then take each number from that array seperately
-
that's a decent idea, how hard is it to shuffle the integers in the array?
(i don't want to randomly generate a number for each cell because i want every number from 1 to 25 to occur once)
-
i was thinking i could have an array containing the numbers 1 to 25 and randomly selecting one of those numbers and loading the question, then setting that chosen number to 0. (and make it so that...
-
am making a multiple-choice question game and want the user to select either a 10 or 20 question game. i should be fine with that much of it, but what i need help with is randomly selecting a number...
-
that's better, thanks heaps guys!
-
i'm only getting a random selection between 1 and 2 with that code, not sure if i'm just using it the wrong way. will attach an example project (& form)...
-
i want to randomly choose either 1 or 2 or 3 (or even 'paper' | 'scissors' | 'rock'. or maybe 'p' | 's' | 'r')...
if there isn't a way to randomly select from 1 | 2 | 3 (or whatever), i guess i'll...
-
it's all good, i just did a more specific forum search and got what i needed... thanks anyway though!
-
can you use a progress bar in visual basic 6.0? if you can, how do you add one??
-
-
it's all good, i figured it out... just made a stupid mistake. but that's what you get when you're programming at 2:30am
thanks anyway though!
-
could someone please give some examples of storing and retrieving from 2-dimensional arrays in pascal? using for-to-do...
-
i've messed around with the P&D Wiz a few times now, and i just can't figure out how to make it do what i want it to. plus it tells me that the .reg file is invalid, and i have no idea why because i...
-
i really need to finish this keylogger asap now...
it needs to capture all characters (including space-bar, upper-case and lower-case. also including all symbols) plus the numerals and symbols...
-
i want to have the log saved to LOG.txt in the program's folder. and i want it to have the date and time that the log is saved at, at the top (with line breaks). then line breaks at the end to make a...
-
i suppose i'll use the P&D wizard if it's the way to go. but i don't know how to use it...
-
well actually, this is supposed to be an installer. but i want to make it with vb6 instead of using an installer program or whatever...
i'll try to explain again as clearly as possible...
i have...
-
does anyone else have a way of intercepting key-presses and having the put into a textbox within my (minimized) program?
i need all the character keys (including num-pad and space), escape,...
-
do u mean when running the program within vb6?
so do i have to compile and run the .exe to test?
where does this actually output the key presses?
does it give the characters or some kind...
-
ok, so will this still work if the program is minimized to the system tray and another program is currently active?
if you understand what i mean... like if the program was minimized to the system...
-
sorry about that, i started this 1 a while ago and started and new 1 today and just wanted to continue it all on...
is there a way of just deleting this thread? it no longer serves a purpose
-
is there a way for vb6 to receive keyboard signals and write them to a text box within the program? (while program is in system tray. and without interfering with keyboard operation)
|
Click Here to Expand Forum to Full Width
|