Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 2.49 seconds.

  1. Re: How to set form interior size (ScaleWidth and ScaleHeight) to specific dimensions

    Ah, I think I see.

    You can measure the amount of "chrome" when you start up (Form_Load) and then add the chrome to your desired client dimensions to get the sizes to set the dialog window ("form")...
  2. Re: How to set form interior size (ScaleWidth and ScaleHeight) to specific dimensions

    No, they don't. These reflect the form's interior (client rectangle) they do not define its size. Just as you don't change your weight by stepping on a scale.


    Option Explicit

    Private Sub...
  3. Replies
    54
    Views
    1,225

    Re: Presidential Debates

    I'd need to watch it again if I can find it, but I'm sure Biden said something close to "I never said I'm for a Green New Deal. Now here's what is in my Green New Deal..."

    But maybe I was just...
  4. Replies
    54
    Views
    1,225

    Re: Presidential Debates

    Perot was probably the last challenger the duopoly could not suppress. Low single-digit results are probably all that can be expected any more and that's all we have seen.
  5. Re: VB6 Question: Is there a method of reading an embedded image in a DLL using GDI+?

    Are you looking for GdipCreateBitmapFromResource() or is your problem somewhere else? If you are trying to extract to a file then there probably isn't any reason to get GDI+ involved at all.

    Are...
  6. Replies
    12
    Views
    311

    Re: RtlToFromString - Number Bases

    I just wanted to post something beyond "Hey kids, you can call these functions!"
  7. Replies
    54
    Views
    1,225

    Re: Presidential Debates

    Hard to imagine any fence-sitters remain out there.

    As Biden-Harris pick up more endorsements like Romney, Snyder, Palpatine, and Vader who oppose the Rebellion it might drive a few more to stay...
  8. Replies
    12
    Views
    311

    Re: RtlToFromString - Number Bases

    What’s the difference between VARIANT and VARIANTARG?



    Read Raymond's analysis. I think he's implying we are quite safe in VB6 unless somebody has gone under the covers to create a faulty...
  9. Replies
    12
    Views
    311

    Re: RtlToFromString - Number Bases

    Yes of course a String is always indirect. But passing a String Variant ByVal makes a copy by definition.

    I just don't think this is an issue for numeric types passed ByVal As Variant. If you...
  10. Re: Automatically Load most recent project at startup?

    In Explorer you can right-click the .VBP file and choose Send to|Desktop (create shortcut) which is at least another alternative that properly sets CD when VB6.exe is started.

    Oops, I duplicated...
  11. Replies
    18
    Views
    671

    Re: we almost got the source to VB6

    Getting the source might be half the battle. Getting the build tools and environment required together might be the other half. Then there's that third half of understanding the source well enough...
  12. Replies
    12
    Views
    311

    Re: RtlToFromString - Number Bases

    Doesn't ByVal Value As Variant always pass a ByVal Variant? I'd expect that even if passing in a String Variant.

    The wrapper functions I wrote have their limitations, and I don't consider them...
  13. Replies
    54
    Views
    1,225

    Re: Presidential Debates

    It's a bit late for debates. Ballots have already been sent out to many people, got mine last week.
  14. Replies
    12
    Views
    311

    Re: RtlToFromString - Number Bases

    BTW:

    There does seem to be a RtlUnicodeStringToInt64() function (at least in Windows 10). This would provide more symmetry but as far as I can tell it is only available to kernel-mode code such...
  15. Replies
    0
    Views
    118

    Windows Logo Glyph

    Not sure why you'd ever need it, but I stumbled across this:


    178872


    Option Explicit

    Private Sub Form_Load()
    With Label1
  16. Replies
    12
    Views
    311

    RtlToFromString - Number Bases

    For the most part we're already set for converting to/from number bases in VB6. But sometimes people want something more.

    Here is a little bit more based upon two API calls:

    ...
  17. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    Well for some forms of animation SLWA seems good enough:


    178862

    Most of the attachment is images.
  18. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    I should add that I understand the value of UpdateLayeredWindow() for animation or displaying ongoing changes to your "canvas." I suppose it could also be useful for creating "whole screen overlays"...
  19. Re: Looking to build a HTTP class but what should it be built off of?

    WinHTTPRequest is already a VB-friendly HTTP class.

    Why would you need to wrap it within another class?
  20. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    I see your changes above, but I'm not sure how they answer my questions.


    One question was about using the Form's DC and you haven't addressed that.

    The Trick addressed that for rendering...
  21. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    I was talking about drawing with alpha blending. Not a fixed alpha for the entire drawing, but "draw by draw" differences in alpha.

    I can do it with a memory DC but I wasn't sure how to use the...
  22. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    Yes, that's true. Thanks.

    But the result looks like color-key transparency. Can you get different translucency for different drawing operations? I don't see anything here that improves on...
  23. Replies
    15
    Views
    371

    Re: UpdateLayeredWindow() Drove Me Crazy

    I'm not sure any of this is very useful, but it comes up from time to time so I tried playing with it. At best it feels like a stunt.

    Maybe others have more imagination.
  24. Replies
    15
    Views
    371

    UpdateLayeredWindow() Drove Me Crazy

    I never played with UpdateLayeredWindow() before. So I took a look and didn't find many concise examples in VB6. Examples here and there, but not clear enough to get through my thick skull.

    I...
  25. Replies
    33
    Views
    824

    Re: Notorius R.B.G ... RIP

    I think you have these candidates confused with each other.

    Biden stands for more war, more austerity, more prisons, harsher crime penalties, more corporate protections and bailouts, and...
  26. Replies
    33
    Views
    824

    Re: Notorius R.B.G ... RIP

    Mmm, no.

    More likely he'd prefer a court that would uphold a case against the unsecured mail-in ballots that Biden is counting on to stuff the ballot box with.


    The end-around to shut Trump up...
  27. Replies
    13
    Views
    274

    Re: Jet SQL: Insert Null FK?

    The more I look at it the more likely it seems that a 3rd "link" table may be required to make the "delete GW without deleting Cherries" work.
  28. Replies
    13
    Views
    274

    Re: Jet SQL: Insert Null FK?

    It all depends on what the scenario demands. If you want to be able to delete "George Washington" without deleting "Cherries" (for all rows that reference "Cherries") then a redesign is required.
    ...
  29. Re: SHChangeNotify messages causing weird asych behavior

    Line2 may be calling something that calls something (MessageHandler?) that calls Function1.
  30. Replies
    205
    Views
    11,194

    Re: Re PlanetSourceCode

    It's embarrassing for those of us who couldn't meet their high standards.
  31. Replies
    13
    Views
    274

    Re: Jet SQL: Insert Null FK?

    This came up because an old customer had let their own people work on a program I wrote a few years ago for them. It bulk-loads data exported from a legacy system, yes even older than VB6 and Jet,...
  32. Replies
    205
    Views
    11,194

    Re: Re PlanetSourceCode

    That's the sort of thing that led me to call it "POScode" for years.

    I'm not saying there are no gems there, but they are like needles in a landfill.
  33. Replies
    13
    Views
    274

    Re: Jet SQL: Insert Null FK?

    If you don't use MAX() it fails to work as desired. That new Pies row will never get inserted into the table because the SELECT returns no rows.


    To clarify:

    MAX() isn't really MAX() here, it...
  34. Replies
    13
    Views
    274

    Jet SQL: Insert Null FK?

    I have a main table Pies and a lookup table Fillings.

    The main table has a foreign key, but some rows can have no entry, i.e. Null. I want to be able to insert new Pies rows after populating...
  35. Replies
    1,421
    Views
    59,591

    Re: Corona virus, China major city lockdowns, etc.

    Well, the heads appear to be plastic, and to wear one of those suggests you aren't wrapped too tight. ;)
  36. Replies
    33
    Views
    824

    Re: Notorius R.B.G ... RIP

    Republicans? Oh, those people who support Biden?
  37. Replies
    58
    Views
    1,026

    Re: need 2 decimal places

    Don't use the ancient Val() unless you really mean to. It always uses the Invariant Locale.

    Instead we have things like CSng(), CDbl(), etc. which are locale aware. No need for funky gymnastics...
  38. Replies
    0
    Views
    184

    DOW: Least-Used VB6 Feature?

    This site has been around for a long time, but searches turn up very little on the VB6 Data Object Wizard. This has been around since 1998 of course, but it seems to hardly be used by anyone.

    I...
  39. Replies
    54
    Views
    1,225

    Re: Presidential Debates

    Biden's got it made. The media just need to show his prominent supporters clapping for his responses. John Kasich, Mitt Romney, Colin Powell, Carly Fiorina, Cindy McCain (wife of the writer of...
  40. Re: CanGrow RPTLabels do not take account Tabs

    Aside from justification there isn't much available. I suppose you could pad stuff out with non-breaking-space characters, i.e. ChrW$(&HA0&) characters,

    For many locales you can even enter those...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width