Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    13
    Views
    480

    Re: serial port read

    Based on the "string" you're seeing, you are not sending characters, but byte values, so you should be reading into a byte or byte array, not into a string.
    For instance, if you send a byte with a...
  2. Thread: Overwrite File

    by passel
    Replies
    15
    Views
    333

    Re: Overwrite File

    Assuming the purpose it to obliterate the data so that the information in the file can't be recovered, deleting the old one and writing a new file doesn't guarantee the new data will overwrite the...
  3. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    I think I would just use a Concurrent Queue of String.
    The DataReceived event would do the readline, and enqueue the string received on the queue (the concurrent queue is designed to be accessible...
  4. Replies
    5
    Views
    247

    VS 2010 Re: e.keychar = chr(9) not working

    It triggers moving the focus from one control to the next control in the tab order.
  5. Re: [RESOLVED] "Reset" a With/End With structure?

    I think we agree about using "ws" instead of ActiveSheet as ws is much shorter to type, and all the references in the code would thus be shorter, i.e. ws.cell, etc.
    Since the With clause is unique...
  6. Re: [RESOLVED] "Reset" a With/End With structure?

    Please, don't tell us.:rolleyes:
  7. Replies
    18
    Views
    485

    Re: runtime error overflow

    I wondered it that were the case. Didn't test it. So, some integer type overflow likely somewhere in the chain. Carry on. :)
  8. Replies
    18
    Views
    485

    Re: runtime error overflow

    I suspect that v1 is 0 at some point, and you don't check to make sure v1 is not 0 before doing your (v2 / v1)
  9. Replies
    13
    Views
    480

    Re: serial port read

    Are you saying the keyboard you're typing on is connected to a comm port somehow, i.e. some old fashion serial keyboard?

    Otherwise, I don't see how typing on the keyboard has anything to do with...
  10. Re: Why is my form locking up my computer when it loses focus?

    I guess I would consider at least limiting the number of controls.
    Perhaps create four panels, each with the same set of controls.
    You position the four panels vertically inside your scrolling...
  11. Re: Strange Windows update that included BIOS recovery

    Last checked, doesn't mean last updated.
    It could have checked at 9:52 to see if there were any updates needed and there were none.
  12. Replies
    16
    Views
    958

    Re: [VB6] GDI Path clipping

    You are correct. I almost felt like commenting sometime earlier in the thread, given how far advanced you are in so many areas that I'm not, and now these fairly basic examples of various graphical...
  13. Replies
    5
    Views
    286

    Re: look for the carriage return character

    Since the ReadExisting may not be a complete string, i.e. you're reading what you've got so far, which may be an arbitrary point in the stream of characters coming in the serial port, you have to...
  14. VS 2013 Re: Vb net permutation list only between odds...

    Why is that a problem?
    If you want permutations based on position, then the contents shouldn't matter.
    If you get the permutations for the odd positions and the even positions, then combine the...
  15. VS 2013 Re: Vb net permutation list only between odds...

    Off the top of my head, but not trying anything, I would think you would combine the evens into a list, and do the permutations, and the odds in a list and do the permutations.
    Then, I would think...
  16. Replies
    5
    Views
    286

    Re: look for the carriage return character

    If the data ends with a Cr, rather than using SerialPort1.ReadExisting() I would use SerialPort1.ReadLine().
    That way you only process a whole line of data, you don't have to reassemble from partial...
  17. Re: Putting multiple lines of text in a Label's caption

    I guess easier may be using a textbox. Set it to Multi-line, set its background color to ButtonFace, which may match your Form's background color and turn off the border. You may also want to set...
  18. Thread: VB6 Bubble Sort

    by passel
    Replies
    17
    Views
    708

    Re: VB6 Bubble Sort

    So, are you trying to get the highest price from each day, for 20 days, and then average the highest 10 of those?

    Or are you trying to find the highest 10 prices in a 20 day period, regardless of...
  19. Replies
    20
    Views
    678

    Re: Weird Screen Redraw Issue

    Could have been a resource issue.
    If you have programs running that are leaking resources, then windows pool of resources can get low so programs that need resources can get bogged down during the...
  20. Thread: VB6 Bubble Sort

    by passel
    Replies
    17
    Views
    708

    Re: VB6 Bubble Sort

    So, when you step through the code in the debugger and examine the values and see what the code does at each step, is it what you expect it to do?
    Can you see where it doesn't do what you expect and...
  21. Re: Creating Control Array - Handles Clause Requires a WithEvents Error

    Depends on what you need to know. The sender is the object that generated the event.
    You cast that object to the correct type. There are several ways to do that, below is one.
    If you just want to...
  22. Replies
    17
    Views
    581

    Re: How to get hDC Image & Shape

    I wouldn't say that no one knows about it. I think dilettante explained its purpose pretty well in post #7.

    All the "real" controls in Windows are "windows". A button is a window, a picturebox is...
  23. Re: How good is my source coding or what, then???

    Note:


    Both Shockwave Player and Flash are risky business these days, and most users should be avoiding content requiring them.
  24. Re: Class library project not the same as windows form project for string functions

    No (at least not yet).
    https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/september/net-standard-demystifying-net-core-and-net-standard

    Net Framework - the original stack, for building...
  25. VS 2019 Re: Trouble with assigning the result of a function to a property

    Vertex is a reference to an object in PTriangle.Vertices.
    If you change Vertex to point to your local instance "unused", that will have no effect on the object in PTriangle.Vertices.
    You want to...
  26. Replies
    14
    Views
    635

    Re: windows 10 is blocking this site

    Well, the site recently changed to https: so perhaps the Win10 machine has some old cached pages that it is trying to access.
    Perhaps try creating a new user on the Win10 machine, and accessing the...
  27. Re: Best Way Trap (Examine) Mouse Values because Volume

    I guess in the MouseMove event, add a static counter, and don't process the x,y until you counted up, or counted down (your choice) some number of times.

    If I want to slow down a fast event into a...
  28. Replies
    5
    Views
    265

    VS 2012 Re: Run cmd minimized

    Somehow, intuitively, I wouldn't expect that would run cmd minimized, although I didn't test it.
  29. Replies
    11
    Views
    525

    VS 2013 Re: Serial data outputs nonsense

    I agree with Catch22. Perhaps with Python, and the library used, it caps the speed at a maximum value, so even though you specify 2000000 perhaps it caps it at 115200, which happened to match the...
  30. Thread: Internet speed

    by passel
    Replies
    14
    Views
    1,294

    Re: Internet speed

    The cost of moving to Spain will probably obliterate any savings for the majority of us.
  31. Replies
    8
    Views
    1,350

    Re: why Polygon() don't use the brush?

    If you think you really want to get involved, the last "full" code post was in post #124 of this thread. There was an update and question in post #125.
    Unfortunately, work is intruding on my hobby...
  32. VS 2017 Re: Trying to understand unknown operations in C# to convert to VB

    As I mentioned it makes sure only the four bits that are valid are kept, and all the other bits that are not valid will be 0.

    In this case, it doesn't matter since you set the number to a value of...
  33. VS 2017 Re: Trying to understand unknown operations in C# to convert to VB

    private const string Hex = "0123456789abcdef";
    /* What the code is doing
    The string name Hex gives you the value of the hexadcimal digit by the index of the character in the string
    i.e. 0...
  34. Re: Auto combined keystrokes command to change keyboard layout from one to another

    Did you not read the comments in Post #8?
    Are you unfamiliar with the term "Third Party"?
    He is writing the software so is the First Party, and he is writing if for someone, who would be the second...
  35. VS 2019 Re: How to pause a loop until a variable gets set, or an event gets raised?

    Yeah, that's how I remember the time of a lot of things as well, because of my moving.
    I don't think it bothered my daughter too much, but as a result of my moving, she also has a few of those...
  36. Thread: Post Race!

    by passel
    Replies
    64,520
    Views
    5,155,656

    Re: Post Race!

    Just got my utility bill today.
    Noticed the Electricity was significantly higher than this period last year.

    I guess all the working from home adds up, with the extra lighting through the day,...
  37. VS 2019 Re: How to pause a loop until a variable gets set, or an event gets raised?

    I guess you must of had a pre-pre-release.

    I remember buying VB5 the second week after it was released in 1997. I was using VB3 at that time, hadn't updated to VB4 because heard it was slower,...
  38. Replies
    7
    Views
    1,019

    Re: Map location on rotated image

    I'm not sure, but I would try a few points along the vertical and see if you can see a pattern, e.g. is the value off by a constant number, or does in increase or decrease in a direction opposite...
  39. Replies
    8
    Views
    342

    Re: Trouble logging in

    Once upon a time....:)
  40. Replies
    8
    Views
    342

    Re: Trouble logging in

    No, he's speaking from the perspective of "one who hast been banned".:eek:
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width