dcsimg

Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. VS 2010 Re: VB.NET Streaming Image Using Imag2Pipe Issue

    Perhaps the problem is using the Save method.
    I haven't messed with this, but it seems like a lot of effort with various unnecessary conversions, since it looks like you just want to write the...
  2. Replies
    8
    Views
    291

    Re: Unusual "Find and Replace" problem

    Sorry, sticking my nose in where it doesn't belong.:o
  3. Replies
    6
    Views
    263

    Re: Visual Basic for Inventor 2016

    That was my fault.
    Since I had changed to using String.IndexOf and knew it wasn't Array.IndexOf so wasn't an example of both methods that jmc mentioned, I was thinking I should point that out when...
  4. Replies
    8
    Views
    291

    Re: Unusual "Find and Replace" problem

    I don't know much about Excel and macros, but for this type of thing, if the Find and Replace was working for one or all items, but I wanted it to only replace particular items, I would probably just...
  5. Replies
    6
    Views
    263

    Re: Visual Basic for Inventor 2016

    So, the extension isn't always six letters, but if shorter than six letters, the letters apply in order to the decode arrays?

    example:
    123-CCBD

    You would expect :
    LengthVariant = 36...
  6. Replies
    11
    Views
    178

    Re: Weekday returns wrong result

    Yeah, I hit F1 and the help gives you that impression, which is why I think at best it is misleading, or more likely, just wrong.


    Return Values

    The Weekday function can return any of these...
  7. Replies
    9
    Views
    225

    VS 2019 Re: Label text alignment

    About the only thing that makes sense is that the label wasn't sized larger than the text it contained.
    By default, the label size will be sized to fit the text, so of course alignment will have no...
  8. Re: Game server+ Game Launcher on server or local host

    So, your gaming system is already working on a LAN, and now you're asking about how to expand it to work over the Internet?
  9. Replies
    11
    Views
    178

    Re: Weekday returns wrong result

    Also, when I run that code, it is returning 3.

    I can't make out your calendar in your image. On my machine, October 1st, 2019 was on Tuesday, which is 3, so it appears correct. Your calendar may...
  10. Replies
    11
    Views
    178

    Re: Weekday returns wrong result

    Did you verify your constants?



    ? vbMonday
    2

    ? vbSunday
    1
  11. Replies
    11
    Views
    178

    Re: -

    Did you happen to run it on Tuesday?
  12. Re: VB.NET 2010 QUESTION: Is there a library of VB6 method polyfills?

    What seems odd to me, is that I read the post from ChrisE and didn't even notice the spelling (and I'm not British by any stretch, although my older brother was born in Liverpool, so he technically...
  13. Re: VB.NET 2010 QUESTION: Is there a library of VB6 method polyfills?

    It sounds like you're looking for a community version of the type of support library that someone like www.vbmigration.com provides with their code migration tools.
    Their support library supports...
  14. Re: Reading writing from to the same txt file "rs232"

    Rather than write a string to a text file, I would just write the number to a binary file at the first offset, and the second application could just read the number in from that offset. You don't...
  15. Replies
    2
    Views
    138

    Re: Move image in a picturebox

    I don't understand what you're saying.

    Are the images in small pictureboxes, and you want to move the pictureboxes around, or are you painting images (i.e bitmaps) in a picturebox, and you want to...
  16. Replies
    8
    Views
    264

    Re: Disposable fields.

    Right, which is an example of what we're talking about.
    You set handH to a "New" Bitmap (see the word New right there in the line).

    At some point, you need a handH.Dispose to free the Bitmap...
  17. Replies
    8
    Views
    264

    Re: Disposable fields.

    I think it depends on where you're getting the warnings.
    As part of your drawing process each second, are you recreating new bitmaps in img1 and/or img2?
    If so, then you need to dispose of the...
  18. Re: Details on How to Use Named Pipe for Communicating with Chess Engine

    Worked fine for me. Who knows at what point you clear the Engine_Analysis global variable, and if you've waited long enough. Do you really need all the analysis, or just the bestmove and ponder line?...
  19. Replies
    7
    Views
    2,135

    VS 2015 Re: Multiple graphics images on one picture box

    As mentioned, it was my first C# program, so may not be the best code.
    The name of the project, DrawStars, is since I was new to C#, I was playing around with an example C# program that drew a star,...
  20. Replies
    8
    Views
    349

    Re: RAR file type support for attachment

    I guess, if I had to, I would just write a little utility program where I could pass the zip file to it, and it would split it into several zip files.
    Here's a hardcoded VB6 example, but making a...
  21. Replies
    9
    Views
    330

    VS 2019 Re: Sorting Odd and Even numbers

    As for Arrays, in this case with a limited number of entries, you could go either way, rediming and preserving, or just using arrays large enough to hold the worse case.
    Since you have control, and...
  22. VS 2012 Re: Reading hex data from serial port.

    Ok, sounds like the delegate process isn't working correctly, so you're trying to access the textboxes from serial receiving code, which is running on another thread, not the main Gui Thread. Since I...
  23. Re: Details on How to Use Named Pipe for Communicating with Chess Engine

    Well, I'm not going to figure out how to do everything you want to do, but as a minimum, I figured I would give dilettante's code a quick test.
    Turns out I had downloaded it already sometime in the...
  24. VS 2012 Re: Reading hex data from serial port.

    I'm not sure. My first thought would have been a cross-threading issues, but the fact is the code isn't correct to begin with, so it could just be that.

    Since you don't show the definition of "a"...
  25. Replies
    20
    Views
    756

    Re: Detect power outage

    I'm pretty sure he meant an old computer hanging around that isn't used for anything and you can connected to the same wall power the ups is on.
    If your server is on a network, and the old computer...
  26. VS 2012 Re: Reading hex data from serial port.

    That code is reading one byte at a time from a loop.
    If you want to copy the bytes into an array, then you would have to create an array to put them in, and you would have to know how big to make...
  27. VS 2012 Re: Reading hex data from serial port.

    Yes, that would be the place.
    I haven't done much Serial in .Net as I said, but I would think it would look something like this.


    Private Sub SerialPort1_DataReceived(sender As Object, e As...
  28. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    Well, I guess its six, one half dozen, or the other.
    Normally, you never edit designer.vb, so you having to edit the class to add back something that was put there by the migration tool in VB2008 I...
  29. Re: [RESOLVED] VB.NET 2010 QUESTION: Control calls incorrectly named event

    Yes, with the increased flexibility, and less coupled logic in the class, it is a paradigm shift from what you're used to with VB6 controls.
    With VB6, the event handlers were part of the control, so...
  30. Re: VB.NET 2010 QUESTION: Control calls incorrectly named event

    I'm pretty sure I've had the same thing happened, so I just did a test.
    I guess it is a pain for that particular scenario.

    You have a button in a frame (panel actually), you double click on it to...
  31. Re: VB.NET 2010 QUESTION: Control calls incorrectly named event

    Since the handle clause ties the event to the sub, the sub can be called anything you want. If you rename a control, the handler clause will update to the new name, but it won't automatically rename...
  32. Re: Passing 2 dimensional array as one dimensional to a function/sub?

    The real take away, I think, is that the array is probably defined backwards. If you want to access the 40 elements efficiently, regardless of how you pass it, it should have been declared (40, 5),...
  33. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    I was referring to the "touch" you mentioned you did in the designer.vb file. You modified the class code to expose the property.
    Sure, the migration tool did the bulk of the work, but the migration...
  34. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    No, it doesn't support control arrays. It supports extending any class in any way you see fit, so you've extended the class to support the index property in the same way someone else extended the...
  35. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    Depending on how you create the arrays, either dynamically, or in the IDE, there are a couple of ways to fairly easily replicate the functionality without too much work. It may also depend on how you...
  36. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    A little research...


    So, it is a kludge, which I wouldn't count on for long. There has to be supporting code as part of the Migration Partner generated code that extracts those characters and...
  37. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    Ok, if it was a migration thing, then I assume there was a class added to simulate control arrays in the port (which can be done by anyone), but it isn't a part of .Net. So, you are seeing...
  38. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    I look forward to the image. I took a walk to find an old computer with VB.2008 express on it, and I can't figure what you're referring to. I don't see a property "controlname" or "Index".
    There is...
  39. Re: VB.NET 2010 QUESTION: Why does the IDE hide the INDEX property?

    The index property in VB6 was for control Arrays.
    .Net doesn't support control arrays, so the index you see there isn't the same thing. There are plenty of properties in classes that are not...
  40. Re: This forum requires that you wait 30 seconds between posts

    I assumed "that duplication" was left on purpose, for illustration.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width