Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.97 seconds.

  1. Replies
    1
    Views
    92

    Re: Maximum y Achse Chart WPF als Variable

    English Speaking forum. Please translate your posts to English.

    Translation:
    Hello, everyone,

    In the coding I have defined a variable as Public, to which I assign a value - myMax.
    In the WPF...
  2. Re: What are the Major & Minor values of Windows 11

    Its not Windows 11 yet, it is a candidate for Windows 11, i.e. Beta version. Once it is fully baked, it will probably be 11.
    On the other hand, Microsoft did say they were staying with Windows 10...
  3. Re: Cairo based Image Rotation, it's all a M-e-S-s. [L-Plate Learner Edition]

    Its an old question from xiaoyao and has been answered multiple times.
    Unfortunately he apparently doesn't understand any of the answers.

    Essentially, he wants the smallest square that will...
  4. Replies
    12
    Views
    285

    Re: Moving PictureBox with Timer

    Ok, I didn't look at your code, just jmc's.

    In your code, you're using two timers.
    You use the second timer to move the picturebox up, but which timer do you stop when you've reached the top?
  5. Replies
    12
    Views
    285

    Re: Moving PictureBox with Timer

    So, fix it.


    If PictureBox1.Top <= 0 Then

    Save the original position and check for that instead of 0 in the above line.
    Or calculate the center position you mentioned and use that instead of...
  6. Replies
    22
    Views
    314

    VS 2019 Re: ARRAY summing issue

    Exactly. Is is really a surprise that with fuel costing $12 a gallon in Norway that Electric cars made up over 70 percent of the new vehicles sold in Norway this year.
  7. Replies
    11
    Views
    352

    Re: Overlapping Calculation

    It it were me, I would just set a clipping region, and then draw all the lines and let GDI+ take care of drawing the portion of the lines that fall in the rectangle.

    An example program that uses...
  8. Replies
    23
    Views
    353

    VS 2019 Re: Forms under a project instead of solution

    Yeah, I did use a single form for two projects in a solution on my first application ever done in VB.Net. I was inexperienced with VB.Net, so had to learn quickly to get a project done for work.
    ...
  9. Re: how to get play index about WindowsMediaPlayer Playlist

    Yes, when I did my own player without a playlist, When the playstate of 8 was receive indicating the end of the current song, I set a boolean indicating to load then next song, and in the timer it...
  10. Re: how to get play index about WindowsMediaPlayer Playlist

    It probably can be done, but I've never used the built in play list.
    I just maintain my own list, and play each in turn after the previous one finishes.
    Can't find the VB6 source that uses the...
  11. Replies
    2
    Views
    256

    VS 2019 Re: small question , scrollbar

    I wouldn't be changing those properties in the scroll event. That seems like it could lead to problems.
    You should set the minimum and maximum values in the IDE when developing the application, or...
  12. VS 2015 Re: Hide and stop media player from playing

    You don't show the media player, i.e. set the .Visible property to False
    You don't load something to be played when the form is open.
    If you want it to play at the close of the program, then you...
  13. Replies
    2
    Views
    240

    Re: compiled .exe very slow

    What is the code doing?
    Code in the iDE is slower normally because after each instruction it is doing some housekeeping to allow debugging hooks, and it also p-code interpreting.
    The compiled code...
  14. Replies
    34
    Views
    1,412

    Re: Retro programming communities

    I also started with the fixed length word machines.
    The first was an 18-bit machine, so at each PC (program counter) address, you had an 18-bit word.
    The second machine was a 16-bit machine, and at...
  15. Replies
    7
    Views
    294

    VS 2019 Re: How do I open a class's code editor?

    You are using the class's Code Editor.

    It isn't described clearly, but they are talking about the editor that you are using.
    What they are trying to say with that comment is, first they show you...
  16. Replies
    34
    Views
    1,412

    Re: Retro programming communities

    90's PC covers quite a bit of Architecture growth. Basically you had your 16-bit 486 machines of variously increasing speeds at the beginning and then the pivotal year, 1995 with the Pentium and...
  17. Replies
    10
    Views
    552

    Re: Timed Loops to Simulate Hertz

    I didn't try the code or look at it in detail.

    Just looking at the Get_Elapsed_Time function, the code doesn't seem to make sense.
    You're subtracting last_time from current_time, but since...
  18. Re: How to use a specific portion of an image as the form background

    Did you find that in post #4?
  19. Re: How to use a specific portion of an image as the form background

    Well, he did mention bitblt...
    And I assume he didn't want to have to crop the original image to make a bunch of different images to load.
    But, a movable picturebox would work as well.
  20. Re: How to use a specific portion of an image as the form background

    At startup, I would create a bitmap and load the large image into it.
    Create a second bitmap of whatever size you want and then draw into that bitmap the portion you want from the first bitmap.
    You...
  21. Replies
    18
    Views
    816

    Re: HexBox Control? View .bin file as ushort?

    Well, I guess check for an option indicating you want to swap, and just loop through the array and swap the bytes before the Buffer.BlockCopy.


    If bigendian Then
    Dim tmp As...
  22. Replies
    18
    Views
    816

    Re: HexBox Control? View .bin file as ushort?

    I guess the question there is why?
    The code you provided in post #11 doesn't swap the bytes before joining them into a ushort. It may look like it does, but it doesn't.
    Is it possible the editor...
  23. Replies
    18
    Views
    816

    Re: HexBox Control? View .bin file as ushort?

    Went ahead an merged my read, with Niya's string creation, as an example...


    Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    'rtb =...
  24. Replies
    18
    Views
    816

    Re: HexBox Control? View .bin file as ushort?

    If you want Niya's code to display decimal padded to 5 characters as the editor does, then change the one sb.append to pad the number with 0's and not convert to hex (no "X4")


    ...
  25. Replies
    18
    Views
    816

    Re: HexBox Control? View .bin file as ushort?

    UInt16 and UShort is the same thing.

    Niya's code was creating hex string representations of the 16-bit integers, which is what you were talking about, i.e. an editor representation.

    Your code...
  26. Re: Is it possible to get an example of how to drag an image from ?

    But that is a library, not built into VB6 directly, but that could be splitting hairs since most all programming is a matter of interfacing with code in libraries.

    Even so, interfacing with a...
  27. Re: Is it possible to get an example of how to drag an image from ?

    The word "model" is meaningless for VB6.

    The word "surface" is meaningless for VB6.

    Dragging an image is vague.
    VB6 has image controls and picturebox controls which can hold images and be...
  28. Replies
    19
    Views
    992

    Re: Code not reading entries !

    No, it was in the earlier versions of Microsoft Basic, across many of the various computers, i.e. Atari, Commodore, etc...
    I'm not sure just when it was introduced.
    Microsoft Basic was based on the...
  29. Replies
    2
    Views
    332

    VS 2019 Re: Mouse wheel scroll issue

    Obviously it is scrolling the contents (or lack thereof) in the textbox.
    I guess you'll have to thwart the textbox's processing of the mouse scroll wheel. Have to research that one. May need to...
  30. Replies
    19
    Views
    992

    Re: Code not reading entries !

    Of course, you could go old school and default some variables to non variant types.



    DefStr S

    Private Sub Form_Load()
    Dim sa, sb, sc

    sa = "All untyped variables starting with the...
  31. Replies
    7
    Views
    469

    Re: [RESOLVED] How to fast jump to END Sub ?

    The difference is that Ctrl-DownArrow will go to the first line of the next procedure (and it scrolls it so the procedure line is at the top of the edit window), likewise Ctrl-UpArrow goes to the...
  32. Replies
    7
    Views
    469

    Re: How to fast jump to END Sub ?

    I don't know of any key combination to go the the end of a procedure.
    I usually use Ctrl-DownArrow to go to the top of the next procedure, and I can back up to see the bottom of the previous that I...
  33. Re: draw a transparented image to form background (vb.net)

    You simply want to merge the images as you get them into a single bitmap.

    I would probably use a Picturebox the size of the form and use its .Image property, but since you specify a form, then...
  34. Replies
    7
    Views
    394

    Re: Picturebox w/ transparency

    I don't know. They were singles in VB3 as well, but I've had the issue at some point. It could have been from back then, so might have been prehistoric memory.
    Perhaps I was trying to draw some...
  35. Replies
    7
    Views
    394

    Re: Picturebox w/ transparency

    Did you try setting the Picturebox's scalemode to pixels, and set the container of the picturebox scalemode to pixels?
    In some cases it seems like the size of the picturebox is limited to a signed...
  36. Replies
    34
    Views
    1,412

    Re: Retro programming communities

    Sure. There are QBASIC and QB4.5 forums.
    A lot of these forums are in league with QB64, which is one of the modern capable languages, largely compatible with QB4.5.
    Just a couple of quick examples....
  37. Replies
    38
    Views
    1,932

    Re: [RESOLVED] Why can't Enum of VB6 be a string?

    My "two cents" on the original post, enum is short for enumeration, which literally has to do with the numeric value of something.
    So an enum is used to convert a string of characters in code into a...
  38. Re: Reading and editing a binary file as a array of Ushorts?

    You could have also mapped an array of one type to an array of another type by using Buffer.Blockcopy when reading your file the way you originally tried.
    Array.Copy would have copied each single...
  39. Replies
    6
    Views
    566

    Re: It's ok if you know

    There are plenty of books, but when I was first starting out learning .Net, I just did a search for Tutorials. There are a number of them on-line as well.
  40. Re: How to prevent the taskbar from changing color?

    There is probably some way to do it, but I don't know how.
    I base this on the fact that it isn't strictly Win10 that controls it, since I happen to have several windows open so I selected each in...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width