Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.69 seconds.

  1. Replies
    19
    Views
    406

    Re: GUID/CLSID/UUID Comparison API?

    I do it fairly often, but typically only when I want a "Let" with the same name. If it's a stand-alone, I'll just use a function (as it's pretty much the same thing at that point).

    --------------...
  2. Replies
    6
    Views
    258

    Re: Please Reset With ElRuffsta

    I'll give it a go. :) ...and start reading his threads again.
  3. Re: Sizable MDI child forms, resizing ???

    Yeah, I played around with using "Optional" to pass the values (and not using Me.Width, Me.Height, because those are already resized). But that's just an added complication. I was willing to go...
  4. Re: Form & Controls Resizer (including Font.Size)

    Ok, after more testing, it's clear that VB6 is doing some very bizarre resizing things with MDI-Child forms. To make this resizer logic work with them would require jumping through some hoops I'm...
  5. Replies
    9
    Views
    257

    Re: Degree Minit Second in Visual Basic

    Ok, you're right if you've got more than 24 degrees. But Int(Your_TimeSerial) is not the degrees. It's just how many multiples of 24 degrees you have, which relates to nothing related to trig or...
  6. Replies
    9
    Views
    257

    Re: Degree Minit Second in Visual Basic

    I thought about that too. But done that way, you don't wind up with a floating-point number that you can stick into the trig functions. The return of TimeSerial (cast to a double) is always...
  7. Replies
    9
    Views
    257

    Re: Degree Minit Second in Visual Basic

    Yeah, I thought about that. It would stay with integer math that way (and be faster for + and -). But, I figured it'd ultimately involve some trig, and calling any of those functions would take...
  8. Replies
    9
    Views
    257

    Re: Degree Minit Second in Visual Basic

    I've had this Surface that lives on my spot at the breakfast table for a few years now. It's got an i5 8259U 8-core, running at 1.6GHz. For reading the news and replying to VBForums posts while I...
  9. Re: Sizable MDI child forms, resizing ???

    If I had a way to capture the design time values (at any point), my problem would be solved.
  10. Re: Sizable MDI child forms, resizing ???

    My problem is very specifically: When an MDI_Child form loads on an MDI_Parent form, the MDI_Child's width & height get changed from the design-time values. And, this seems to happen before the VB6...
  11. Replies
    9
    Views
    257

    Re: Degree Minit Second in Visual Basic

    I'm not sure your question is terribly language specific. It seems to be more about understanding surveying-type measurements and floating point numbers in any modern language. Also, there needs to...
  12. Replies
    51
    Views
    1,715

    Re: new project - DB help needed please

    Ok, SamOscarBrown is one of the nicest guys on here, and I suspect a great many of us agree.

    elRuffsta, when I start feeling picked on, I just take a deep breath, and realize that probably >90% of...
  13. [ABANDONED] Sizable MDI child forms, resizing ???

    I hardly ever use MDI forms, but I'm trying to make my control resizer class work with them. However, forget that class. That's not the problem.

    So, VB6 just takes liberties with the sizing...
  14. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    Typically, when I'm in these situations, if it's a file that comfortably fits into memory, I just read the whole file and process it within memory, probably using the Split() function. Or, as an...
  15. Re: Form & Controls Resizer (including Font.Size)

    Hi zx81sp,

    Yeah, I thought about MDI forms. However, since I virtually never use them (not even for the IDE's windows), I didn't do any testing with them.

    But, when I get some time, I'll test...
  16. Re: Form & Controls Resizer (including Font.Size)

    Yokesee, sorry but I'm not going to be able to debug third-party controls like this. And, the way you describe it, it sounds like it's a problem with those controls. I'm not sure what "update...
  17. Replies
    13
    Views
    455

    Re: Label array issue - Error 91

    Ahhh, I do almost zero form design in the VBA. And the little I have done was years ago. And I didn't use any control arrays even when I did.

    However, I did once write some code to make...
  18. Re: Form & Controls Resizer (including Font.Size)

    Is it possible for you to post this FRM (and FRX) file so I can see what's going on here?
  19. Replies
    13
    Views
    455

    Re: Label array issue - Error 91

    Wait, the whole idea of control arrays is just to cut down on the events. They still each get a complete set of properties, individual to each control. If you want to move them all, you must do a...
  20. Replies
    13
    Views
    455

    Re: Label array issue - Error 91

    Control Arrays at Runtime.

    That's a kludge, but it does come pretty close to creating control arrays (with events) from scratch at runtime. I'm not sure I'd use it though. It's just too easy...
  21. Re: Form & Controls Resizer (including Font.Size)

    Ohhh, I didn't think of that. I've also got a problem with the included "helper" procedures. I'll get an update out here soon.
  22. Form & Controls Resizer (including Font.Size)

    Updates:

    March 21, 2024:
    * Fixed problem with minimizing & maximizing.
    * Replaced collections with arrays, and fixed all the "Helper" functions.
    March 20, 2024:
    * Initial release.


    Notice:...
  23. Replies
    5
    Views
    421

    Re: [RESOLVED] UserControl Issues

    That's precisely the conclusion I came to. I decided to just let the UC creator worry about this. I might give them some "sample" code to do it, but that's it.
  24. Re: SSTab and a Picturebox, it makes me crazy !!!

    Here's the class I attach to a SSTab control anytime I use it. I tend to name it cls_Gen_FixTabCtl, but that's your choice.

    Just declare it, and call it in both Form_Load and Form_Activate.
    ...
  25. Replies
    5
    Views
    421

    Re: UserControl Issues

    Ok, the reason I wanted this was, I'm making an auto-Resizer class that works with forms. It's working quite well, and I hope to post it to the CodeBank today, after I make a couple more...
  26. Re: SSTab and a Picturebox, it makes me crazy !!!

    And, IMHO, the tiff over PictureBox vs Frame is just silly. Yeah, the PictureBox has some nice drawing methods, and the Frame has a nice built-in border with a border caption. However, I'd give...
  27. Re: SSTab and a Picturebox, it makes me crazy !!!

    Are you sure the PictureBox is actually ON the tab? It sounds like it's just on the form in the same position as the SSTab.

    I use SSTab extensively, and I've never seen this problem.

    The Fix: ...
  28. Thread: qwerqwer

    by Elroy
    Replies
    3
    Views
    1,013

    Re: qwerqwer

    asdf
  29. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Gemini:



    Your text is just weird, and needs to be massaged to work correctly.
  30. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    .
    More typical text:

    190818
  31. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Ok, that's very weird text:

    190817

    Lines are terminated ONLY by a vbCR. In Windows environments, they're typically terminated by a vbCr & vbLf (aka, vbCrLf). In Unix/Linux environments, lines...
  32. Replies
    5
    Views
    421

    [RESOLVED] UserControl Issues

    Basically, I'm trying to pass a UserControl (UC) to another class, and have that second class be able to do three things with it:

    Get the UC's Width and Height (as it sits on the Form, or maybe...
  33. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Are you trying to go to the beginning of a "wrapped text" textbox, or are you trying to go to the beginning of line "when your lines are terminated with vbLF"?

    If you're trying to go to the...
  34. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Or here, this moves it to the beginning of the current line.



    Option Explicit

    Private Sub Form_Click()
    Me.Text1.SelLength = 0
    Me.Text1.SelStart = InStrRev(Me.Text1.Text, vbLf,...
  35. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Ummm, sure, we can do anything with API calls, but what's wrong with:



    Option Explicit

    Private Sub Form_Click()
    Me.Text1.SelStart = 0
    Me.Text1.SelLength = 0
    End Sub
  36. Replies
    2
    Views
    330

    Re: Font size units in the EXE

    ...deleted...
  37. Replies
    2
    Views
    330

    [RESOLVED] Font size units in the EXE

    I've decided to do all of this another way. I've already got it up and running, and filed this code away in an "Archived-Not-Useful" folder.
  38. Re: [RESOLVED] Trying to make an app portable using SxS but ending up with an entry i

    I think you're getting some conflict between the registered version of the OCX, and the manifest when it's being used.

    Truth be told, when these OCX files are registered (if they are), they should...
  39. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    Ok, before I get too carried away doing tests, vbrad, the sub-folder I used is always named "Dependencies".

    So, try changing the following line from your manifest file from:



    to:
  40. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    Ahhh, I do place my OCX (and ActiveX DLL) files within a sub-folder. I guess maybe I once knew they'd auto-register but have forgotten it.

    I'm at my desk now, and will take a look at the OP.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width