How to add an about form?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wand to add an about form to my main form and it should be accessed the old
style via the popup menu when clicking on the main form caption bar.
It’s easy to create the about Form, but I do not know how to add a link to
it on the main Form caption popup menu.

How do I do that?
 
Hi,

I have never see that style, clicking in the caption bar brings you the
default win menu, nothing more. I think that the only way of doing this is
creating your our type , override WndProc and respond to the event as you
want.

I dont know the exact event that you look for tough.

Cheers,
 
http://www.developerfusion.com/show/4655/

-sb

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

I have never see that style, clicking in the caption bar brings you the
default win menu, nothing more. I think that the only way of doing this is
creating your our type , override WndProc and respond to the event as you
want.

I dont know the exact event that you look for tough.

Cheers,
 
It’s working nicely.
But I thought that it will much more straight forward.
How come the .NET does not have a solution for? Why should we do DllImport
for Windows native API calls?

Nevertheless, it’s working.
Thanks
 
See my notes inline:

Sharon said:
It's working nicely.
But I thought that it will much more straight forward.
How come the .NET does not have a solution for?

It does have a solution, DllImport ;) Seriously, since most applications
don't modify a form's system menu, it was probably left out because it was a
low priority item (at least for versions 1.0/1.1). As the framework
matures, I'd expect to see less use of DllImport. However, there is no way
that MS can afford the time to convert every single API call to a .NET
equivalent...hence the reason why we have DllImport.
Why should we do DllImport for Windows native API calls?

This is merely because C# is not C...and C# needs a way to talk to C code in
a safe and controlled manner.

-sb
 
Back
Top