It has been a while since I've done any C++ and I can't remember what a map file is. Could you remind us? Perhaps it is called something different in C# but the description of what it is and does will help jog the memory.
I have a problem i was hoping someone could help me.
I have a windows form and based on a menu selection i'll display a specific user control uc1 that has various information on it (like a calender with appts on it) when i press down on the mouse I want to present another user control uc2 (this is a custom drawn via gdi+) at a specific location. I set the uc2.Location as to where I want uc2 to appear. This is where my problem occurs. Wherever i press the mouse on uc1 it uc2 always appears at a location just above and left of the mouse based on the location where i press the mouse on uc1. also note when i press the mouse down uc2 initially briefy appears where i want it but than moves/appears just above and left of the mouse. I also dispose of uc2 when the mouseup event fires.
i also use the mousedown event to move uc2. this works fine (but with the location problem) and uc2 moves fine but starts from the location just above and left of the mouse not where i had set the position via uc2.Location.
note i also use uc2.visible=true and uc2.BringToFront()
i'm quite bored with a problem I can't solve.
I'm doing a program which imitates the mouse, and I need that when I do "click" (double click or whatever) in another application, although the latter is actived now, I want my window to still keep the keyboard input to can handle it.
I have try with SetFocus() and GetFocus() from Windows API but I can't make it works.
If you could help me,it would be great;)
As an addendum to turbochimp's example, please reference my response[^] to your post in the ASP.NET forum. In the future, please don't cross-post to multiple forums. At least give people a couple of days to answer the first post before reposting to another forum.
I have windows forms application,but what I have to do is I have to generate a license key in a sql server database when anybody wants to install my application.Also i have to limit no of installations per domain.The way to generate the license is, wherever application is installed, a KEY is generated with that computers CPU number. My problem is i do not know how to start coding for solving this.if any body knows please tell me the approach how to start this.Please send me any sample programs.Its an urgent requiremet..?
Last Visit: 31-Dec-99 19:00 Last Update: 7-Feb-23 1:08