Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Thread: Public Sub

    by passel
    Replies
    5
    Views
    472

    VS 2022 Re: Public Sub

    I'm more familiar with earlier version of .Net so don't know much detail on using Await and Tasks, but I'm assuming your problem is likely a threading issue.
    When you call the function from a click...
  2. Thread: Multi-clicks.

    by passel
    Replies
    14
    Views
    916

    Re: Multi-clicks.

    Paul's point is while the textboxes exist in the IDE, they haven't been created yet at the time the Form's declarations are processed. So you can't initial your array with the controls where you...
  3. Replies
    10
    Views
    810

    Re: [RESOLVED] Updating Controls Simultaneously

    If you're updating the whole picturebox 30 times per second, then perhaps it would be better to bypass the standard way of updating the area of the picturebox, i.e. update the area yourself using a...
  4. Replies
    10
    Views
    810

    Re: Updating Controls Simultaneously

    Hopefully you're disposing your objects properly. It sounds like it might be memory getting filled up and then a lot of garbage collecting that may be delaying your processing.
  5. Replies
    8
    Views
    641

    Re: Showing text over an image

    Since Pictureboxes are always double buffered by default, you shouldn't get flickering even when doing a full repaint, as long as you do repaint everything.
  6. Replies
    9
    Views
    509

    Re: Getting a Label control's text to update

    Just updating the text when you change it should work.


    Public Class frmMyTime
    Dim gTime As String
    Dim lblTime As Label

    Private Sub frmMyTime_Load(sender As Object, e As...
  7. Re: How do you create a command that hides each label on the surface of the form?

    You can put the labels in a borderless frame, and then set the frame to not be visible which will hide all the controls parented in the frame.
  8. VS 2019 Re: Determining the "head" and "tail" of a data stream

    Even with those changes, it seems to me you may still drop data.
    Your baud rate is only 57600 and you generally divide baud rate by 10 to get the approximate number of bytes of bandwidth you have...
  9. Replies
    5
    Views
    606

    Re: Hypothetical Question

    If you're implementing something yourself, with TLS as the transport protocol, and you don't want to add an additional header, then I've seem implementations where a short packet indicated the end of...
  10. Replies
    4
    Views
    409

    Re: put button to repeat song

    I've asked the moderators to move this to the VB forum. The codebank forum is for posting working code, not for asking questions.

    I assume you're asking how to add a button to enable repeating the...
  11. Re: Line Methof for a gradient in a Triangle

    I didn't try your code from post #1 yet, but I suspect you forgot that a triangle is reducing its width by 2 for each line, i.e. you are reducing both the left and right sides, so dividing your step...
  12. VS 2010 Re: gdi/graphics draw image with resize toolbox (Better Question)

    The name of the method has no bearing on whether it will be called or not for an Event, it depends on the Handles Clause, and from what I can see, the Handles clause is referencing the Form (i.e....
  13. Thread: VB6 Tron Game

    by passel
    Replies
    19
    Views
    1,052

    Re: VB6 Tron Game

    You're hitting your own tail all the time because you're checking the color after you've drawn the color in that position.
    You need to check the color of the position before you draw in it.
    If it...
  14. Replies
    24
    Views
    1,387

    Re: [RESOLVED] Weird Timer Behavior Issue

    I think it may also come down to the fact that you have a validate event that has to occur before the value is changed, so to support that, the change can't officially take place, i.e. be a permanent...
  15. Re: [RESOLVED] Hello, I am looking for help to broadcast a project

    Sorry to come in like this.
    I knew the emergency room and the exams made beautiful pictures of a cancer of a hoop (I think I have a small chance to get out, at least).
    In a few days. I wished ......
  16. Replies
    6
    Views
    501

    VS 2022 Re: Creating the subroutine

    You wrote the Sub to accept the return value, so you have to call the Sub with that return value passed in.



    CalcRatio(Destination(d).Activity(a).Total,...
  17. Re: How to make a random image generator that creates 2 images VBA

    I don't understand the requirements for your version of the game.
    Do you want to display a random pair from your list of 57 images?
    Then after user interaction, pick another random pair from your...
  18. Re: How to make a random image generator that creates 2 images VBA

    You shouldn't have Randomize in the loop.
    Randomize should be only used once at the start of the program and never called again.

    Since Randomize will seed the rnd function using the current clock...
  19. Replies
    16
    Views
    969

    Re: Breaking a loop by a button

    So you're saying that that will work for you.

    Basically, if you have the loop in the timer, then that makes the loop atomic, i.e. the loop will run in the timer event, and other events will be...
  20. Replies
    12
    Views
    692

    VS 2010 Re: my code does nothing PART 2

    Your screenshot shows you are on the "For Each" Line.
    There is probably nothing worth looking at there, the FD value hasn't been set yet.
    If you take a step and are on the If Condition line, you...
  21. Replies
    12
    Views
    692

    VS 2010 Re: my code does nothing PART 2

    So, when you stepped through the code, how did it not work? Which line(s) had values that you didn't expect? If you're not matching the tag, then do you have any tags that match. You could add an...
  22. Replies
    12
    Views
    692

    VS 2010 Re: my code does nothing PART 2

    Did you put a breakpoint on the line "Dim Kafa As PictureBox = DirectCast(c, PictureBox)", and then step through the code to watch what it does and what values you are dealing with.

    If you get...
  23. Replies
    16
    Views
    969

    Re: Breaking a loop by a button

    You should probably just make the thing event driven and use a state machine to keep track of what you're doing.
    I would set up a timer with an Interval of 1, so it will tick as fast as possible,...
  24. Re: *** Pattern Program

    The previous question did ask how to create three patterns.
    This is only asking for the one. A slight difference, but.... I thought of reporting it to a moderator as a duplicate, but it is a...
  25. Replies
    16
    Views
    969

    Re: Breaking a loop by a button

    Even processing, such as a button click or timer ticks, can't be processed while your code is running. They occur after you leave a sub. If you need to process events while looping in your code, you...
  26. Replies
    19
    Views
    911

    Re: Sierpinski's Triangle

    Well, then it will make it harder to choose one of the three points. You will have to convert the random number into selecting one of your set of variables, so you will either need to have a series...
  27. Replies
    19
    Views
    911

    Re: Sierpinski's Triangle

    https://www.freetutes.com/learn-vb6/lesson6.html
    p.s. There could be better or simpler tutorials, this is just the first one I came across when I searched for "vb6 array tutorial". You could do a...
  28. Replies
    19
    Views
    911

    Re: Sierpinski's Triangle

    Sounds like an assignment, so you'll need to do the work.
    But if I was doing this, I would make use of arrays, since you have to pick things randomly and use a specific color that is associated with...
  29. Replies
    17
    Views
    933

    VS 2010 Re: how to make a isometric tycoon

    Pretty much the bottom line is you would draw the image where you want it to create such games.

    I would use a single picturebox as your drawing surface, and then use DrawImage for every object...
  30. Replies
    11
    Views
    908

    Re: DOS in DOS with VBDOS 1.0

    Windows 3.1 wasn't preemptive multi-tasking. It was a DOS program that you ran that provided a graphical environment and allowed cooperative multi-tasking between applications written to voluntarily...
  31. Re: [RESOLVED] Issue using Get to load in a large (142MB) file

    I did fix that in my test code, but had already posted this and forgot to update the post.
    But even if you fix the variable misspelling, it will then get the memory error when it executes.

    If you...
  32. VS 2010 Re: i cant do in vs2010 but i can do in vb6 (illegal pixel positions)

    I wouldn't say that it gave nothing. It was just a paradigm of the way to control the scale, i.e. coordinates for drawing. I used it all the time for drawing graphs and maps, e.g. If I had a list of...
  33. VS 2019 Re: Help with Importing CSV Files With and Without Headers

    I'm not a database person, so don't know the nifty way of slicing or dicing data, but based on the code you have, I would think you would just do something similar to what you have in the...
  34. Re: [RESOLVED] Issue using Get to load in a large (142MB) file

    I would use a Sub instead of a function.
    I don't think you have enough stack space to hold the string to be returned by the function.
    If you use a Sub, you just pass the string to the sub and read...
  35. VS 2019 Re: Help with Importing CSV Files With and Without Headers

    Perhaps follow the Excel paradigm, where along with which columns to import and which to skip they can indicate whether the file has a header row at the top or not.
  36. Replies
    5
    Views
    453

    VS 2010 Re: i need index for vb.net 2010

    In the past you were saying you need an index for controls, which was related to porting the concept of Control arrays to vb.net. But since VB6 Forms don't have an Index property, you can't be trying...
  37. Re: [RESOLVED] Hello, I am looking for help to broadcast a project

    I've only had a very poor education in French in High School, but looking at your Google Translation, I made my way through part of the list and think the following may be better interpretations of...
  38. VS 2010 Re: i cant do in vs2010 but i can do in vb6 (illegal pixel positions)

    VB.Net only uses pixel location for control placement and pixels for the size as well, so there is no scalemode for the container any longer.
  39. Replies
    20
    Views
    934

    VS 2010 Re: my code not works

    He showed the content of the file in post #9.
    It seems he didn't understand jmc's post #11, and is still using an index parameter so is now reading the first character of each line, rather than the...
  40. Replies
    19
    Views
    988

    Re: Found a copy of VB 6.0

    Basically Windows 1 and 2 were fairly unusable so not widely adopted.
    It was the Apple approved version of a GUI for Microsoft's DOS Operating System.

    If you don't remember Windows 1, then...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width