Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: PictureBox flickering while Resizing the Form

    Just FYI, as flickerless as I could get it: Demo Resize.zip

    Had to remove Form_Resize implementation altogether and position Picture1 inside WM_SYSCOMMAND. Not the best of code, more like total...
  2. Re: PictureBox flickering while Resizing the Form

    Ok, I see what the problem is with this approach. Form's Resize event is too late to prevent flicker as the form is already positioned/sized and so controls get repainted when moved around at this...
  3. Re: PictureBox flickering while Resizing the Form

    The form has no resizable border. Do you mean resizing with maximize/restore buttons in upper right corner?

    cheers,
    </wqw>
  4. Re: PictureBox flickering while Resizing the Form

    What flickers? Do you mean the form is flickering when you are setting its position? The PictureBox is not flickering and the controls inside of it are not flickering. You have to provide a better...
  5. Re: DwmGetColorizationColor - Close, but no cigar

    FYI, here are a couple of helper functions I'm using for alpha blending and luminance calculation


    Option Explicit
    '
    'Here I want to try to color Label1 as closely as possible to the Form's...
  6. Re: Thread Hook- On for Some Forms but not All Forms?

    Doh!
  7. Thread: TCP TraceRoute

    by wqweto
    Replies
    1
    Views
    126

    Re: TCP TraceRoute

    You would probably need to use some of the iphlpapi.dll function like GetRTTAndHopCount.

    cheers,
    </wqw>
  8. Re: Thread Hook- On for Some Forms but not All Forms?

    But the tooltip is a separate window/hWnd (the yellow one) and a single hWnd handles tooltips for *all* controls/forms in the process (or thread/VBProject, not sure).

    The point is that the hWnd is...
  9. Replies
    19
    Views
    701

    Re: What Causes This?

    OMFG, so simple!

    This mandatory add-in has been vexing me for years but it's time to get control of the IDE back from the "architects" that come up with this "convenience". 10x again!

    cheers,...
  10. Replies
    8
    Views
    558

    Re: Simulate TLS 1.3

    Here is a custom build of openssl that I used to develop my implementation: openssl-dev.zip (includes VS2015 debug runtime and config file)

    The main caveat is that this custom build dumps randoms,...
  11. Replies
    15
    Views
    437

    Re: Simple alias query

    You cannot use column aliases anywhere except in ORDER BY clause.

    cheers,
    </wqw>
  12. Replies
    31
    Views
    1,101

    Re: [RESOLVED] Custom Drawing of the ListView

    Using a redirector to call a friend function of dwRefData instance is infinately better. At least one will never use Form1.ListView1.Property in the code of this Form1 function (the callback) unless...
  13. Re: Why is there SetWindowLongA and SetWindowLongW in Windows API?

    . . . and this changes the way keyboard messages for this specific window are "translated" by the OS, along with probably other internal changes needed to retrofit unicode support (long time ago).
    ...
  14. Replies
    15
    Views
    467

    Re: Adjust font size

    Is operator first casts to IUnknown and then compares the ObjPtr of these references.

    Check out Rules for Implementing QueryInterface article. The first one is so called Identity rule: "For any...
  15. Replies
    15
    Views
    467

    Re: Adjust font size

    This is normal. Check out this snippet


    Dim oFont As StdFont
    Dim pFont As IFont
    Dim pUnk As IUnknown
    Dim pDisp1 As Object
    Dim pDisp2 As Object

    Set oFont = New...
  16. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    Well, try debugging this project while the form is subclassed with this half-baked approach for instance.

    cheers,
    </wqw>
  17. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    That would be sad indeed provided that SetWindowSubclass API allows trivially passing ObjPtr(Me) so that module based SubclassProc can be reduced to a calling back trampoline.

    I'm wondering isn't...
  18. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    What accessible ways?

    Provided that you are tightly coupling the subclassing module and the form, yet again you might have multiple instances of Form1 and how do you deal with this? Present code...
  19. Replies
    11
    Views
    408

    Re: Internet Distribution Site For VB6 Project

    https://pages.github.com/ is an option too.

    cheers,
    </wqw>
  20. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    Are you using this exact same code?

    You *could* keep WndProc/SubclassProc in a standard bas module and map "instance data" by hWnd from a giant collection but this would be mighty uncomfortable...
  21. Replies
    8
    Views
    558

    Re: Simulate TLS 1.3

    The only type of records that can be protected (encrypted) are RT_APPLICATION_DATA so encrypted handshake, alerts and actual data can pass through hardware middle-boxes designed for TLS 1.2 without...
  22. Replies
    10
    Views
    842

    Re: help about create this theme

    It's a bug in the compiler and it makes the IDE (interpreter) runtime unstable so should never be used is production (or any other) code.

    Just use ArrPtr alias to VarPtr to get pointer to the...
  23. Replies
    8
    Views
    558

    Re: Simulate TLS 1.3

    > I vaguely remember something about the Session Hash being reset after the Handshake is established, but I could not find any information to verify that. If anyone can point me towards such...
  24. Re: VBRichClient5 cCollection ItemExists Question

    Which version of RC5 do you test this on?

    cheers,
    </wqw>
  25. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    https://docs.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-nmcustomdraw


    Your code


    Case CDDS_ITEMPREPAINT
    LVWndProc = CDRF_NOTIFYSUBITEMDRAW Or CDRF_NEWFONT Or...
  26. Replies
    31
    Views
    1,101

    Re: Custom Drawing of the ListView

    This is bad beyond repair. You cannot randomly access Form1 from a WndProc in a module.

    You could but its useless for anything that might be used in production code.
  27. Replies
    1
    Views
    180

    Re: Zip Files/Folderwith VB6

    https://github.com/wqweto/ZipArchive
  28. Re: [VB6] Simple AES 256-bit password protected encryption

    This is hardly going to match Java implementation. It is currently matching 1-to-1 the WinZip AES encryption scheme where the module was actually extracted from. Unfortunately it deviates a bit from...
  29. Replies
    14
    Views
    776

    Re: [RESOLVED] AES_128_GCM question

    I think they had trouble with middleboxes when they tried masquarading as older TLS 1.2 protocol when the application data records were too short so they specified TLS 1.2 compatibility mode in which...
  30. VS 2017 Re: Disposing variables and objects that contains sensitive data

    For sensitive data your only choice is to use


    Array.Clear(data, 0, data.Length);

    . . . where byte[] data is a simple array as a continuous blob of data.

    When you wrap/insert such blob in...
  31. Replies
    14
    Views
    776

    Re: [RESOLVED] AES_128_GCM question

    It's explained in section 5.4. Record Padding



    They basically append the record type at the end of plaintext as a non-zero delimiter after which zero-filled padding may or may not be added.
    ...
  32. Re: How good is my source coding or what, then???

    @Dragokas: "Do you wish to do unpaid work for ThEiMp???"

    (I would be nuts not to check out OP's signature first:-))

    cheers,
    </wqw>
  33. Replies
    35
    Views
    1,587

    Re: codesign + dragdrop/IDropTarget + UAC

    Btw, the OP is about the rare use-case of UIAccess=True attribute set.

    There are some additional (obscure) conditions mentioned for this to work, namely executable being code-signed and located...
  34. Replies
    14
    Views
    654

    Re: windows 10 is blocking this site

    Can try clearing browser cookies for [www.]vbforums.com site only.

    I've had some sites concatenate random junk to its cookies (due to mostly bugs) reaching *excessive* lengths so that at some...
  35. VS 2017 Re: How to run a program on all wildcards in all subfolders?

    In C# it would be something like this


    foreach (string file in Directory.EnumerateFiles(@"C:\Path\To", "*.cc", SearchOption.AllDirectories))
    {
    Process.Start("program.exe",...
  36. Re: SSLStream - "The handshake failed due to an unexpected packet format"

    I just tried the sample *client* code w/ VS2017 (using .Net Framework 4.6.1) connecting to random servers on the internet and to a custom local server -- seems to be working fine.

    Your server...
  37. Thread: Modern C# to VB

    by wqweto
    Replies
    9
    Views
    535

    Re: Modern C# to VB

    JS had semicolons optional since day one so the same language "feature" goes to .jsx or .tsx if using typescript -- both can live without semicolons.

    Funny thing is SQL Server had it all backwards...
  38. Replies
    14
    Views
    654

    Re: windows 10 is blocking this site

    Exactly! That would be impossible, so probably your iPhone is not working too. It just *seems* to be working over the same Wi-Fi accessing the site from the same IP. . .

    Your hypothesis is equally...
  39. Re: SSLStream - "The handshake failed due to an unexpected packet format"

    Did you tweak ValidateServerCertificate on the client to always allow sever certificates (always return true)? Curently the server is defaulting to a self-signed certificate which is rejected if not...
  40. Replies
    14
    Views
    654

    Re: windows 10 is blocking this site

    Your iPhone is falling back to 3G (mobile connection) when wifi/router connection to forum IP is failing so it looks your IP is not blocked on the phone. Remove SIM card and try accessing it if you...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width