Search:

Type: Posts; User: Steve Grant

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    1
    Views
    306

    Re: Strange TreeView Behavior?

    Just a guess but I bet you are running the IDE as administrator (elevated). So for a test, right click the exe and choose run as administrator and see what happens. This has happened to me after...
  2. Re: Combobox with a font list with their style

    The Zip file in #2 opens ok with 7-Zip but not with Windows.
  3. Replies
    5
    Views
    953

    Re: Where did the Wizard go?

    I too use Pro with the following results. Perhaps your VB6 install is not right! Win 11.
  4. Replies
    9
    Views
    2,682

    Re: Work with paths longer than MAX_PATH

    I completely agree about how bad LFN's are. would you mind sharing a demo of SHCreateStreamOnFileEx.
  5. Replies
    14
    Views
    2,349

    Re: MSCOMCTL.OCX question

    Firstly you need to ensure that you are running VB6.exe as administrator. If you are then go to the ocx's mentioned above and find out their version numbers. If they are different to the vbp modify...
  6. Replies
    14
    Views
    1,638

    Re: Shape FillColor change with mouse

    Take a look at Eduardo's shape control https://www.vbforums.com/showthread.php?870259-VB6-Windowed-Shape-Control. Also read some of the comments in that thread. Good luck.
  7. Replies
    14
    Views
    1,638

    Re: Shape FillColor change with mouse

    If you could outline what you are trying to achieve, we may be able to suggest something.
  8. Replies
    14
    Views
    1,638

    Re: Shape FillColor change with mouse

    A shape control does not have any events, at least not on my PC. Have you created the event yourself? This is why it does not work!
  9. Replies
    3
    Views
    1,877

    Re: Get Audio Type: Get Image Type

    Please read the code more carefully. What happens if there is no V2 tag or no tag at all?
  10. Replies
    27
    Views
    2,784

    Re: Passing ByVal or ByRef to a Sub

    https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/aa263527(v=vs.60)?redirectedfrom=MSDN
  11. Replies
    27
    Views
    2,784

    Re: Passing ByVal or ByRef to a Sub

    ByVal is not the default, ByRef is. So all your calling variables are being changed module wide. In this instance it may not matter but you should remember that ByVal must be called explicitly.
    ...
  12. Re: How to load a .WEBP image into a PictureBox using WIC?

    It works fine with webp but you may have to Refresh the picturebox once rendered. I wouldn't have recommended it if it didn't work!!!

    Also turn off picturebox autoredraw if you don't want to...
  13. Re: How to load a .WEBP image into a PictureBox using WIC?

    This class is by Victor Bravo VI and does NOT use any TLB's.
  14. Re: How to load a .WEBP image into a PictureBox using WIC?

    Search Codebank for cWicImage.cls by Victor Bravo VI. Load your image and then render it at the size you require.
  15. Replies
    21
    Views
    24,162

    Re: How to load PNG image?

    You have set the reference to WIA under Controls. You actually need to look at the menu at the top of VB6 and click Project\References... and set it there. Undo the reference in controls.
  16. Replies
    3
    Views
    987

    Re: Decimal Places

    I think the problem is colwidth as LONG. Try colwidth as Single instead.
  17. Replies
    3
    Views
    1,877

    Get Audio Type: Get Image Type

    Here are a couple of routines for finding the Audio and Image type. I don't claim they are exhaustive as they were written for my needs. I hope someone finds them useful.


    Private Function...
  18. Replies
    11
    Views
    1,696

    Re: Error Accessing system registry

    The only time I ever saw the "Method of object failed" error was when having the CodeHelp addin start with VB. I personally found CodeHelp a bit flaky and stopped using it. No more error!
  19. Replies
    43
    Views
    11,313

    Re: [RESOLVED] picturebox upsidedown-gradient

    @ The Trick. This seems to be very fast with little code. Could you please show me how to do a vertical gradient of just 26 pixels x scalewidth between &HD98468 & &H700000. Many thanks.
  20. Replies
    8
    Views
    2,203

    Re: Need help with scrollbars please

    Indeed so, I run my IDE manifested.
  21. Replies
    8
    Views
    2,203

    Re: Need help with scrollbars please

    I thought I remembered this. So I put a scrollbar on a form and right clicked it;
  22. Replies
    3
    Views
    985

    Re: Drag form with image on top

    Private Const HTCAPTION As Long = 2
    Private Const WM_NCLBUTTONDOWN As Long = &HA1

    Private Declare Function ReleaseCapture Lib "user32" () As Long
    Private...
  23. Replies
    33
    Views
    17,320

    Re: VB6 cGdiPlusCache.cls revisited

    Private Function GetImageType(sFileName As String) As String
    Dim bBuf(20) As Byte, FF As Integer

    GetImageType = "UNKNOWN"

    FF = FreeFile
    Open sFileName For Binary...
  24. Re: OpenThemeData For Getting Background Color Of Context Menu Item ? (uxtheme.dll)

    I don't know if it might help but that colour is &HF7C991.
  25. Replies
    5
    Views
    4,455

    Re: looking for vb6idemousewheeladdin

    Here you go. Put the dll in the windows folder as it is more reliable. For me syswow64 often leaves me with no mousewheel.
  26. Replies
    7
    Views
    1,574

    Re: CopyMemory ByVal\ByRef confusion

    Hi Jaafar, I can't answer your question directly but I can point you to a much more efficient way of converting a pointer to a VB String.


    Option Explicit

    Private Declare Function...
  27. Replies
    7
    Views
    1,409

    Re: VBRichClient Image sizing

    Both of you have come up trumps! With CAIRO_FILTER_BEST I can't see the difference either.

    So in order to rid myself of the GDI+ module;

    1) How to get the original image dimension?
    2) How to...
  28. Replies
    7
    Views
    1,409

    Re: VBRichClient Image sizing

    Very many thanks Olaf. I have compared the RC6 method against the GDI+ and feel the latter is slightly better at this size (300 x 300). Could you have a look?

    Indeed I invite anyone who sees this...
  29. Replies
    7
    Views
    1,409

    VBRichClient Image sizing

    Like a lot of others I am trying out RC6. The FSO replacement is amazing and it would really help to know if I can;

    Load an image file.
    Resize said image at very high quality whilst maintaining...
  30. Replies
    40
    Views
    5,874

    Re: Drawing on the screen

    Just to make sure, you did remove the form from the project before creating the exe from the bas module?
  31. Re: VB6: listbox run-time error 380

    Option Explicit

    Private Sub Form_Load()
    Dim J As Long
    For J = 1 To 4
    List1.AddItem Choose(J, "A", "B", "C", "D")
    Next
    End Sub

    Private Sub List1_Click()
  32. Replies
    40
    Views
    5,874

    Re: Drawing on the screen

    Ok I've tried with the new version and the first thing I noticed was the Yellow square was hiding behind the IDE. You could just see the thinnest Yellow line. Moving the IDE down and removing the...
  33. Replies
    40
    Views
    5,874

    Re: Drawing on the screen

    Sam, in the IDE the squares remain visible until I dismiss the msgbox. Is that not true for you?
  34. Replies
    40
    Views
    5,874

    Re: Drawing on the screen

    I just took your posted code and put it into a module. It worked exactly as outlined above. Why don't you explain what it does on Win7 so we can compare. I run my VB6 SP6 with no compatibility...
  35. Replies
    40
    Views
    5,874

    Re: Drawing on the screen

    Works fine for me in the latest 21H1 build. In the IDE the squares disappear when End is reached. Compiled the squares stay visible until I right click the desktop and select Refresh.
  36. Replies
    18
    Views
    5,034

    Re: Very Nice,Transparent user control by vb6

    You didn't include any of the test images in the zip file.
  37. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    Done! Many thanks.
  38. Re: vb6 Fast ReadFile, ReadLine,QuickSplit(Like streamReader.ReadLine)

    @SearchingDataOnly You didn't prepend VBA to the split in slurp-n-spit thus it was using Merri's fastest split.

    Are we convinced about the data integrity of Xiaoyao's method?
  39. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    Thanks Olaf I was worried that with all the noise being caused by xiaoyao you might not see my post.

    On my system your split comes in at approx 2mS slower than strings.bas (IDE or compiled) but is...
  40. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    I noticed that you were not using the fastest of Merri's splits. The one I use 'Strings2.bas can be found here https://www.vbforums.com/showthread.php?540323-VB6-Faster-Split-amp-Join-(development)...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width