any method prevent the window close when user click the "little cross" button at the right top corner of the window.
in other word, would i can to get the window close message invoke by the "little cross" button? so, i can re-route the message to prevent window close.
I would like to remind you that your users will expect to be able to close their windows this way. It seems to me to be a big violation of good GUI principles to proceed this way. I would suggest that it would be far better to disable (probably difficult) or not show the close box. In this way, your users won't be confused with the lack of function.
I'm having some problems getting the values of some unmanaged enumerations.
For example, calling NetServerEnum returns me a int value of 234 in C#, but I'm not sure which one of the possible enumeration value it is(ie. ERROR_MORE_DATA, or ERROR_NO_BROWSER_SERVERS_FOUND, etc.)
can anyone point me to the direction when I can get the values of any unmanaged enumerations?
There is nothing called as a C# API.
You will be using the .net framework classes from whatever .net language(C#,vb.net,j#...) you are working on.
For image processing there are some good articles here in CP written by Christian. Check out the below articles, GDI+ Articles[^]
I have a number of mdiChildren that are added to a parent. When these children are minimized i want them to Hide. To regain access to these mdiChildren, you have to access them via statusbar. The problem i'm having is unhiding the children. I restore using the panelOnClick and minimized using ReSize.
Before I was having a problem where everytime I went to Show or Visible = true; it would crash the program. I found out you need to add Focus to it before doing this and it will become visible. However, when I do it like that. Altho it shows, I can never really get Focus of it, I think. Basically it stays a light blue color instead of that darkblue when you have mainFocus on it. I've tried everything from Hide....Show...Visible true/false. Refresh...update u name it. No matter what I do it always stay that light blue color. I still can do my normal function on it. but when Maximized it no longer becomes the title of the parent. I just don't understand whats going on. Any help here?
Under the System.Diagnostic namespace you will find a class called Process which contains a static method called Start which takes a file name as a parameter and your args as a second parameter. Something like this should do the trick:
Process.Start(@"c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat",
@"regasm.exe /unregister [path to your file] /silent");
That was about the shortest meaningful use I could think of. A delegate is an object that wraps a method. You can then pass this object around and use it later to call the method. There are lots of other more advanced uses, like invoking them asynchronously, but that's a start.