MessageBox replacement

J

Johan Johansson

I will in response to external events need to get rid of a yes/no
messagebox. I'm aware of the FindWindow/EndDialog solution, but I don't
like it as its limits my choices in terms of window titles. Instead I
opted for my own Form displayed using ShowDialog, which would let me
keep "a handle" to the dialog, but given that this was originally a
message box I don't want a full screen dialog. I then however need to
set BorderStyle to none. But then I don't get any border (duh)!

I'll try to explain that "dialogs are supposed to be full-screen anyway"
and so on, but if I don't get an OK for that, is there a reasonable way
to do what I want or am I stuck with the FindWindow/EndDialog solution?

Thanks,
Johan
 
S

Sergey Bogdanov

MessageBox has the class name "Dialog". You could use that class name in
FindWindow function instead of title of a dialog box.
 
J

Johan Johansson

Yeah, I know. As I said, I'm asking for any idea that does not involve
FindWindow.

Thanks,
Johan
 
J

Johan Johansson

Since nobody else will, I'll call myself an idiot. What I want to use is
of course the Notification API in the form of OpenNETCF.Win32.Notify.

Right?

Johan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top