Search results for query: *

  • Users: srelu
  • Order by date
  1. S

    Question Calling the API function FileTimeToSystemTime

    I'm used to relay on Win32 functions. As long as I'm in VC calling such a function is piece of cake. I was unaware about the Date.FromFileTime(filetime) function. That method solves the whole problem efficiently. Interresting your technique to combine two UIntegers. Just to mention, you solve...
  2. S

    Question Calling the API function FileTimeToSystemTime

    Thank you for your suggesstion, it was really helpful, you found one of the bugs. You just teached me something valuable. There are more differences between VB and VC than I imagined. ByRef and ByVal aren't just type casts. They really change the parameter passed to the method. I had two...
  3. S

    Question Calling the API function FileTimeToSystemTime

    I'm a VC programmer, ocasionally I try to get familiar with VB.NET, but frankly each time I quit being disapointed by its limitations. But that's not the point. Somebody asked me for help to write the VB.NET code to list the browsing history. First I wrote it in VC, it works nice. Now I managed...
  4. S

    Changing Background Pictures

    1. Add a module named Module1 to your project. 2. Declare a public bitmap in the module: Public bmp as Bitmap 3. In the startup form, in the Load event handler, put the following line: Module1.bmp = Image.FromFile("C:\01.jpg") 4. In the same startup form, in the Disposed event...
  5. S

    Drag and Drop animation

    The cursor can grow indeed. I'm grateful. Thanks you !
  6. S

    Drag and Drop animation

    I don't think it's that way. I'm not sure you can create a cursor that big. (But if it's possible, explain me how and I will be grateful.) Experiment: select a grop of files and drag them quckly, (and erratically) over the screen. You will notice a small delay between the movement of the cursor...
  7. S

    Drag and Drop animation

    Sorry for the quality of the attached image that's all I was able to achieve with my camera. (Print screen was out of question because it hides the cursor.) There are two open windows in the picture. In the left side is the Internet Explorer, in the right side is a Windows Explorer window. You...
  8. S

    Explorer Like Folder View Help

    To have icons associated with the treeview control items you need an ImageList object. -Drag an ImageList control from the toolbox onto your form. -Select your treeview control, look in the properties for "ImageList" and set that property to the name of your image list control (by default it's...
  9. S

    Need an inner loop to keep going while an outer loop loops

    Good ideas. Let me try one more. Create a separate thread for each server.
  10. S

    Colored cursor

    This piece of code is REALLY NICE. I didn't know about the GetIcon method of the bitmap object. Great ideas are always simple ones.
  11. S

    Drag and Drop animation

    JohnH, thanks for your suggestions I appreciate your attention, but the question wasn't about the drag and drop cursor, it was about the transparent image of the files moving together with the cursor. The rest of the code including cursor handling is already written and works fine. It's...
  12. S

    Button events

    Declare Function GetKeyState Lib "user32.dll" (ByVal vk As Integer) As Integer Private Sub Button1_Event(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles Button1.MouseDown, Button1.MouseUp If e.Button = Windows.Forms.MouseButtons.Left Then If GetKeyState(1)...
  13. S

    Colored cursor

    http://www.codeproject.com/bitmap/ColorCursorFromBmp.asp I didn't try it so I can't confirm if it will work or not. BTW, the SetPixel is a dumb way to creare the masks (and very slow), check the comments, there is one with a code using instead monochrome bitmaps.
  14. S

    Drag and Drop animation

    I tried unsuccessfully to figure out how can be achieved the following behaviour of the Windows Explorer: When you drag a file/directory (one or more), a transparent image showing the icons and and their names moves together with the cursor. My question is how this behaviour can be achieved in...
Back
Top