Search results for query: *

  • Users: Mugsy
  • Order by date
  1. M

    Question Panel scrollbar resets to top after setting position value.

    I've written a program that displays a form inside a panel/window. When I automatically set the VerticalScroll.Value, the contents moves, but the scrollbar resets to the top. This screws things up the next time it's set. Is there a way to fix this? (PS: Just updated to VS v17.7.0 so I don't...
  2. M

    Question Help. Can't assign an array of images to an ImageList.

    See original question, Lines 10-13 of the sample code. Using ".Add" (and ".AddRange") both resulted in syntax errors (underlined in red.) I've since changed my code trying to assign a sorted array of images to ImageList2: For intCnt = 1 To intTotalNumberOfFiles ' Load image...
  3. M

    Question Help. Can't assign an array of images to an ImageList.

    Let's assume for a moment that I'm not an idiot and already tried that.
  4. M

    Question Help. Can't assign an array of images to an ImageList.

    Your code may work for you as a stand-alone program, but it does not integrate into what I have (using dotnet 4.8.1). I do not know what "conflicts" could be the source of the errors I encounter with your code. The issue stems from having to rewrite my own code to use your method, and that's no...
  5. M

    Question Help. Can't assign an array of images to an ImageList.

    You never answered my question on how to implement "<DllImport(..." (your code does not work), so I suppose we are done here.
  6. M

    Question Help. Can't assign an array of images to an ImageList.

    My apologies, but I have since made significant changes to the code, so that particular error is gone so I can't reproduce it. At the time, that particular bit of code was not underlined in red (or else the program never would have run & given me a runtime error.) After making changes, I'm...
  7. M

    Question Help. Can't assign an array of images to an ImageList.

    (Sorry for the late reply. Death in the family.) I always have difficulty implementing "<DllImport(..." statements. They're always redlined when I include the code (added to a module in this case). I can't add/test the remaining code till I straighten that out. TIA.
  8. M

    Question Help. Can't assign an array of images to an ImageList.

    Thx. I'll give this a try this afternoon (busy day.) The error (as noted in my question) was a simple "assignment error". No more detail given in the runtime error message.
  9. M

    Question Help. Can't assign an array of images to an ImageList.

    I'm trying to sort images before assigning them to an ImageList object. Using a "For... Each" loop, I can assign images one at a time as they are read directly from the computer. The problem is, this method reads the files alphabetically, so it reads "image09.png", "image10.png"...
  10. M

    Resolved Help. Timer on form not working. Can't figure out why.

    My apologies. My question was eventually answered on another site and I forgot to close my post over here. The animation looks nice & more professional, but more than that, if you don't use multiple threads, even just displaying the filenames doesn't work as the form does not update when it is...
  11. M

    Resolved Help. Timer on form not working. Can't figure out why.

    I'm not sure what your question is but the problem has been resolved. I had to create a custom copy dialog b/c the built-in Copy function that includes the animated Windows progress indicator stops & prompts to "overwrite" every duplicate file b/c there is no "overwrite" switch using this...
  12. M

    Resolved Help. Timer on form not working. Can't figure out why.

    Thx for the reply. Here is my Copy code: For Each myFile In Directory.GetFiles(strPath & "Save", "Data*.*") Try My.Computer.FileSystem.CopyFile(myFile, strBackupPath & My.Computer.FileSystem.GetName(myFile), True) ' Must trim path from source file otherwise...
  13. M

    Resolved Help. Timer on form not working. Can't figure out why.

    I needed to create a Copy Dialog from scratch. It will (I hope) show the file/folder being copied with a Copy Animation (similar to the default UIDialog.) I created a form and put a PictureBox & Timer on it. I set the Timer default to Enabled and Interval to 150. Code was added (below) to the...
  14. M

    Question overwrite while using "UIOption.AllDialogs" when copying?

    I have a program that checks for a Backup folder when it starts, and if not found, prompts for you to create one. The copy process can take a long time, so I use the standard Windows copy dialog to show your progress: My.Computer.FileSystem.CopyDirectory(strSrcPath...
  15. M

    Question Quick Question: Object to display a form in a scrolling window?

    Awesome. I found a working example in the online .Net docs here: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-create-mdi-child-forms?view=netframeworkdesktop-4.8
  16. M

    Question Quick Question: Object to display a form in a scrolling window?

    Is there a VB.Net object that lets you display a form in a scrollable window? TIA
Back
Top