以 Windows 形式在鼠标悬停时显示图像? [英] display image on mouseover in windows form?

查看:29
本文介绍了以 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.

这篇关于以 Windows 形式在鼠标悬停时显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆