Search:

Type: Posts; User: AC_AC_AC187

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Replies
    35
    Views
    169,442

    Re: VB6 - Using the KeyDown Event

    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
  2. Replies
    23
    Views
    1,996

    Re: [RESOLVED] Shuffle an Array of Cards

    thanks so much guys, greatly appreciate it!
  3. Re: number of elements in a fixed-length array?

    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......
  4. [RESOLVED] number of elements in a fixed-length 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

    ...
  5. Replies
    23
    Views
    1,996

    Re: Shuffle an Array of Cards

    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'
    ...
  6. Replies
    23
    Views
    1,996

    Re: Shuffle an Array of Cards

    we got it working!
    see attached project file...
  7. Replies
    23
    Views
    1,996

    Re: Shuffle an Array of Cards

    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...
  8. Replies
    23
    Views
    1,996

    Re: Shuffle an Array of Cards

    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...
  9. Replies
    23
    Views
    1,996

    [RESOLVED] Shuffle an Array of Cards

    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...
  10. Re: randomly selecting number then excluding it

    yes please, i really need to get this working before tomorrow if possible...
  11. Re: randomly selecting number then excluding it

    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...
  12. Re: randomly selecting number then excluding it

    started a new project again, just copying the code from your last post. this time getting a variable not set run-time error

    struggling...
  13. Re: randomly selecting number then excluding it

    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.
  14. Replies
    17
    Views
    898

    Re: Internet Connection Speed

    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...
  15. Re: randomly selecting number then excluding it

    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 =...
  16. Re: randomly selecting number then excluding it

    it's a project for school and that's the way it's gotta be done...
  17. and then...??

    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...
  18. Re: VB6: Sorting algorithms (sort array, sorting arrays)

    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
  19. http://www.vbforums.com/showthread.php?t=480591

    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
  20. Re: randomly selecting number then excluding it

    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)
  21. Re: randomly selecting number then excluding it

    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...
  22. [RESOLVED] randomly selecting number then excluding it

    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...
  23. Replies
    7
    Views
    1,342

    Re: VB6 Random select 1-3

    that's better, thanks heaps guys!
  24. Replies
    7
    Views
    1,342

    Re: VB6 Random select 1-3

    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)...
  25. Replies
    7
    Views
    1,342

    [RESOLVED] VB6 Random select 1-3

    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...
  26. Replies
    2
    Views
    573

    Re: VB6 ProgressBar

    it's all good, i just did a more specific forum search and got what i needed... thanks anyway though!
  27. Replies
    2
    Views
    573

    [RESOLVED] VB6 ProgressBar

    can you use a progress bar in visual basic 6.0? if you can, how do you add one??
  28. Replies
    21
    Views
    1,507

    Re: copy files then merge .reg file

    ~bump~
  29. Replies
    2
    Views
    1,150

    Re: Pascal - 2D-Arrays

    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!
  30. Replies
    2
    Views
    1,150

    [RESOLVED] Pascal - 2D-Arrays

    could someone please give some examples of storing and retrieving from 2-dimensional arrays in pascal? using for-to-do...
  31. Replies
    21
    Views
    1,507

    Re: copy files then merge .reg file

    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...
  32. Re: receiving + interpreting keyboard signals - while program is in system tray

    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...
  33. this was originally a bump, but now it's actually supposed to come after the followin

    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...
  34. Replies
    21
    Views
    1,507

    Re: copy files then merge .reg file

    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...
  35. Replies
    21
    Views
    1,507

    Re: copy files then merge .reg file

    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...
  36. Re: receiving + interpreting keyboard signals - while program is in system tray

    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,...
  37. Re: receiving + interpreting keyboard signals - while program is in system tray

    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...
  38. Re: receiving + interpreting keyboard signals - while program is in system tray

    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...
  39. Replies
    5
    Views
    530

    Re: installer program

    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
  40. receiving + interpreting keyboard signals - while program is in system tray

    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)
Results 1 to 40 of 93
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width