Click here to Skip to main content
15,896,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: BoosTrapper Pin
Mekong River6-Jul-06 16:55
Mekong River6-Jul-06 16:55 
GeneralRe: BoosTrapper Pin
Dave Kreskowiak6-Jul-06 18:23
mveDave Kreskowiak6-Jul-06 18:23 
GeneralRe: BoosTrapper Pin
Mekong River6-Jul-06 18:55
Mekong River6-Jul-06 18:55 
AnswerRe: BoosTrapper Pin
Mekong River6-Jul-06 15:10
Mekong River6-Jul-06 15:10 
QuestionCrystal Report Print Error in VB.NET- Logon Failed Pin
V Senthil2-Jul-06 21:36
V Senthil2-Jul-06 21:36 
Questionedit dataset Pin
viji]2-Jul-06 19:01
viji]2-Jul-06 19:01 
AnswerRe: edit dataset Pin
Dave Kreskowiak3-Jul-06 2:26
mveDave Kreskowiak3-Jul-06 2:26 
QuestionUploading binary file by using Inputsteam [modified] Pin
jibcht2-Jul-06 17:19
jibcht2-Jul-06 17:19 

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.