Skip to main content
Email Password   helpLost your password?

Introduction

Like many others I have been searching for a way to access the statusbar on a MDI parent form from a child in the simplest and least code intensive manner.

Again, like most others I have found that this appears to be like the Holy Grail .... someone knows but is not telling.

Well after wasting my time on searches and finding all kinds of advice on reflection, events etc I decided to do some coding - hacking in the old sense.

The following code works quite nicely, but has only been tested on an XP Pro system using VSNet2K3.

Steps to do

Assuming a status bar with 1 panel ....

Of course, you could do this via other more secure mechanisms (please do) - make the reference variable private with get/set functions, perhaps make it an array of panel references, but you get the basic idea now don't you.

Anything more pervasive would benefit from a more comprehensive and better design here's an excellent article (link) to guide you if you decide to go further down into the internals of inter window communications.


You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralThanks Pin
pintamono
8:02 29 Dec '08  
Generalthe simplest way to access the status bar of the mdi parent Pin
Salman Farooq
3:01 13 Mar '08  
GeneralRe: the simplest way to access the status bar of the mdi parent Pin
LimeyRedneck
9:10 15 Mar '08  
GeneralRe: the simplest way to access the status bar of the mdi parent Pin
Member 3978517
19:28 20 Mar '08  
Questionhow can we set MDI.Parent of relevant form as nothing Pin
mshariq
2:01 14 Nov '07  
AnswerRe: how can we set MDI.Parent of relevant form as nothing Pin
LimeyRedneck
14:52 28 Nov '07  
GeneralRe: how can we set MDI.Parent of relevant form as nothing Pin
mshariq
19:54 28 Nov '07  
GeneralWhat to do? Pin
tomek13m
3:24 14 May '07  
GeneralRe: What to do? Pin
LimeyRedneck
17:58 14 May '07  
GeneralThanks Pin
DrPete
23:39 23 Apr '07  
GeneralRe: Thanks Pin
LimeyRedneck
7:42 24 Apr '07  
GeneralSmartly Done Pin
davelalit
0:37 16 Sep '06  
GeneralWell done!!! Pin
Nikola Knezevic
0:33 18 Aug '06  
GeneralThank You much Pin
marek.pastorek
1:03 23 May '06  


Last Updated 30 Nov 2004 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009