Click here to Skip to main content
16,007,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Sorting Pin
Rey99993-Jul-06 2:11
Rey99993-Jul-06 2:11 
QuestionComparing two Objects Pin
alien viper2-Jul-06 23:48
alien viper2-Jul-06 23:48 
AnswerRe: Comparing two Objects Pin
Rey99993-Jul-06 2:08
Rey99993-Jul-06 2:08 
AnswerRe: Comparing two Objects Pin
Dave Kreskowiak3-Jul-06 2:53
mveDave Kreskowiak3-Jul-06 2:53 
Questionif treviewnode's name is blank after rename how to detact Pin
mini87802-Jul-06 23:37
mini87802-Jul-06 23:37 
AnswerRe: if treviewnode's name is blank after rename how to detact Pin
Dave Kreskowiak3-Jul-06 2:50
mveDave Kreskowiak3-Jul-06 2:50 
GeneralRe: if treviewnode's name is blank after rename how to detact Pin
mini87804-Jul-06 1:23
mini87804-Jul-06 1:23 
QuestionGUI Thread Problem Pin
sujanakar2-Jul-06 23:30
sujanakar2-Jul-06 23:30 
AnswerRe: GUI Thread Problem Pin
Dave Kreskowiak3-Jul-06 2:45
mveDave Kreskowiak3-Jul-06 2:45 
Questiondatagridview columns order Pin
Rey99992-Jul-06 23:20
Rey99992-Jul-06 23:20 
AnswerRe: datagridview columns order Pin
Keith Malwitz6-Jul-06 19:08
Keith Malwitz6-Jul-06 19:08 
QuestionHelp: how to change form caption section's contextmenu Pin
jgyie22-Jul-06 22:25
jgyie22-Jul-06 22:25 
AnswerRe: Help: how to change form caption section's contextmenu Pin
Dave Kreskowiak3-Jul-06 2:41
mveDave Kreskowiak3-Jul-06 2:41 
GeneralThanks, yet my form is mdichild - not work using GetSystemMenu to modify the system menu Pin
jgyie23-Jul-06 6:10
jgyie23-Jul-06 6:10 
GeneralThe code Pin
jgyie23-Jul-06 6:35
jgyie23-Jul-06 6:35 
GeneralRe: Thanks, yet my form is mdichild - not work using GetSystemMenu to modify the system menu Pin
Dave Kreskowiak3-Jul-06 6:40
mveDave Kreskowiak3-Jul-06 6:40 
With all the new deatils, this question now has absolutely nothing to do with your original post. I'll refer you to the top post in all the programming forums for an explanation...

You can't change the behavior of that little X. Period. End of story.

No matter what, you're MDIChild form is going to get a FormClosing event. Sooooo, just handle that event, call Me.Hide or whatever you want the form to do, then set the Cancel property of the FormCloseEventArgs to True to cancel closing the form.

Now, you've introduced a problem. When you go to close your application, the child forms will force your app to stay open! Your parent form has to expose a flag to signal these child forms that the the application is closing. Your little Closing event handlers in the child forms must check this flag to see if they really should close and not hide themselves!


Dave Kreskowiak
Microsoft MVP - Visual Basic

Questionneed help...... [modified] Pin
d24k104d2-Jul-06 22:03
d24k104d2-Jul-06 22:03 
AnswerRe: need help...... Pin
soodmonu2-Jul-06 22:43
soodmonu2-Jul-06 22:43 
GeneralRe: need help...... Pin
d24k104d3-Jul-06 22:51
d24k104d3-Jul-06 22:51 
QuestionBoosTrapper [modified] Pin
Socheat.Net2-Jul-06 22:00
Socheat.Net2-Jul-06 22:00 
AnswerRe: BoosTrapper Pin
Dave Kreskowiak3-Jul-06 2:25
mveDave Kreskowiak3-Jul-06 2:25 
GeneralRe: BoosTrapper Pin
Socheat.Net3-Jul-06 21:06
Socheat.Net3-Jul-06 21:06 
GeneralRe: BoosTrapper Pin
Dave Kreskowiak4-Jul-06 7:27
mveDave Kreskowiak4-Jul-06 7:27 
GeneralRe: BoosTrapper Pin
Mekong River6-Jul-06 15:11
Mekong River6-Jul-06 15:11 
GeneralRe: BoosTrapper Pin
Dave Kreskowiak6-Jul-06 16:30
mveDave Kreskowiak6-Jul-06 16:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.