|
thanks! don't really know what you mean with global keyboard hook ... do you have any kind of link or tutorial where could read myself into that topic?
thanks again!
ck
|
|
|
|
|
|
You don't need global hook for hotkeys. You can do it using a little bit of P/Invoke and your application will be notified whenever the hotkey is pressed. See here: Hotkeys[^]
|
|
|
|
|
Sorry, not familiar with that method, definitely going to check it out.
|
|
|
|
|
This article[^] is good for global keys and mouse hooks.
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
You don't need global hook for hotkeys. You can do it using a little bit of P/Invoke and your application will be notified whenever the hotkey is pressed. See here: Hotkeys[^]
|
|
|
|
|
You don't need global hooks for hotkeys. Here is a working application written in c# that provides hotkeys: Hotkeys[^]
|
|
|
|
|
Thanks for all the answers!
Putting hotkeys into place works now more or less. But I still didn't manage to maximize only a certain program (out of the tray). It's always like "maximize all" or "minimize all". Any ideas?
ck
|
|
|
|
|
The article I linked to in previous post shows how to maximize and minimize any window.
|
|
|
|
|
Wow you seem to've summoned a univotor.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
If you can't use the help I offered, don't vote down my posts, just say so.
|
|
|
|
|
I didn't vote down your post. I'm still reading through the article. Why would I vote somebody down who wants to help me?
|
|
|
|
|
Well, at first someone voted 5 to all the replies and then changed to 1.
|
|
|
|
|
Well, that wasn't me. I don't need to lie here. If I would have voted it down I would say so.
|
|
|
|
|
Hi everyone!
I had a little argument with a colleague about namespaces. He is affirming, that one should use namespaces as less as possible.
In my opinion, namespaces not only exist for controlling "the scope of class and method names in larger programming projects" (MSDN quote), but also for somehow organizing my classes in order to have some functional grouping.
Now my question is: How do you use namespaces personally? Only one or two per project, or one for each little functional group? Is there any "best practice" you follow?
Thank you,
Phil
I won’t not use no double negatives.
|
|
|
|
|
Philip F. wrote: How do you use namespaces perso
Typically I create a namespace for each group of classes that are related in functionality (for example for entities or UI etc..) so yes, I do use quite a lot namespaces.
Philip F. wrote: one for each little functional group
This depends on the definition of little, but I wouldn't use namespace for a very small set of classes (like two or three) unless there's a very good reason. Typically in my projects we have 10-100 classes per namespace.
|
|
|
|
|
Philip F. wrote: He is affirming, that one should use namespaces as less as possible.
That's not true. Namespaces helps to organize the code. It is very useful in practice. If there was no namespace concept, programmers will run out of names for the methods and variables.
Philip F. wrote: How do you use namespaces personally?
I use namespaces extensively. Here[^] is a discussion of namespaces and folder structure which you may be interested.
|
|
|
|
|
Thanks for your answers!
Phil
I won’t not use no double negatives.
|
|
|
|
|
Hi, I am working in a destopk application and I wish known how to show a little information text when the mouse cursor moves over a picture. All as same way as it works in the Windows toolbar.
Thank you
|
|
|
|
|
Tooltip control is the easy way. It is kind of drag and drop.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
|
Each control should have a mousehover[^] event to which you can draw your own control to popup, or you can simply use tooltip[^] generic control to appear when a mouse hovers over a control.
Hope this helps.
|
|
|
|
|
Thank you, this is what I need.
|
|
|
|
|
No problem
|
|
|
|
|