Click here to Skip to main content
15,911,306 members
Home / Discussions / Visual Basic
   

Visual Basic

 
SuggestionRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming16-Mar-15 7:42
mveRichard Deeming16-Mar-15 7:42 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika16-Mar-15 7:47
dilkonika16-Mar-15 7:47 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming16-Mar-15 7:51
mveRichard Deeming16-Mar-15 7:51 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika16-Mar-15 8:03
dilkonika16-Mar-15 8:03 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika17-Mar-15 9:08
dilkonika17-Mar-15 9:08 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming17-Mar-15 9:44
mveRichard Deeming17-Mar-15 9:44 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika17-Mar-15 11:12
dilkonika17-Mar-15 11:12 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming17-Mar-15 11:20
mveRichard Deeming17-Mar-15 11:20 
When you add the filter in the form's Load event, you prevent any further messages from being sent to the form. (As I said before, either InsideEvent is Nothing, or it's setting the parameter to True.)

That prevents the form from receiving the message telling it that it has been activated, which prevents it from raising the Shown event.

Adding a filter which prevents any window messages from being sent to your form is a very bad idea. You should not be surprised when it breaks things in interesting ways!



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika17-Mar-15 11:58
dilkonika17-Mar-15 11:58 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming18-Mar-15 2:49
mveRichard Deeming18-Mar-15 2:49 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
dilkonika18-Mar-15 13:13
dilkonika18-Mar-15 13:13 
GeneralRe: Suddenly the Form.Shown event doesn't fire anymore Pin
Richard Deeming19-Mar-15 3:40
mveRichard Deeming19-Mar-15 3:40 
QuestionASP ProcessRequest: (91) Object variable or With block variable not set Pin
murali_yaragalla12-Mar-15 23:24
murali_yaragalla12-Mar-15 23:24 
AnswerRe: ASP ProcessRequest: (91) Object variable or With block variable not set Pin
Richard MacCutchan12-Mar-15 23:55
mveRichard MacCutchan12-Mar-15 23:55 
QuestionRC interface with visual basic 6.0 Pin
Member 1151731011-Mar-15 10:27
Member 1151731011-Mar-15 10:27 
AnswerRe: RC interface with visual basic 6.0 Pin
ZurdoDev11-Mar-15 10:48
professionalZurdoDev11-Mar-15 10:48 
QuestionVBA Runtime Error 1004 “Application-defined or Object-defined error” Pin
ravi_bmsce10-Mar-15 19:55
ravi_bmsce10-Mar-15 19:55 
SuggestionRe: VBA Runtime Error 1004 “Application-defined or Object-defined error” Pin
ZurdoDev11-Mar-15 10:50
professionalZurdoDev11-Mar-15 10:50 
GeneralRe: VBA Runtime Error 1004 “Application-defined or Object-defined error” Pin
ravi_bmsce13-Mar-15 5:01
ravi_bmsce13-Mar-15 5:01 
QuestionWindows CE using Visual Studio 2013 Pin
Member 289206910-Mar-15 5:11
Member 289206910-Mar-15 5:11 
QuestionUNMATCHED DATAS Pin
tuticorinmano8-Mar-15 19:08
tuticorinmano8-Mar-15 19:08 
AnswerRe: UNMATCHED DATAS Pin
Wendelius8-Mar-15 19:18
mentorWendelius8-Mar-15 19:18 
QuestionGet Image from embedded resource Pin
gwittlock5-Mar-15 1:08
gwittlock5-Mar-15 1:08 
AnswerRe: Get Image from embedded resource Pin
iProgramIt8-Mar-15 15:04
professionaliProgramIt8-Mar-15 15:04 
GeneralRe: Get Image from embedded resource Pin
gwittlock9-Mar-15 0:16
gwittlock9-Mar-15 0:16 

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.