Results 1 to 10 of 10

Thread: [RESOLVED] An Image conversion problem

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Resolved [RESOLVED] An Image conversion problem

    I'm using a third party tooltip control called AI Control.dll and 2 questions about it.

    On every control, a ToolTip1 property is added in term of "Title", "Caption" and "Image". In code view "ToolTip1.SetToolTipImage" does exist.
    1) Does it mean if I change it from here, (to some sort of blue (i) information icon) it applies for every single control? Cause I want to do so.

    Selecting an image through its OpenFileDialog supports *.ico/*.png/*.jpg/*.gif/*.emf/*.wmf/*.bmp files. But I want to use system built in icons. I failed in data type conversion again I suppose.
    2) How can I forcefully feed system icons in it? Their larger sizes are better in case of conversion supports.

    What I tried:
    Code:
    ToolTip1.SetToolTipImage(SystemIcons.Information)
    and
    Code:
    ToolTip1.SetToolTipImage(SystemIcons.Information.ToBitmap)
    Same error:
    Argument not specified for parameter 'value' of 'Public Sub SetToolTipImage(obj As Object, value As System.Drawing.Image)'.
    Thanks.

    * Update:
    - There is another .GetToolTipImage method but no idea what it does. They didn't provide comments and descriptions. VS only hints with types which are obj for .SetToolTipImage() argument and ctrl for .GetToolTipImage argument.
    - I also failed to get MsgBox(ToolTip1.SetToolTipImage.GetType.ToString) to find out which type it requires.
    Last edited by pourkascheff; Mar 9th, 2023 at 08:28 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width