dcsimg

Search:

Type: Posts; User: IliaPreston

Page 1 of 11 1 2 3 4

Search: Search took 0.30 seconds.

  1. Re: Runtime error when trying to resize a PNG picture

    Thanks a lot.

    I just used the Canscaleup parameter and it works excellently for me.
    Though, I am just curious about the conversion ratio.
    Am I correct in saying that tpicPNG.Height and ...
  2. Re: Runtime error when trying to resize a PNG picture

    Thanks for the help.
    There are two small issues left to resolve:


    1. There is a rare situation when the picture in question is very tiny (for example a logo or an icon).
    In that case, resizing...
  3. Re: Runtime error when trying to resize a PNG picture

    Any help on this issue would be greatly appreciated.

    What I want to do consists of two steps: (the first step is already done):


    Step 1: I have managed to resize a picture (contents of a Png...
  4. Re: Runtime error when trying to resize a PNG picture

    Thanks a lot for the response.
    You are probably right.
    But, I just can't believe why there is no way on earth to obtain the width and height of an image displayed in a picturebox.
    If there is an...
  5. Re: Runtime error when trying to resize a PNG picture

    Thanks.
    I implemented this approach and there are three issues in here:


    A. The function ScaleToDest in post#5 has an End Sub" in the end. It doesn't compile.
    But, I changed that to "End...
  6. Re: Runtime error when trying to resize a PNG picture

    Thanks for your help.
    Actually, I am trying to develop something similar to Windows Explorer, but one that is completely part and parcel of a VB application, so that the user can double-click on a...
  7. Re: Runtime error when trying to resize a PNG picture

    Wow!
    That worked!
    You are amazing LaVolpe.

    There is just one small problem left to resolve, and that is obviously my own fault that I didn't mention in the first post.
    In the first post I said...
  8. Runtime error when trying to resize a PNG picture

    Searching in this forum, I found a good piece of code to resize the image in a picturebox to fit the picturebox.
    That is the code in post #5 under this thread: ...
  9. How to reverse the application of a manifest to VB6

    The use of ucShellBrowse (http://www.vbforums.com/showthread.php?854147-VB6-ucShellBrowse-A-modern-replacement-for-Drive-FileList-w-extensive-features) required that I add a manifest to VB6.

    I...
  10. Re: How to adjust the height and width of an InkEdit Textbox to fit its contents

    Thanks for the response.
    No, I am not going to load some text from a file into the InkEdit. I am going to write the NAME of a file in that inkEdit
    So, the text will not be too long. I assume (but I...
  11. How to adjust the height and width of an InkEdit Textbox to fit its contents

    I have a multi line inkEdit textbox.
    When I display a text in it that is larger than its width, it breaks the text into two lines (or multiple lines) and displays it into two or more lines.

    This...
  12. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Thanks again for ucShellBrowse.
    With ucShellBrowse 6.2.1, Pre-release with temp mitigations, most of the issues have been resolved.
    However, a few small issues remain (The numbers below are new....
  13. Re: How can I display the thumbnail of a video file in a Picturebox?

    I did the above (I used Picture1.ScaleWidth and Picture1.ScaleHeight), and the problem is solved.
    The thumbnail is displayed with its width perfectly fitting the PictureBox's width.

    However a...
  14. Re: How can I display the thumbnail of a video file in a Picturebox?

    Thanks.
    I did all the above.
    I changed Picturebox's AutoRedraw to True.
    I changed its scalemode to Pixels.
    And changed the code as follows:

    VIDEO_FILE =...
  15. Re: How can I display the thumbnail of a video file in a Picturebox?

    I am also experimenting with Fafalone's code.
    I copied GetFileThumbnail from his post #7 and hBitmapToPictureBox from his post #16 (because the one in post #16 looks more complete).
    And I call them...
  16. Re: How can I display the thumbnail of a video file in a Picturebox?

    I have tried the solution provided by dilettante and it works perfectly for me. (Thanks dilettante)
    It takes 160 milliseconds on average to show the thumbnail of a video.

    I may also want to try...
  17. Re: How can I display the thumbnail of a video file in a Picturebox?

    Thanks again for this.
    I implemented your code with some few modifications (removing labels, putting the whole thing into one procedure, etc.), but the main logic is exactly the same:

    Private Sub...
  18. Re: How can I display the thumbnail of a video file in a Picturebox?

    Thanks.
    On this line:

    Private ImageFile As WIA.ImageFile
    it gives me an error: User defined type not defined.
    How can I fix it please?

    Also, if I have a Picturebox of fixed size, can I do...
  19. How can I display the thumbnail of a video file in a Picturebox?

    How can I display the thumbnail of a video file in a Picturebox?

    Is there an easy way of doing this?
    Please note that I don't need to save the thumbnail. I just need to display the thumbnail in a...
  20. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Issue #1 (that I mentioned in in post 64) is actually two different problems:

    A. The focus issue ()
    B. Unwanted navigation. User uses arrow keys (and no other keys) and this results in navigating...
  21. Re: Problem with setting focus to a combobox

    Edition: Windows 10 Home
    Version: 1809
    Installed on: 2018-12-21
    OS build: 17763.503
  22. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Another issue:

    5. If I set the ucShellBrowse1.ItemFilter to just one file name, then ucShellBrowse1 shows the file's icon, but not the thumbnail.

    Example:
    This code:

    Private Sub Form_Load()...
  23. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Thanks a lot for the new version.

    There are a number of bugs that I had not noticed earliaer (they probably existed in older versions, and they continue to exist in 6.1.0):

    1. I have added a...
  24. Problem with setting focus to a combobox

    A while back I added a manifest to VB6 so that I could use ucShellBrowse.
    Ever since then, the looks of some controls (such as textboxes, commandbuttons, etc.) have changed.
    They don't look very...
  25. Re: How to programmically open a file by an application

    Thanks for your help.
    I have tested your suggestions and both work for me.
    However, there are two little problems:

    1. I have coded my test for the first method as follows:

    Private Sub...
  26. How to programmically open a file by an application

    I need to programmically open a file by an application.
    Let's say the file's path is stored in a variable named My_File_Path.


    1. How can my program open a file by the application that is...
  27. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Hi.
    Let me first thank you for all this.
    Also, sorry I am getting back to you with a delay of a few days, because I have been busy with other things and didn't check this thread since Monday.
    ...
  28. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    Wow!!!
    Problem solved!
    This new resource file that you attached to post #28 decisively solved the problem.
    You are a genius.

    Here is more detailed info:
    1. I downloaded the new zip file...
  29. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    Sorry about the delay in responding (I am also working on other projects, so, I have been really busy)

    I did get that resource file without manifest, but I have not yet added it to my vbp project...
  30. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    I also have an idea, but not sure if it is a correct idea or not, and if it is correct, I don't know how to implement it:

    I am thinking, maybe I remove the file "resImagesStd.RES" from my vbp...
  31. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    Actually, I had attached a zip file containing my test project to the main thread...
  32. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    I just made a new executable.
    Then ran the new executable, received that error, and then looked into the Windows event viewer.
    Here is the result:
    https://i.imgur.com/5ceVbm1.jpg
  33. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    Hi Jon
    I just replied to your PM (I don't know why I hadn't seen it last night).
    As I explained in my response to your PM, the problem persists (please see my screen prints in my PM that I just...
  34. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    For me, it shows like this (in Notepad, Wordpad and Notepad++):
    https://i.imgur.com/sI6WROk.jpg
    https://i.imgur.com/T1Er3PV.jpg
    https://i.imgur.com/xbs7g4Y.jpg

    Also, when I open VB6.EXE in...
  35. Replies
    30
    Views
    1,262

    Re: VB6 compiler corrupting manifest?

    I just did the following to see if it made any difference:

    1. I closed my VB6 IDE. (It was open, so I closed it)
    2. Under my C drive (root folder), I created a new folder named...
  36. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Hi.
    I created the exe file (prjTest003.exe) directly from the vbp files that I included in the zip file).
    All that project that is the vbp file, the Form3.frm file and the resImagesStd.RES in the...
  37. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    There is also another problem with ucShellBrowse. This one is a real showstopper.
    As I keep testing ucShellBrowse, so far I have been testing it only in IDE.
    But now for the first time, I tried to...
  38. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    I am testing it in VB6 IDE. I have not cut an executable.

    I have a test vbp project. Everything that I am not sure about or every new thing that I want to test and understand, I test in this test...
  39. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Thanks a lot for the response.
    And thanks for this great control (ucShellBrowse). It is really a good one.

    Also, as I keep testing it, I found two other issues:

    1. Sometimes (not always) when...
  40. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Hi
    I just downloaded the new version 5.3 and am experimenting with it.
    Thanks for the new version.
    There are however, a few issues with this new version:

    1. The new property "SetFocusOnFile"...
Results 1 to 40 of 417
Page 1 of 11 1 2 3 4



Featured


Click Here to Expand Forum to Full Width