| | |
A couple of queries
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 3
Reputation:
Solved Threads: 0
Hi,
I hope someone can help me with a few things that are holding me up now. Please feel free if you can answer just one query - any help is greatly appreciated !
1) Can I implement a dynamic tooltip when hovering over a dynamically created control? What is the best way to do this? Anyone seen any examples?
2) I have a number of dynamically created controls added to a panel control, each of which contains a radio button. When I click the dynamic control the radio button is checked. BUT, I want the act of clicking one instance to uncheck any others. Will I need to implement this in the class for the dynamic control, or in a foreach loop in the parent panel? Any ideas or examples?
3) How does one capture (for example) <Ctrl-A> when pressed within a control (above mentioned panel - to add a new dynamic control without going through my menu strip "Add" control).
4) The dynamic control mentioned above is a groupbox that contains a number of labels and the radio button. I have code for mouse click, mouse enter and mouse leave wired to these events, but I've found that I have to wire the event handler to each of the child controls in the groupbox. Is there any way I can code this so that mouse click, enter or leave anywhere in the parent groupbox can be wired just once (ie not for each of the child controls too)?
OK - last one for now
5) When one of the above mentioned dynamic strips is added to the panel, it's also added to the list of a "Delete" menu strip parent dynamically. But how can I detect when one of these dynamically allocated "Delete" items is clicked?
Please answer any one or more that you can manage. I'm not trying to get you to code it for me (far from it) but even pointers in the right direction would be really appreciated.
Thanks, Ken.
I hope someone can help me with a few things that are holding me up now. Please feel free if you can answer just one query - any help is greatly appreciated !
1) Can I implement a dynamic tooltip when hovering over a dynamically created control? What is the best way to do this? Anyone seen any examples?
2) I have a number of dynamically created controls added to a panel control, each of which contains a radio button. When I click the dynamic control the radio button is checked. BUT, I want the act of clicking one instance to uncheck any others. Will I need to implement this in the class for the dynamic control, or in a foreach loop in the parent panel? Any ideas or examples?
3) How does one capture (for example) <Ctrl-A> when pressed within a control (above mentioned panel - to add a new dynamic control without going through my menu strip "Add" control).
4) The dynamic control mentioned above is a groupbox that contains a number of labels and the radio button. I have code for mouse click, mouse enter and mouse leave wired to these events, but I've found that I have to wire the event handler to each of the child controls in the groupbox. Is there any way I can code this so that mouse click, enter or leave anywhere in the parent groupbox can be wired just once (ie not for each of the child controls too)?
OK - last one for now
5) When one of the above mentioned dynamic strips is added to the panel, it's also added to the list of a "Delete" menu strip parent dynamically. But how can I detect when one of these dynamically allocated "Delete" items is clicked?
Please answer any one or more that you can manage. I'm not trying to get you to code it for me (far from it) but even pointers in the right direction would be really appreciated.
Thanks, Ken.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
1. You could change the tooltip on mouse over, see http://msdn.microsoft.com/en-us/library/s894w4aa.aspx
2. do they not auto uncheck now? make sure their tab index is different.
3. set the shortcut key
4. you should be able to use the same code for all of them.
5. Use its clicked event
2. do they not auto uncheck now? make sure their tab index is different.
3. set the shortcut key
4. you should be able to use the same code for all of them.
5. Use its clicked event
Last edited by LizR; Dec 17th, 2008 at 5:59 pm.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Nov 2008
Posts: 44
Reputation:
Solved Threads: 4
2. You maybe need to set their group name to the same thing so they will au to un-check. Not sure thought 'cos I'm not have a computer with VS right now.
4,5 : Don't understand the question but I guess LizR should had it all explained.
4,5 : Don't understand the question but I guess LizR should had it all explained.
.Net Developer - 3D Game Designer
My Portfolio/Blog: http://www.hieu.co.uk
My Portfolio/Blog: http://www.hieu.co.uk
![]() |
Similar Threads
- The quick 'n' dirty ultra simple vBulletin SEO hack (Existing Scripts)
- Couple of queries... (Windows Software)
- Managed C++ and C++/CLI Queries (IT Professionals' Lounge)
- KSH Passing parameters that start with $ (Shell Scripting)
- How to connect queries from SQL Server 2005 to VB.Net Windows application (VB.NET)
- How to connect queries from SQL Server 2005 to VB.Net Windows application (MS SQL)
- Calling function every n seconds - Application not closing correctly (newbie!!) (C)
- securit issues fundamental - few queries - follow up (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Fast Bucket Sort
- Next Thread: File details in to List View using a file dialog box
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mono mouseclick mysql networking operator path photoshop php picturebox pixelinversion post prime programming radians regex remote remoting resourcefile richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






