Thanks Nader, My Problem has resolved. I was not using HorizontalExtent. Now i realize this is important property. So very very thanks. Now I have a samll question too. What is the easiest way to give a shortcut key to a Button in C#. Like Ctrl+S or F6 etc. Thanks...
Hello Handle the KeyUp event in all possible control that would receive this combination. you can point them all to one event handler BTW. Then in that event handler check for the combination. If true call MyToolStripButton.PerformClick() method, or use a common method to do the job.
Regards:rose:
Your best bet to to find a support board or forum that specializes in the component you're talking about. This is such a specific application, it's very unlikely you'll get ahold of anyone with experience with this component.
Dave Kreskowiak Microsoft MVP - Visual Basic
Not sure where this acdb17.dll is coming from, but the EntryPoint is looking really strange. In most cases you can simply p/invoke functions from Win32 DLLs by just declaring the static method with the same name as the function in the DLL. The EntryPoint attribute is only neccessary if you want to (or have to) name you function differently. So I'd suggest trying:
[DllImport("acdb17.dll")]
extern static private IntPtr acdbGetPreviewBitmap(string filename);
Does it work then?
Regards, mav -- Black holes are the places where god divided by 0...
Yes i checked it again. First i have made a usercontrol, then i make a panel on it, then i put all the controls on that. But these all controls (Complete user control), i am adding at runtime on a Autocad Pallate. Problem still exist? Thanks,