Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.32 seconds; generated 45 minute(s) ago.

  1. Re: Convert two int16 numbers to resolve the 32bit Float value represented by them. H

    Sorry I'm late to the game, I don't visit here very often any more, but I've often had to pack and unpack date of various types from packets and I usually use two functions to unpack values,...
  2. Re: When I double click on a control I get a blue screen

    Or I think you could also do "Rebuild Solution".
    I believe Rebuild does a Clean, followed by a build, so essentially does the two steps in one.
  3. Thread: Installation

    by passel
    Replies
    18
    Views
    1,720

    Re: Installation

    I wouldn't try to install the VB 2010 Express version.
    You may as well go for the current Visual Studio 2022 Community version, as it is free so if your hardware supports it, you should as well....
  4. Replies
    12
    Views
    1,232

    Re: Some issues with my C# Hello World program

    Another simple example I have is a project I wrote that had to simulate equipment that transmitted and received data in 16-bit, 32-bit, 48-bit and 64-bit types across a serial bus. It had to support...
  5. Re: Open, Print and Close File I/O commands for visual basic

    For a binary file, you just preset the size of the array to what you are going to read from the file, and then just use "Get" to fill the array.
    Something along these lines should work.


    Open...
  6. Replies
    7
    Views
    734

    Re: [RESOLVED] Textbox for REALLY long lines

    Yes, it uses a String as the container, so you can display a really long string, but since the textbox officially only supports 64K, as previously mentioned, some properties or methods of the control...
  7. Re: PicBox Scale method - Issues with Scrolling smoothly - Code Provided

    Mouse events have a higher priority than Timer events, so the timer events will be delayed by rapid mousemove events, which will cause drawing delays if you're drawing from the Timer event.

    To use...
  8. Re: Opinions Wanted: Truncate Arrays or Track the Last Index filled?

    I'm not sure I understand when you would want to truncate the array.
    You can truncate the array the same way you increase the array and preserve the data, i.e. use Redim Preserve with a smaller...
  9. Re: [RESOLVED] Need Suggestions on Smooth Scrolling Method

    The point of using that method is that the picturebox drawn into would be a lot larger than the control containing it.
    That way your dragging the picturebox would reveal more of the data that...
  10. Replies
    6
    Views
    836

    Re: how draw a Squares array?

    Your code in post #4 seems like it should work.
    It works for me, but 64x64 pixel squares are rather large.
    Your map seems like it must be fairly small. For example a 20x20 map wouldn't fit on a...
  11. Replies
    6
    Views
    836

    Re: how draw a Squares array?

    What is the value of MapResolution?
    What scalemode are you using?
    If your values of MapResolution and Spaces don't align with whole pixel values, then drawing coordinates have to round up or down...
  12. Replies
    6
    Views
    836

    Re: how draw a Squares array?

    Probably the easiest is to use a relative size for the square rather than an absolute size.

    A quick modification of your code for a quick test.
    The code will place the squares based on a 15x15...
  13. Re: why can't draw a line with different colors?

    The code doesn't make sense.
    You only calculate the angle once, outside the loop, so inside the loop I would think you would be processing the same ray angle for every time through the loop.
    That...
  14. Replies
    10
    Views
    1,340

    Re: Rotating a picture and saving it

    Perhaps choose the format you want to stream.
    I'm assuming that when you read the image from a file, then the rawformat encoder value of the image is set based on the file type, e.g. bmp, png, jpg,...
  15. Replies
    6
    Views
    1,084

    Re: rotational compass counter

    I guess the question is what the limit of "any increment" is?
    Surely something is feeding the angle/heading value that the control is displaying, and the update is quick enough to give some...
  16. Thread: New TV

    by passel
    Replies
    63
    Views
    4,554

    Re: New TV

    I'm not sure I understand the question. Of course the consumption is different, one is F and the other is G. The ratings for power consumption run from Best (A) to Worse (G), so F and G are both at...
  17. Replies
    18
    Views
    2,046

    Re: IF/ELSE/ELSEIF/ENDIF Indentation

    As jdc2000 said, you could just write a simple parser that increments or decrements the indention level.
    I did a quick test, and the code worked first shot, although it does add a blank line at the...
  18. Replies
    15
    Views
    5,508

    Re: Rounding Off Numbers to Even Numbers

    Using And is much more efficient than using Mod. Several times faster I believe.


    i = i + (i And 1)
  19. Replies
    18
    Views
    2,046

    Re: IF/ELSE/ELSEIF/ENDIF Indentation

    Put it inside
    tags. An easy way is to select the text and press the "#" button in the menu above the reply window. But I usually just type in the code tags manually before I start typing or...
  20. Replies
    16
    Views
    1,622

    Re: TXT read/write error

    Don't process the last line being output in the loop. Do the last line after the loop and suppress the automatic newline by using ";" at the end of the line being printed.



    Open...
  21. Replies
    27
    Views
    2,669

    Re: [RESOLVED] Do Loop Question

    I haven't tested it, but I know when the Do While, Do Until, etc. Loop was introduced, it was stated by Microsoft that Do While was preferred to While...Wend as it was implemented more efficiently,...
  22. Replies
    7
    Views
    1,926

    Re: KeyUp/KeyDown instant interaction

    Yes. Along that line this is my simple example of updating the Gui at a set frequency and checking for the Alt key (either Alt key in this case, but you could check for LMenu and RMenu if you wanted...
  23. Re: [RESOLVED] Breakpoints won't hit in debug mode

    Yes, you were running it in the IDE, not in Debug Mode.
    We made the mistake of taking you literally and assume you had the configuration set for debug, and we probably should have raised the...
  24. Replies
    6
    Views
    1,058

    VS 2019 Re: find mp3 file ratings

    I guess the question is whether the rating is part of the file, which doesn't seem likely, or is dynamically fetched from an online service.

    But I haven't worked with the newer formats of mp3, so...
  25. Re: Breakpoints won't hit in debug mode

    He is saying that if you want to debug reliably, you don't want it to optimize. Optimization can remove lines of code that are unnecessary, or redone in a way that eliminates lines, and then you...
  26. Replies
    27
    Views
    2,669

    Re: Do Loop Question

    Good point, which I didn't consider.
  27. Replies
    23
    Views
    2,162

    Re: [RESOLVED] VB 6.0 Mid$ function split.

    That example doesn't seem to agree with what you've said in a couple of the earlier posts.
    In those posts you say you want the values to be in reverse row order, but in your example you're showing...
  28. Replies
    27
    Views
    2,669

    Re: Do Loop Question

    It doesn't need a variable. True is the literal value that will satisfy staying in the loop forever, until some condition is met inside the loop and an "Exit Do" is executed to leave the loop at...
  29. Re: Random, repeatable numbers that do NOT depend on prior values, for the next resul

    Which is why the "Prompt To Save Changes" is the middle ground, and is what I choose also.
    That way you get the prompt to ask if you want to save before running and you can always select No if you...
  30. Re: Random, repeatable numbers that do NOT depend on prior values, for the next resul

    I realize this is off the main topic of the thread, but I did do some analysis of all the possible games and the number of steps necessary to solve them, and my suspicion that 20 clicks being a...
  31. Re: How to get/throw handler on a Property?

    I'm pretty sure I've heard Ron Weasley say it often..., so fairly certain it is common in Old England as well.

    p.s. Just did a search on "ron weasley wicked" and it seems it may have become a meme.
  32. Replies
    7
    Views
    1,926

    Re: KeyUp/KeyDown instant interaction

    But in a game you usually have a game loop that is constantly cycling and the game would likely be using the Windows API to check for key presses that have occurred in every cycle, so can easily see...
  33. Re: Random, repeatable numbers that do NOT depend on prior values, for the next resul

    I finally found the project on some external storage and copied it over to my current machine. It was written in VB3 so I had to copy it over to a Virtual Machine that could run VB3. Its not very...
  34. Re: Random, repeatable numbers that do NOT depend on prior values, for the next resul

    I couldn't find the code on my current machine. I may have to pull an old machine off a shelf and search, or search through old memory sticks that I have somewhere.

    If all else fails, it should be...
  35. Re: Random, repeatable numbers that do NOT depend on prior values, for the next resul

    I'm not sure that my code for "Lights Out" would help in your Random Function research, but I did write a solver and puzzle generator for it in the neighborhood of 17 to 20 years ago.

    As I think...
  36. Replies
    13
    Views
    1,641

    Re: Read MultiLine Data via Serial

    That is fine, but you said you were only receiving the first line.

    Perhaps you just meant that if you send three lines, or five lines, you would like to know when you've received all the lines so...
  37. Replies
    13
    Views
    1,641

    Re: Read MultiLine Data via Serial

    If you're sending your data as lines, then I think it would be easiest to read them as lines.
    What I've done when reading serial data that is transmitted as lines of text, is simply start a...
  38. Replies
    238
    Views
    23,381

    Re: Why is this front news anymore?

    I wouldn't call it a day to day occurrence.
    Shooting kids in an elementary school is rarer than that. The article itself says it was the worse school shooting in a year, so a bit more than a day,...
  39. Replies
    7
    Views
    1,457

    Re: SerialPort Change Configuration in runtime

    I don't believe that dbasnett's code or tutorial would cover having to have different configurations for Tx and Rx simultaneously, or quickly switching the port between a transmit configuration and a...
  40. Re: Problem sharpening semi-transparent image

    Looking at that code, I would expect the Alpha is being stripped off, and all the transparent pixels would end up being black.
    It appears you're converting the pixels to 24bpp which ignores the...
Results 1 to 40 of 488
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width