User Profile
Collapse
-
It's fixed, turned out to be a Form property Form.StartPosit ion, had to be set to manual. -
Positioning a Form on DataGridView_MouseMoue()
I am creating a fixed size, windows form to be used as a tooltip, because I needs to control 'Opacity', that a regular tooltip does not allow. The issue I am having is that the form does correctly appear near my mouse pointer when hovering over the grid, but occasionally I see it flash very briefly outside the grid client area. It mostly happens when I first start the hover action. The flash is the result of the form momentarily appearing in the... -
How to display a tooltip with transparent background.
// The below code simply creates a black rectangular area for the tooltip
// Did I need to do any pinvike stuff to make the background tranparent.
// What am I really tring to acheive is Opacity of say 10% for the tooltip, so I can see the data on the grid the tooltip is covering.
Code:private void hoverTooltip_Draw(object sender, DrawToolTipEventArgs e) { SolidBrush sb = new SolidBrush(Color.Transparent);
Last edited by Curtis Rutland; Aug 6 '10, 07:01 PM. Reason: Please use [CODE][/CODE] tags when posting code -
sanjayamladi replied to Adding a custom string as a bitmap (or simply text) alongwith the mouse pointerin C SharpThanks Gary for a quick response. The resulting bitmap comes very close to what I was looking for. I do have some flicker, but I would be able to fix that.
Tlhintoq: Based on your verbose replies, I can easily believe you spend 70 hours a week ;-)Leave a comment:
-
sanjayamladi replied to Adding a custom string as a bitmap (or simply text) alongwith the mouse pointerin C SharpFirst off I did not claim that code I posted was mine. I wanted to simply let everyone know what makes my cursor get replaced by the custom cursor. Also, I am not sure why you are assuming that I have not spent sufficient time experimenting. Thanks for wasting my time with your verbose any utterly useless reply. The 'spirit' of this forum is to contribute ONLY when you have something useful to contribute, not just because you have spare time.Leave a comment:
-
sanjayamladi replied to Adding a custom string as a bitmap (or simply text) alongwith the mouse pointerin C SharpI am not aware of a way to do that. I am wondering if I need to only display a custom string at the pointer location without really doing anything with the cursor at all! Thanks for your responseLeave a comment:
-
sanjayamladi started a topic Adding a custom string as a bitmap (or simply text) alongwith the mouse pointerin C SharpAdding a custom string as a bitmap (or simply text) alongwith the mouse pointer
During a drag and drop operation involving two DataGridViews, as source and targets, I need to display a custom string (either as a bitmap or simply text) ALONGSIDE (or at) the mouse pointer. I know how to replace the default cursor with a custom text, but this replace the pointer. I need to show both the pointer as well as the text (Similar to the cursor in Windows explorer when you drag n drop a file: you will notice theres a file name in addition...
No activity results to display
Show More
Leave a comment: