以 Windows 形式在鼠标悬停时显示图像?
问题描述:
我正在使用 Windows 窗体在 c# 中处理一个项目.我和我所在的小组希望当用户将鼠标悬停在图像(在我们的例子中是卡片)上时,该卡片的较大图像会出现在鼠标箭头旁边,这与工具的方式非常相似小费会起作用.我不认为你可以使用工具提示来做到这一点,我试过到处寻找,任何建议或示例都会非常感谢您
I am working on a project in c# using windows forms. me and the group I am in want to make it so that when the user hovers their mouse over an image, in our case a card, that a larger image of that card appears next to the mouse arrow, much in the same way a tool tip would work. I don't think you can use a tool tip to do this i have tried looking everywhere, any advice or examples would be great thank you very much
答
你可能想看看这个 代码项目文章
它向您展示了如何创建 OwnerDrawn 工具提示带有图像.
It shows you how to create an OwnerDrawn ToolTip with an Image.