Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 0.32 seconds.

  1. Re: [RESOLVED] Moving an object again, Maybe not an object

    I imagine you didn't increase the size of the picture by an integral amount, i.e. 71 * 1.5 is 106.5 and a picture can't be 106.5 pixels wide. It is either 106 or 107.
    The card images themselves may...
  2. Re: Small Visual Basic: A VB.NET WPF open source project

    Yes, that is it, but its origins is much older than 2 years.
    It started in 2000 and at the time that Microsoft introduced Small Basic around 2010, if you did a search on "small basic" you would get...
  3. Re: Small Visual Basic: A VB.NET WPF open source project

    I was talking about Microsoft Small Basic isn't based on the Small BASIC language. You said yours was, and I said Microsoft's wasn't, which is part of the confusion with Microsoft calling their...
  4. Re: Small Visual Basic: A VB.NET WPF open source project

    Seems like it might add more confusion with yet another "Small Basic" version, e.g. Microsoft Small Basic which is already a simplified, but capable, version of a Basic Interpreter. Of course, it...
  5. Re: How do you work out the difference between two dates.

    Paul's code may work for you. (p.s. I guess not, as Paul assumed as I did that you were subtracting dates, not trying to subtract DateTimePickers).
    My code would need to be updated to use the Value...
  6. Re: How do I Automatically update a text box, using a NumbericUpDown Box

    You have to call the code to update the textbox in the ValueChanged event handler of the NumericUpDown control.
    That means the code to update the textbox should be put in its own method so that it...
  7. Re: How do you work out the difference between two dates.

    There are a number of ways you could do this.
    Perhaps try this (I didn't test it)


    TotalPrice.Text = ("" & 9 * People.Value * (DepartureDate.Subtract(ArrivalDate).Days)
  8. Re: how to zorder vb6 Controls,use SetWindowPos api?

    I almost always want to bring to the front, so I usually just use Control.Zorder without a parameter since that brings it to the front by default.

    But you can use the ZorderConstants Enumeration...
  9. Re: Checkbox - Graphical. Remove Checked Highlight

    You can't change the ForeColor of a Graphical Command Button. Command buttons don't support ForeColor.
  10. Re: Checkbox - Graphical. Remove Checked Highlight

    What is the picturebox method?
    Perhaps you can put a label in the picturebox, and use it to process the inputs and handle the text wrapping.

    Just a quick test, adding a few pictureboxes to the...
  11. VS 2010 Re: Stop Flicker of the windows form in visual basic 2010

    Since you're redefining a region to shape the form, perhaps you need to override the OnPaint event and handle the drawing there, so you can do the painting in one pass. If you do the painting in the...
  12. VS 2019 Re: Friend sending me his .EXE. Tries to install .NET 3.5

    VS 2019 isn't going to change the framework of a project automatically. The project would retain the framework it was configured for. That is why you can use VS2019 on a VS2010 project, and still use...
  13. Re: Moving an object again, Maybe not an object

    I assume it doesn't make sense to you because you are drawing in the picDest pictureboxes. I am not drawing in the picDest pictureboxes, so setting AutoRedraw to True is wasted for the way I do it....
  14. Re: Moving an object again, Maybe not an object

    .picDest(1-13) should never be drawn into, so AutoRedraw shouldn't be set for those, it would be a waste. (same for .picDest(0)).
    If setting .picDest(0) AutoRedraw property to True fixed anything,...
  15. Re: Moving an object again, Maybe not an object

    I'm not sure what you've done at this point.
    The code I gave just uses one picturebox to represent one card. AutoRedraw should be set to true on all the picCards, so the card should never erase....
  16. Replies
    6
    Views
    435

    Re: [RESOLVED] VB.Net For Loop Takes So Long

    That is assuming that all three checkboxes are checked, and I assume the sample timestamp would be added in the final loop, at line 11 of the code.
    With three checkboxes selecting which data is...
  17. Replies
    20
    Views
    606

    Re: Reading a Text File in Visual Basic 6

    So, you have text files with .zip extensions?
    Normally a .zip file would be a compressed file, and you can't open a compressed file for Input in Visual Basic and read anything meaningful from it.
  18. Replies
    5
    Views
    246

    VS 2019 Re: Restarting Image Loop

    May as well make it depended on the length of the list, rather than a hardcoded literal 10.


    Private Sub MainmenuSlideshowTimer_Tick(sender As Object, e As EventArgs) Handles...
  19. Replies
    10
    Views
    331

    Re: PLACE label on pictiurebox

    A label is a lightweight control, it is not a window.
    The label is drawn on its container.
    If the label is on the form, it can only be drawn on the form.
    If you want the label to be seen "over" a...
  20. Re: Moving an object again, Maybe not an object

    There was no sqr function because it was only checking one dimension, i.e. X. So the Distance in pixels is simply the difference between two X values.
    When you go to two dimensions (X,Y) then the...
  21. Re: Moving an object again, Maybe not an object

    1. Did you reposition them in code, or are you laying them out in the IDE?
    Where it is currently setting that up is in the "Initialize_Everything" Sub.
    The Card array holds the position and link...
  22. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    Yeah, well I haven't worked with .Net Core, so I don't recognize those errors.
    The code I wrote and tested was for a .Net framework Console App, not .Net Core.
  23. Thread: Control Array?

    by passel
    Replies
    93
    Views
    3,061

    Re: Control Array?

    Being you have a lot of controls, then yes, I think you will need to rebuilt it by hand. In my case it wasn't a big chore because I didn't have a lot of controls in the VB6 version of the...
  24. Thread: Control Array?

    by passel
    Replies
    93
    Views
    3,061

    Re: Control Array?

    I think the points that people have made are valid and you should learn VB.Net and take advantage of it.
    Redesigning your application with VB.Net in mind, and essentially writing it from scratch,...
  25. Re: Moving an object again, Maybe not an object

    I posted the Seahaven game in one of your other threads, and it allows stacking cards. Since there is code to allow dragging multiple cards, and rules to test for valid dragging situations to...
  26. Re: VB2019 function returns single character of string instead of the entire string

    I'm sure that is the issue.
    In .Net you can index into the string to get a character from the string.
    Since the function returns a string, you are indexing into the returned string by...
  27. Replies
    5
    Views
    334

    Re: C++ Redistributable

    Interesting. I typed in the phrase and the first two hits I read mentioned VS2015, so I assumed that was the answer. But that may just be a matter of timing, that VS2015 was the most common...
  28. Replies
    5
    Views
    334

    Re: C++ Redistributable

    I assume you didn't enter the string "VC Runtime 140.dll" in a web search at the time you asked. That seems odd.
    It has been quite a few hours at this point since you asked the question, so I have...
  29. VS 2019 Re: Is "Dim" obsolete? Should now use Private for all local vars?

    I'm not sure why you ask that.
    I assume by local vars you mean variables declared in a Sub or Function.
    If you tried to use "Private" in a Sub or Function when declaring a variable you should get a...
  30. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    I guess that may be my mistake. It is doing a connect so is using TCP (which is the default for the vb6 winsock control) not UDP. I do a lot of UDP, and a few cases of TCP (since most of my network...
  31. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    Since you mentioned a number of drawers with different IP addresses, then perhaps if a non-gui (i.e. console) application is what you want to be kicked off, then perhaps rather than create one for...
  32. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    Yes. But how do you want it to know when to open the cash drawer?
    Do you just want to execute it to open the drawer, and it just exits after sending the string?

    Assuming that is true, then just...
  33. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    I agree the example given to the OP is VB6, except as I said, I'm not aware of escaping a hex value inside a string as the example did, so I think it might the person giving the example may be using...
  34. Replies
    12
    Views
    1,470

    Re: Need to open a network cash drawer

    This question should probably really have been in the VB.Net forum. You would no doubt have several responses by now.

    I don't have the time to get specific right now, but Assuming you just want a...
  35. Replies
    9
    Views
    504

    Re: Chain Reactions!

    Only if they actually change the value.
    If you set the value to the value it already is, then it doesn't generate a value changed event.
    You should get two hits on a paired value change event,...
  36. Replies
    63
    Views
    2,279

    Re: Could there have been election fraud?

    Not really. If you have two lousy choices, then I think it logical that the selection essentially becomes a coin toss, trying to figure out the lesser of two evils.
  37. Replies
    33
    Views
    1,500

    Re: VB6 The line returned when it hit the wall

    Since your code is using line controls and not drawing lines, that complicates things.
    I guess the question is how you want the user interface to work, and how many lines do you want to draw.
    ...
  38. Replies
    33
    Views
    1,500

    Re: VB6 The line returned when it hit the wall

    And that is what I told you.
    If you're drawing a line, you're adding a constant X and Y value to the previous point to get to another point in the line.
    Since the Incident Angle and the Angle of...
  39. Replies
    33
    Views
    1,500

    Re: VB6 The line returned when it hit the wall

    Just invert the Y value when you hit the top or bottom, and invert the X value when you hit the left or right.
  40. Replies
    23
    Views
    959

    Re: Secondary Monitor ,, I need help

    VB6 was developed over 20 years ago. It doesn't have anything analogous to screen.AllScreens. You have to use the Windows API to implement that functionality yourself.
    Technically, the Screen class...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width