Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.64 seconds.

  1. Re: Picture Box or Image for a Flappy Bird Game

    I assume you mean you're using an Image control which is giving you glitches.
    And I'm assuming you're asking whether you should be using Image controls or Pictureboxes for your Flappy Bird and other...
  2. Replies
    13
    Views
    674

    Re: Randomize Questions and Answers

    Is it much easier?

    You write the text in a resource.
    You write the text in the Form.

    The text from the resource is included in the executable.
    The strings from the form are included in the...
  3. Replies
    6
    Views
    346

    Re: [RESOLVED] Fixed Length of a string

    I'm not sure why you wouldn't just use a fixed length string.
    A fixed length string would always be padded with spaces. No need to concatenate or preset the string with spaces.


    Private str4 As...
  4. Replies
    15
    Views
    360

    Re: Happy New Yeeeear!

    Seems odd to me. You posted that at around 5:30 Canadian Atlantic time I think, which would be 6.5 hours to go if you were in that region. Newfoundland would be 6 hours at that point. Doesn't seem...
  5. Replies
    13
    Views
    463

    Re: VB6 Randomly Pastes in Reverse Order

    You were copying and pasting to the same form?
    i.e. you created a column of three. Did you copy that column and paste another column beside it?

    For my test for instance I add a button, then copy...
  6. Replies
    13
    Views
    463

    Re: VB6 Randomly Pastes in Reverse Order

    I think that is because you copied the controls to a new form.
    As I said in my post, the copying of controls and adding them in a new project that hasn't been run works as you would expect it to...
  7. Re: A program that launches console applications and captures their output.

    I think that is a DOS/cmd.exe restriction.
    Linux and Unix use pipes that create a stream in memory and feeds the output of one program to the other directly.
    DOS and the cmd.exe version implement...
  8. Replies
    13
    Views
    463

    Re: VB6 Randomly Pastes in Reverse Order

    Copy and Pasting twice doesn't work. Likewise, cutting the backward row and re-pasting doesn't -re-reverse the order of the controls.

    It seems like it is just a bug of some sort having to do with...
  9. Re: save number id list1 file random access file

    Just a quick look.
    Your UDT is 24 bytes in length, i.e. a Long is 4 bytes + 2 strings that are 10 bytes each.
    But you open the Random access file with a length of 22, so the UDT won't fit.
    Perhaps...
  10. Replies
    13
    Views
    674

    Re: Randomize Questions and Answers

    As another, alternative example from scratch, I used List(of T). You choose a random item from the list and then remove the item from the list so you won't choose it again.
    This paradigm is use...
  11. Replies
    15
    Views
    574

    Re: (VB6) - Zoom up image and reverse

    What does your edit look like.

    I posted pseudo code so it can't be used as is, you have to translate the pseudo code to real code.
    I just copied your code into a project, and added the logic I...
  12. Replies
    15
    Views
    574

    Re: (VB6) - Zoom up image and reverse

    You're not showing all the code. You have an End Sub in the middle.

    If you want it to cycle, then the code that checks for the end of a cycle (in the timer event code) needs to setup for the next...
  13. Replies
    3
    Views
    241

    Re: How to Go To a Conditional Formatted Cell

    Elroy, I'm not working with an Excel Object from a program currently. I agree it may be more flexible, but I'm not sure if it would take more of a learning curve to get setup compared to just pasting...
  14. Replies
    3
    Views
    241

    How to Go To a Conditional Formatted Cell

    I'm not much of an Excel user, and even less of a database person, but lately I've had the need to capture large amounts of data interchange between software modules and between hardware components. ...
  15. Re: Can I load document as byte array and save? (Encrypted and decrypted)

    I'm not sure what part you need help with.
    Given the Thread Title, reading a file into a byte array and writing the byte array to a file is quite simple.


    Public Class Form1

    Private Sub...
  16. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    Since you are not using an Angle, then simply offset the Left based on the amount being squeezed and perhaps the mirroring.
    It might be easier with the SetWorldTransform you're using, but since you...
  17. Thread: TwinBasic

    by passel
    Replies
    861
    Views
    280,545

    Re: TwinBasic

    Perhaps that is true, but I don't know. I can remember way back when we didn't have computers at home, and someone in a class looking at "a = a + 1" say that didn't make any sense at all, a could...
  18. Replies
    57
    Views
    1,911

    Re: Learning Visual Basic Net

    Well, if shortly after that you were working with a 386 then it could have been an even later Apple II, i.e. I think the IIe came out in 1981 or so. I'm pretty sure everything after the II+ was...
  19. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    SetWorldTransform does a 2D rotation in the XY plane, it doesn't do 3D rotations.

    What you are showing doesn't look like a Rotation but, to me, looks rather like a skew or scaling of the X axis,...
  20. Replies
    57
    Views
    1,911

    Re: Learning Visual Basic Net

    Yes, it was most likely BASIC, I assume you wouldn't have had the language card and be working in FORTRAN or PASCAL.
    The BASIC was built into the ROM.

    Which BASIC, depended on which model.
    The...
  21. Replies
    6
    Views
    279

    Re: Better Way to Convert Time

    Is the media player hosted in the Webbrowser?
    I've just hosted the Microsoft MediaPlayer on the form itself and got the present position as a string like this.


    CurrentPosLabel.Text =...
  22. Replies
    6
    Views
    279

    Re: Better Way to Convert Time

    That doesn't look like it accesses the Mediaplayer to get CurrentTime, i.e. current position as the OP does.
  23. Replies
    57
    Views
    1,911

    Re: Learning Visual Basic Net

    Your post seems to be a bit of a non-sequitur.
    We're not talking about a complete newbie here.
  24. Replies
    6
    Views
    319

    Re: show map in ricthexbox or in other element

    Do you already have maps, or will you need to use one of the Map providers?
    For some you will need to establish an account.

    I haven't tried any of them, but perhaps look into using a third party...
  25. Re: Bogus "Out of Memory" message when sitting on Ctrl+Y in the IDE

    I've never used Ctrl-Y in my life (other than to kick off an interrupt handler on the old Apple II).

    In the IDE, I've always just held the shift key down and used up arrow or down arrow to select...
  26. Re: [RESOLVED] Possible patters of a 4 digit number

    Does 3 even need to appear in your pattern list?
    It seems like your pattern list should be a matter of the number of places, not the number of digits, so you aren't making a pattern out of three...
  27. Re: Read a text file from a specific line at to the and

    If you have a really large file, say more than 100,000 lines, and it is something like a log file that you append new data to, but don't modify the old lines, then I would create an index file to...
  28. Thread: Post Race!

    by passel
    Replies
    65,988
    Views
    10,477,966

    Re: Post Race!

    The first time I saw signs for Moosic, PA I couldn't help but think there must be some association with particularly melodic bovines.
    And it must be in a county where people just didn't have a lot...
  29. VS 2015 Re: Why does the Arduino delay receiving data from Visual Basic.NET?

    What does the "Serial.read()" do?
    It seems like from the code, perhaps it reads one byte at a time, otherwise it would seem like just getting 'A' by itself might only happen occasionally because you...
  30. Replies
    19
    Views
    2,380

    Re: Picture1.Picture = Picture1.Image problem

    I'm not sure what "exactly the same problem" means.

    The thread pretty much describes the way things work.

    A possible work around was described in post #3, and accepted for the original poster's...
  31. Thread: Excel timer

    by passel
    Replies
    7
    Views
    617

    Re: Excel timer

    Yes that seems odd. Normally for a countdown timer that would be "00:00:01".
    The code you have I would possibly expect might run until midnight, at which time the clock should roll over to...
  32. Replies
    8
    Views
    623

    VS 2010 Re: syntax needed

    He is dealing with 2 dimensional arrays, presumably rows(,) would be 9 rows of 9 buttons, and the same for cols and boxes.

    I didn't do all 81 buttons. I did a grid of 3x3 buttons so did three...
  33. Re: Type Text Box In Form1 and Copied It to Form 2, Then Next Run Only Form 2 is App

    Since the startup form isn't shown until after the Form_Load event is exited, I don't know why you couldn't just look for the existence of the save file, and if it exists, read it in and populate the...
  34. Replies
    9
    Views
    556

    Re: Project Gets Lost Somewhere

    I assume you do a Rebuild rather than a Build when you move the project from one computer to another.
  35. Re: MY UDP Checksum method. How can I make it better.

    I don't think those two code segments are equal.
    In the first case you loop through packet.Length - 1 if the packet length is even, or you loop through packet.Length - 2 if the length is odd.

    In...
  36. Replies
    2
    Views
    430

    VS 2010 Re: iterate thru variables by name

    You could, I'm not sure why you would want to.
    A quick example test. I added five buttons to a form and added them to two arrays in different order.
    In the sub I then added the two arrays to an...
  37. Replies
    15
    Views
    599

    VS 2010 Re: Bad Record Num Error

    I haven't used the old Random Record Access method with .Net, but the problem is essentially that a structure is not really a fully compatible replacement for the VB6 User Defined Type.

    The...
  38. Re: How to read a file byte by byte (i.e. octet by octet) ...

    You are right. I was treating the bits of the byte as being in bigendian order.
    Niya had reversed the bits in his implementation, and I didn't think it was necessary.
    So, I change the code to...
  39. Re: How to read a file byte by byte (i.e. octet by octet) ...

    {edit}
    Per the response below (post #4), the code below was processing the bits in each byte in msb to mlb (most significant bit to least significant bit) order.
    It has now been corrected to be lsb...
  40. Replies
    4
    Views
    514

    VS 2019 Re: Optimizing received serial data

    I'm not sure just what you're doing, but I would think that after you sync up with the data, then you should be processing 100% of your input.

    The DataReceived Event handler shouldn't have a loop...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width