Re: MDI Form

2010-07-06 Thread Eddie de Bear
Hi, it's been a while since I've played with MDI forms, but from my
experience the concept of focus is a little strange with MDI parent/child.

The GotFocus even on an MDI parent fires when the child window gets focus.
Despite this, the MDI parent itself never actually has focus, it's the child
windows that have focus..

You can see this behavior really easily by adding 2 child forms to an MDI
container with different debug messages in each of the GotFocus events. The
child forms will never fire the GotFocus event but the parent form will fire
the GotFocus event every time the active child form changes..

Hope this helps a little..

Ed.


On Wed, Jul 7, 2010 at 2:01 PM, Arjang Assadi wrote:

> Here is an ugly hack:
> In the Activated event of the child mdi form , set the focus back to
> the mdi parent.
>
> On 7 July 2010 13:27, Anthony  wrote:
> > Doesn’t work..no matter what i do..the mdi child form gets the
> focus..really
> > weird.
> >
> >
> >
> >
> >
> > From: ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com]
> > On Behalf Of Greg Keogh
> > Sent: Wednesday, 7 July 2010 11:03 AM
> > To: 'ozDotNet'
> > Subject: RE: MDI Form
> >
> >
> >
> > Hi Anthony, I find that setting the Focus() in Load doesn’t work because
> > it’s too early, so I usually do it in the first Activate event. I often
> have
> > code like this:
> >
> >
> >
> > If (++activateCount == 1)
> >
> > {
> >
> > Thing.Focus();
> >
> > // Other stuff for the first time everything is visible
> > }
> >
> >
> >
> > You may have to set the focus to a specific control, not the whole form.
> I
> > haven’t tried any of this with MDI though.
> >
> >
> >
> > Greg
>



-- 
Eddie de Bear
Mob: 0417066315
Messenger: eddie_deb...@hotmail.com
Skype: eddiedebear


Re: MDI Form

2010-07-06 Thread Arjang Assadi
Here is an ugly hack:
In the Activated event of the child mdi form , set the focus back to
the mdi parent.

On 7 July 2010 13:27, Anthony  wrote:
> Doesn’t work..no matter what i do..the mdi child form gets the focus..really
> weird.
>
>
>
>
>
> From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
> On Behalf Of Greg Keogh
> Sent: Wednesday, 7 July 2010 11:03 AM
> To: 'ozDotNet'
> Subject: RE: MDI Form
>
>
>
> Hi Anthony, I find that setting the Focus() in Load doesn’t work because
> it’s too early, so I usually do it in the first Activate event. I often have
> code like this:
>
>
>
> If (++activateCount == 1)
>
> {
>
>     Thing.Focus();
>
>     // Other stuff for the first time everything is visible
> }
>
>
>
> You may have to set the focus to a specific control, not the whole form. I
> haven’t tried any of this with MDI though.
>
>
>
> Greg


RE: MDI Form

2010-07-06 Thread Anthony
Doesn't work..no matter what i do..the mdi child form gets the focus..really
weird.

 

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Keogh
Sent: Wednesday, 7 July 2010 11:03 AM
To: 'ozDotNet'
Subject: RE: MDI Form

 

Hi Anthony, I find that setting the Focus() in Load doesn't work because
it's too early, so I usually do it in the first Activate event. I often have
code like this:

 

If (++activateCount == 1)

{

Thing.Focus();

// Other stuff for the first time everything is visible
}

 

You may have to set the focus to a specific control, not the whole form. I
haven't tried any of this with MDI though.

 

Greg



RE: MDI Form

2010-07-06 Thread Greg Keogh
Hi Anthony, I find that setting the Focus() in Load doesn't work because
it's too early, so I usually do it in the first Activate event. I often have
code like this:

 

If (++activateCount == 1)

{

Thing.Focus();

// Other stuff for the first time everything is visible
}

 

You may have to set the focus to a specific control, not the whole form. I
haven't tried any of this with MDI though.

 

Greg



Re: USA Based Web Hosting provider required

2010-07-06 Thread Grant Maw
We use MAximum ASP. They are excellent.

On 7 July 2010 09:42, PhilB  wrote:

>  Can anybody recommend a good USA hosting provider that is reliable and
> not too expensive?
> Must have a good bandwidth Internet connection.
>
> TIA Phil.
>
> Phil Best
> Strategy Map Balanced Scorecard System Architect
>
>


Re: USA Based Web Hosting provider required

2010-07-06 Thread Craig van Nieuwkerk
I use www.netrackservers.com for a dedicated server for my web site
baseestate.com and have had no problems.

Craig.

On Wed, Jul 7, 2010 at 9:42 AM, PhilB  wrote:
> Can anybody recommend a good USA hosting provider that is reliable and not
> too expensive?
> Must have a good bandwidth Internet connection.
>
> TIA Phil.
>
> Phil Best
> Strategy Map Balanced Scorecard System Architect
>


Re: USA Based Web Hosting provider required

2010-07-06 Thread Girish Madan
I have used www.ixwebhosting.com for last few years and they are quite good.

Girish


On Wed, Jul 7, 2010 at 9:42 AM, PhilB  wrote:

>  Can anybody recommend a good USA hosting provider that is reliable and
> not too expensive?
> Must have a good bandwidth Internet connection.
>
> TIA Phil.
>
> Phil Best
> Strategy Map Balanced Scorecard System Architect
>
>


USA Based Web Hosting provider required

2010-07-06 Thread PhilB
Can anybody recommend a good USA hosting provider that is reliable and not
too expensive?
Must have a good bandwidth Internet connection.
 
TIA Phil.
 
Phil Best
Strategy Map Balanced Scorecard System Architect
 


MDI Form

2010-07-06 Thread Anthony
I have mdi form application.  When the application loads..it opens the first
mdi child and automatically sets it as the  focus.  How do i set the focus
to the main form instead of the child mdi that has just opened.

 

 

Sub Form_Load()

   

Open MDI Child...

Me.Focus()..doesn't work

End Sub

 

 

 

  Is your website being
IntelliXperienced?
regards
Anthony (*12QWERNB*)

Is your website being IntelliXperienced?

 

 



Re: UI Automation Testing Software for Win Forms

2010-07-06 Thread Peter Gfader
*Hi*

Microsoft Test Manager is part of Visual Studio 2010 Ultimate

Comparison of different editions can be found here
http://www.microsoft.com/visualstudio/en-us/products


.peter.gfader.
http://blog.gfader.com/
 http://twitter.com/peitor


On Tue, Jul 6, 2010 at 1:46 AM, Anthony  wrote:

>  Is this software created  by Microsoft ..i have found Test Manager by a
> company called Ekobit?
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Peter Gfader
> *Sent:* Tuesday, 6 July 2010 1:37 AM
>
> *To:* ozDotNet
> *Subject:* Re: UI Automation Testing Software for Win Forms
>
>
>
> I had very good experience on using MS Test Manager for automating Windows
> Forms Applications in conjunction with generating Coded UI tests:
>
> + The code that the MTM produces is nice to read
>
> + The code is easy to change, because of readability
> + Small UI changes -> no need to change the test
>
>  + button name change no problem
>
>  + tab order change depends from test code
>
>  + window size no problem generally
>
>  -  form is refactored into two means, test re-record and generate
> (which is easy, once you're used to)
>
>
> - Slow execution of the tests (in comparison to unit tests) because of the
> nature of UI tests
>
> - Setup of application can be a bit painful...
>
>
>
> .peter.gfader.
>
> http://blog.gfader.com/
>
> http://twitter.com/peitor
>
>
>
> On Mon, Jul 5, 2010 at 2:44 AM, Alan Heywood  wrote:
>
>
>
> On 2 July 2010 21:43, ste...@malikoff.com  wrote:
>
> >>The thought of having third party software clicking all over a winforms
> app gives me the creeps.
>
> Why should it?  IMO it's a good thing. The idea is to try and break the
> code before your customers do.
> A few years back I put AutoMate (
> http://www.networkautomation.com/automate/7/) to a lot of use running
> tests on my winforms code (clinical applications). At the time I also had to
> build stuff in CA Visual Objects which only had an IDE and no command line
> compiler. I had the AutoMate scripts drive the compiler and produce builds,
> and check the text on the status line for compilation results. This saved a
> lot of time and made it more conducive to running a build more often.
>
> I can appreciate that in a scenario where it is not possible to directly
> simulate the user interface in code, you might want have a test harness
> actually use the UI.  The downside is that the coupling between your testing
> code and the user interface is brittle.  What happens if the window size
> changes, a button is renamed/moved, tab order changes, one form is
> refactored into two?  In each case the test harness will break and you need
> to adjust it to cope with the changed UI.
>
>
>
> I acknowledge that some of the same problems are present when you simulate
> your UI directly in code, and the UI changes.  However you will know about
> it sooner via a compiler error.  All your testing code benefits from strong
> typing and refactoring support in the IDE.
>
>
>
> That really helps shake bugs out of your software. Unit tests are great too
> but there is definitely a place for these sorts of external UI-exercisers.
>
>
>
> Fair point, I can see the value in having some external UI-exerciser used
> in conjunction with unit tests.  I would limit the use however to basic
> scenarios such as "Is the form showing without error" and leave the
> complicated scenarios to unit tests and code, unless I had plenty of
> manpower to keep the scripts up to date.
>
>
>
>
>