Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    23
    Views
    577

    Re: [RESOLVED] Weird Timer Behavior Issue

    I think it may also come down to the fact that you have a validate event that has to occur before the value is changed, so to support that, the change can't officially take place, i.e. be a permanent...
  2. Re: [RESOLVED] Hello, I am looking for help to broadcast a project

    Sorry to come in like this.
    I knew the emergency room and the exams made beautiful pictures of a cancer of a hoop (I think I have a small chance to get out, at least).
    In a few days. I wished ......
  3. Replies
    6
    Views
    266

    VS 2022 Re: Creating the subroutine

    You wrote the Sub to accept the return value, so you have to call the Sub with that return value passed in.



    CalcRatio(Destination(d).Activity(a).Total,...
  4. Re: How to make a random image generator that creates 2 images VBA

    I don't understand the requirements for your version of the game.
    Do you want to display a random pair from your list of 57 images?
    Then after user interaction, pick another random pair from your...
  5. Re: How to make a random image generator that creates 2 images VBA

    You shouldn't have Randomize in the loop.
    Randomize should be only used once at the start of the program and never called again.

    Since Randomize will seed the rnd function using the current clock...
  6. Replies
    16
    Views
    557

    Re: Breaking a loop by a button

    So you're saying that that will work for you.

    Basically, if you have the loop in the timer, then that makes the loop atomic, i.e. the loop will run in the timer event, and other events will be...
  7. Replies
    12
    Views
    407

    VS 2010 Re: my code does nothing PART 2

    Your screenshot shows you are on the "For Each" Line.
    There is probably nothing worth looking at there, the FD value hasn't been set yet.
    If you take a step and are on the If Condition line, you...
  8. Replies
    12
    Views
    407

    VS 2010 Re: my code does nothing PART 2

    So, when you stepped through the code, how did it not work? Which line(s) had values that you didn't expect? If you're not matching the tag, then do you have any tags that match. You could add an...
  9. Replies
    12
    Views
    407

    VS 2010 Re: my code does nothing PART 2

    Did you put a breakpoint on the line "Dim Kafa As PictureBox = DirectCast(c, PictureBox)", and then step through the code to watch what it does and what values you are dealing with.

    If you get...
  10. Replies
    16
    Views
    557

    Re: Breaking a loop by a button

    You should probably just make the thing event driven and use a state machine to keep track of what you're doing.
    I would set up a timer with an Interval of 1, so it will tick as fast as possible,...
  11. Re: *** Pattern Program

    The previous question did ask how to create three patterns.
    This is only asking for the one. A slight difference, but.... I thought of reporting it to a moderator as a duplicate, but it is a...
  12. Replies
    16
    Views
    557

    Re: Breaking a loop by a button

    Even processing, such as a button click or timer ticks, can't be processed while your code is running. They occur after you leave a sub. If you need to process events while looping in your code, you...
  13. Replies
    19
    Views
    504

    Re: Sierpinski's Triangle

    Well, then it will make it harder to choose one of the three points. You will have to convert the random number into selecting one of your set of variables, so you will either need to have a series...
  14. Replies
    19
    Views
    504

    Re: Sierpinski's Triangle

    https://www.freetutes.com/learn-vb6/lesson6.html
    p.s. There could be better or simpler tutorials, this is just the first one I came across when I searched for "vb6 array tutorial". You could do a...
  15. Replies
    19
    Views
    504

    Re: Sierpinski's Triangle

    Sounds like an assignment, so you'll need to do the work.
    But if I was doing this, I would make use of arrays, since you have to pick things randomly and use a specific color that is associated with...
  16. Replies
    17
    Views
    581

    VS 2010 Re: how to make a isometric tycoon

    Pretty much the bottom line is you would draw the image where you want it to create such games.

    I would use a single picturebox as your drawing surface, and then use DrawImage for every object...
  17. Replies
    11
    Views
    636

    Re: DOS in DOS with VBDOS 1.0

    Windows 3.1 wasn't preemptive multi-tasking. It was a DOS program that you ran that provided a graphical environment and allowed cooperative multi-tasking between applications written to voluntarily...
  18. Re: [RESOLVED] Issue using Get to load in a large (142MB) file

    I did fix that in my test code, but had already posted this and forgot to update the post.
    But even if you fix the variable misspelling, it will then get the memory error when it executes.

    If you...
  19. VS 2010 Re: i cant do in vs2010 but i can do in vb6 (illegal pixel positions)

    I wouldn't say that it gave nothing. It was just a paradigm of the way to control the scale, i.e. coordinates for drawing. I used it all the time for drawing graphs and maps, e.g. If I had a list of...
  20. VS 2019 Re: Help with Importing CSV Files With and Without Headers

    I'm not a database person, so don't know the nifty way of slicing or dicing data, but based on the code you have, I would think you would just do something similar to what you have in the...
  21. Re: [RESOLVED] Issue using Get to load in a large (142MB) file

    I would use a Sub instead of a function.
    I don't think you have enough stack space to hold the string to be returned by the function.
    If you use a Sub, you just pass the string to the sub and read...
  22. VS 2019 Re: Help with Importing CSV Files With and Without Headers

    Perhaps follow the Excel paradigm, where along with which columns to import and which to skip they can indicate whether the file has a header row at the top or not.
  23. Replies
    5
    Views
    329

    VS 2010 Re: i need index for vb.net 2010

    In the past you were saying you need an index for controls, which was related to porting the concept of Control arrays to vb.net. But since VB6 Forms don't have an Index property, you can't be trying...
  24. Re: [RESOLVED] Hello, I am looking for help to broadcast a project

    I've only had a very poor education in French in High School, but looking at your Google Translation, I made my way through part of the list and think the following may be better interpretations of...
  25. VS 2010 Re: i cant do in vs2010 but i can do in vb6 (illegal pixel positions)

    VB.Net only uses pixel location for control placement and pixels for the size as well, so there is no scalemode for the container any longer.
  26. Replies
    20
    Views
    627

    VS 2010 Re: my code not works

    He showed the content of the file in post #9.
    It seems he didn't understand jmc's post #11, and is still using an index parameter so is now reading the first character of each line, rather than the...
  27. Replies
    19
    Views
    687

    Re: Found a copy of VB 6.0

    Basically Windows 1 and 2 were fairly unusable so not widely adopted.
    It was the Apple approved version of a GUI for Microsoft's DOS Operating System.

    If you don't remember Windows 1, then...
  28. Re: Compiling a .vbp program to an .exe application

    Probably wanted to write something in the registry, but couldn't. Once run as administrator, whatever needed to be in the registry was written, and when you rerun whatever needed to be in the...
  29. Replies
    20
    Views
    627

    VS 2010 Re: my code not works

    When you step through the code with the debugger, at what point does it not do what you expect it to do?
    For instance


    stringReader = fileReader.ReadLine(0)
    ...
  30. Replies
    9
    Views
    689

    VS 2019 Re: drawborder and Style

    Perhaps you missed the current code he is using which is drawing a flat border in red, but he would want it to be 3d.


    If showBorder Then DrawBorder(e.Graphics, TextBox1, Color.Red, 2)
  31. Re: I need help with turning an If statement to a select case statement

    As I mentioned it was around 16 million values before the sequence repeats, i.e. 2^24 values to be precise.
    That is because rnd returns a Single between the value of 0 to 1.0, not including 1.0, and...
  32. Re: Checking if an array of imageboxes contain picture

    I'm not sure how the Othello game can work if you don't know how to count the pieces.

    When someone places a piece on the board you have to examine the chain of pieces in several directions to look...
  33. Replies
    6
    Views
    598

    Re: Recompile Multiple Solutions

    I don't know about choosing to build specifically Debug or Release from a script as the only time I used a script to build I always built with the current settings, which was for Debug, which is...
  34. Replies
    15
    Views
    955

    Re: Flickerings on visible change

    I've modified your project as a test.
    Basically, kept two of the Image controls, one to hold the "Off" Image, and the other to hold the "On" image.
    The two controls kept were basculeur_sh_off to...
  35. Re: I need help with turning an If statement to a select case statement

    I actually thought the example that dilettante gave back in post #5 addressed the finding of 3 match or 2 match fairly straight forward.
    And then if you had to chose different rewards depending on...
  36. Replies
    15
    Views
    955

    Re: Flickerings on visible change

    Possible, but usually those thin clients boxes are used to interface to a Central Server running multiple virtual machines or these days interfacing to cloud based OS's.
  37. Replies
    15
    Views
    955

    Re: Flickerings on visible change

    Good points. Knowing how the code is structured and what it is doing and how implemented is really needed to understand what may be causing slow visual updates, i.e. why a separate control with its...
  38. Replies
    15
    Views
    955

    Re: Flickerings on visible change

    I think so...

    From the description, I assumed he has two image controls with two different GIFs loaded, and the image control with the green indicator is located "on top" of the control with the...
  39. Replies
    15
    Views
    955

    Re: Flickerings on visible change

    You could try just hiding your two imageboxes (set .Visible to False) and instead draw the image you want into a picturebox (named Picture1 in the example code) that has AutoRedraw set to True.
    ...
  40. Re: Checking if an array of imageboxes contain picture

    Worked fine for me. I added an array of three image controls and put the following tests in a button.


    Private Sub Command1_Click()
    Dim i As Integer

    For i = 1 To 2
    If Image1(1).Tag...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width