i tried to click on radio button of other process:

this is my code:
Dim hh As IntPtr = Process.GetProcessesByName("MyProcess")(0).MainWindowHandle
Dim TheSelectionBox As IntPtr = FindWindowEx(hh, 0, "Options:", "Button")
ClickOnOption(TheSelectionBox, 2)
i have the “Options” box handle,
now i want to click on radio button in the “Options” box.
how can i click on the radio button?
The two radio buttons are in fact
BUTTONcontrols. They are children of the containing group window. So you need to enumerate those children, by callingEnumChildWindowsto find the appropriate button. Then you can send that button theBM_CLICKmessage to simulation pressing it.By the way,
FindWindowEx(hh, 0, "Options:", "Button")won’t find your window. You are asking it to match a window with class nameOptions:and titleButton. I’m confident that call toFindWindowExwill return zero. Personally I’d callEnumChildWindowson the top level window and stop when you find a window with title"Option 2". And so avoid having to useFindWindowExat all.