|
Hi,
I'm experimenting with C# to remotely interact with another app. In particular I want to send a WM_MOUSEDOWN event at a specific location in the remote apps window. Can anyone help with the syntax of Win32.PostMessage ? (What is IntPtr?)
Thanks
|
|
|
|
|
|
I have made an image viewer, and I would like to right click on an image, an the choose open with "MyImageViewer.exe" It also works - I browse the computer, and finde "MyImageViewer.exe", and click OK. But when I next time right click on an image, the "MyImageViewer.exe" is in the default open with list, byt only the icon is shown, not the program name. Why?
|
|
|
|
|
hi!
plz i need some codes in image proceeing property for comparison between
2 pictures 4 authorship difference carefuly...................
& thank u for every thing...
helpppppppppppppppppppppppppp me!!!!!!!!
|
|
|
|
|
Suppose I am having a particular text in either MSWord or in a RichTextBox. If I select a particular part of the text, I would like to identify all the words given in italics in that particular fragment and convert it into Regular Text and also give them within <i> and </i> tags. Could u pls tell me how it is possible?
|
|
|
|
|
How to identify that a given exe is manage code also if the given exe is manage then how to find its version.
Regards,
Shiby
|
|
|
|
|
|
|
I wrote a server that listens a port, when a client connects to my port, can I get clients IP? clients just connects to my port, they just send ascii data. how can i retrieve their IP..
Thanks..
|
|
|
|
|
|
Ok but, remoteEndPoint gives me where to connect,
The Problem is;
There is a Server which is justs listens a port, and a unknown client connects to port. Server wants to detect its IP, How this Could be possible?
Thank you very much for your interest!!
Alper
|
|
|
|
|
Your server would surely have some sort of an Accept() method that returns a Socket? You just use that Socket's RemoteEndPoint property
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Got it!
Thank u indeed!
Best Regards.
Alper
|
|
|
|
|
Hi,
My requirement is like I have to create control at run time by reading Control definition from XML file.
I have achived to read control from XML file create it dynamically.
Problem is I have to define hundreds of controls, is there any tool avalable to convert Controls(like textbox, button, ComboBox,..etc) in to xml file.
I mean to say properties of Control should be the attributes of a Control element in XML file.
Please help me in this regard ASAP.
Thanks
Zaheer
Zaheer
|
|
|
|
|
Why dont you create serializable versions of the controls you need and simply push them through an XMLSerializer?
Cheers
Sid
|
|
|
|
|
Thanks for your reply.
But its not Possible to XMLSerialize a Control(TextBox).
How to Do that. Do you have code to do that.
Thanks
|
|
|
|
|
|
Hi!
First- sorry for the stupid subject... I just could't find something, that covers my question in a few simple words
I'm writing a little application, where I want to be noticed, when the mouse leaves my window.
Because the window has no border, is non-rectangular (drawn vie GDI+) and nearly completly covered with controls (only a little circle right in the middle can be seen), I am not sure what is the best way of achieving this.
First, I could just look at the mouseMove event and check everytime if it left the region of my window...
I don't like that one much...
My second thought was to put something (an invisible control) on top of all controls- but this something has to let through all interactions with the other controls.
What is the best way to do this?
Second problem, perhaps it can be done with in the same way as the first- I need a hotspot on a button (again, shaped via GDI+), that fires an event if the mouse enters a sub-area of the button.
Can someone help me?
Thanks
Dirk
|
|
|
|
|
The second question is easy to solve. Handle mouse move and just do a check whether or not the cursor is in the subregion.
The first problem is kind of akward but there are serveral way of solving it. Probably the best way for you is to set up a timer and do frequent checks to see if the Cursor.Position is inside the region. Second is to use a globalhook and every time the mouse moves anywhere on the screen you check (not recommended, native code solution).
Alex Korchemniy
|
|
|
|
|
Hello!
How can I write shell extensions with C#? (more specifically: context menu items in explorer)
I'm looking for a nice tutorial like Michael Dunn's excellent article for MFC/C++[^], but using C#. I want to do some real shell programming, not just registry hacks[^]...
Thanks in advance and best regards
|
|
|
|
|
It depends which parts of the shell you want to extend, icon handlers and overlays are fairly simple while context menu extensions are rather more tricky. It all requires a reasonable amount of com and win32api interop and some fairly defensive programming to prevent errors reaching and crashing the shell if they occur. Some things like property sheets really aren't possible in fully managed code though that may change when the 2.0 CLR is released.
|
|
|
|
|
I use a panel draw images using graphics.DrawImage(image,x,y,imagewidth,imageheight). This method is called in a foreach loop so that i can fill the panel with different images.Each time panel is refreshed the entire loop executed so that more flickering on the panel.Is there any way to paint a region of a control?
please help!
|
|
|
|
|
For a simpler fix consider using double buffering. In the contorl ctor or somewhere else add this:
SetStyle(ControlStyles.DoubleBuffer, true);
A few other options there that you can mess with.
Alex Korchemniy
|
|
|
|
|
i 've used it, but itdoesn't make any big difference
thanx for ur reply
|
|
|
|
|
Although I'm not exactly sure what you are tyring to do... you can try using your own buffer by using an Image .
Alex Korchemniy
|
|
|
|