What would cause all text boxes on a form to become disabled?
I have checked the enabled and readonly properties and they are set
correctly.
This did not start happening until I run it over my XP network.
Folders are set to share files.
This only happens on one form not on the other forms in the application.
Tabstop is also set to .t. on each text box.
The command buttons and other controls are enabled and work properly.
Thanks in advance,
John.

Re: Text boxes becoming disabled. by Cindy

Cindy
Sat Nov 29 19:07:33 CST 2003

In news: gR5yb.29731$Wy4.10416@newsread2.news.atl.earthlink.net,
John G <obs@earthlink.net> wrote:
> What would cause all text boxes on a form to become disabled?
> I have checked the enabled and readonly properties and they are set
> correctly.
> This did not start happening until I run it over my XP network.
> Folders are set to share files.
> This only happens on one form not on the other forms in the
> application. Tabstop is also set to .t. on each text box.
> The command buttons and other controls are enabled and work properly.

Hi John,

Do you mean that they are disabled in development mode or when you're
running your app? Can you set a breakpoint on MyForm.txtTextbox1.Enabled and
see where in the code this happens?

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com




Re: Text boxes becoming disabled. by Stefan

Stefan
Sun Nov 30 03:54:33 CST 2003

One reason could be that the control source is at EOF(),
e.g. because a Seek() failed.


hth
-Stefan

"John G" <obs@earthlink.net> schrieb im Newsbeitrag
news:gR5yb.29731$Wy4.10416@newsread2.news.atl.earthlink.net...
> What would cause all text boxes on a form to become disabled?
> I have checked the enabled and readonly properties and they are set
> correctly.
> This did not start happening until I run it over my XP network.
> Folders are set to share files.
> This only happens on one form not on the other forms in the application.
> Tabstop is also set to .t. on each text box.
> The command buttons and other controls are enabled and work properly.
> Thanks in advance,
> John.
>
>


Re: Text boxes becoming disabled. by John

John
Sun Nov 30 10:36:56 CST 2003

Hi Cindy,
They are disabled when I run the app. I have found that check boxes and
command buttons are enabled. Only text boxes are disabled. I do not
reference .enabled anywhere in the app. I cut/pasted the controls from one
form to another. Could this have anything to do with it?
Thanks,
John.

"Cindy Winegarden" <cindy.winegarden@mvps.org> wrote in message
news:uIp1l8ttDHA.2244@TK2MSFTNGP09.phx.gbl...
> In news: gR5yb.29731$Wy4.10416@newsread2.news.atl.earthlink.net,
> John G <obs@earthlink.net> wrote:
> > What would cause all text boxes on a form to become disabled?
> > I have checked the enabled and readonly properties and they are set
> > correctly.
> > This did not start happening until I run it over my XP network.
> > Folders are set to share files.
> > This only happens on one form not on the other forms in the
> > application. Tabstop is also set to .t. on each text box.
> > The command buttons and other controls are enabled and work properly.
>
> Hi John,
>
> Do you mean that they are disabled in development mode or when you're
> running your app? Can you set a breakpoint on MyForm.txtTextbox1.Enabled
and
> see where in the code this happens?
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy.winegarden@mvps.org www.cindywinegarden.com
>
>
>



Re: Text boxes becoming disabled. by John

John
Sun Nov 30 10:38:33 CST 2003

The data is in the text box. It is not at eof(). The form opens the DE and
displays the first record in the table. Can you think of anything else?
Thanks,
John.

"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:bqcf33$1vt1n0$3@ID-13445.news.uni-berlin.de...
> One reason could be that the control source is at EOF(),
> e.g. because a Seek() failed.
>
>
> hth
> -Stefan
>
> "John G" <obs@earthlink.net> schrieb im Newsbeitrag
> news:gR5yb.29731$Wy4.10416@newsread2.news.atl.earthlink.net...
> > What would cause all text boxes on a form to become disabled?
> > I have checked the enabled and readonly properties and they are set
> > correctly.
> > This did not start happening until I run it over my XP network.
> > Folders are set to share files.
> > This only happens on one form not on the other forms in the application.
> > Tabstop is also set to .t. on each text box.
> > The command buttons and other controls are enabled and work properly.
> > Thanks in advance,
> > John.
> >
> >
>



Re: Text boxes becoming disabled. by Cindy

Cindy
Sun Nov 30 11:13:14 CST 2003

In news: I0pyb.28255$Rk5.8705@newsread1.news.atl.earthlink.net,
John <oglethorpesupply@earthlink.net> wrote:
> They are disabled when I run the app. I have found that check boxes
> and command buttons are enabled. Only text boxes are disabled. I do
> not reference .enabled anywhere in the app. I cut/pasted the
> controls from one form to another. Could this have anything to do
> with it?

Hi John,

I tried to duplicate what you're seeing. When I tried going to EOF as Stefan
suggested the boxes were grayed out but Enabled was still .T. so if that's
you're problem then my idea of setting a breakpoint on Enabled (to catch why
the boxes are grayed out) won't work.
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com




Re: Text boxes becoming disabled. by John

John
Sun Nov 30 13:01:04 CST 2003

Hi Cindy,
Thanks for you help. I found that I had inadvertently put a nodefault in the
lost focus method of a text box. I removed the nodefault and everything is
back to normal.
John.



"Cindy Winegarden" <cindy.winegarden@mvps.org> wrote in message
news:eJriAV2tDHA.2432@TK2MSFTNGP10.phx.gbl...
> In news: I0pyb.28255$Rk5.8705@newsread1.news.atl.earthlink.net,
> John <oglethorpesupply@earthlink.net> wrote:
> > They are disabled when I run the app. I have found that check boxes
> > and command buttons are enabled. Only text boxes are disabled. I do
> > not reference .enabled anywhere in the app. I cut/pasted the
> > controls from one form to another. Could this have anything to do
> > with it?
>
> Hi John,
>
> I tried to duplicate what you're seeing. When I tried going to EOF as
Stefan
> suggested the boxes were grayed out but Enabled was still .T. so if that's
> you're problem then my idea of setting a breakpoint on Enabled (to catch
why
> the boxes are grayed out) won't work.
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy.winegarden@mvps.org www.cindywinegarden.com
>
>
>



Re: Text boxes becoming disabled. by Pablo

Pablo
Sun Nov 30 13:24:11 CST 2003

John,
Thank you for posting the solution. It is helpful to read a question thread
through to it's solution.
--
Peace!
Pablo Rivera, Apprentice Developer
Vision for Productivity

> Hi Cindy,
> Thanks for you help. I found that I had inadvertently put a nodefault in
the
> lost focus method of a text box. I removed the nodefault and everything
is
> back to normal.
> John.
>
>
>
> "Cindy Winegarden" wrote:
> > > They are disabled when I run the app. I have found that check boxes
> > > and command buttons are enabled. Only text boxes are disabled. I do
> > > not reference .enabled anywhere in the app. I cut/pasted the
> > > controls from one form to another. Could this have anything to do
> > > with it?
> >
> > Hi John,
> >
> > I tried to duplicate what you're seeing. When I tried going to EOF as
> Stefan
> > suggested the boxes were grayed out but Enabled was still .T. so if
that's
> > you're problem then my idea of setting a breakpoint on Enabled (to catch
> why
> > the boxes are grayed out) won't work.



Re: Text boxes becoming disabled. by Igor

Igor
Sun Nov 30 03:49:15 CST 2003

Hi, John!
You wrote on Sat, 29 Nov 2003 18:47:40 GMT:

JG> What would cause all text boxes on a form to become disabled?
JG> I have checked the enabled and readonly properties and they are set
JG> correctly.

If they are bound to some table, then moving record pointer to EOF (after
the last record) in this table will cause this.

[Sorry, skipped]


--
WBR, Igor



Re: Text boxes becoming disabled. by Paul

Paul
Sat Nov 29 17:53:31 CST 2003

I know it sounds obvious but could you be going to eof( )

"John G" <obs@earthlink.net> wrote in message
news:gR5yb.29731$Wy4.10416@newsread2.news.atl.earthlink.net...
> What would cause all text boxes on a form to become disabled?
> I have checked the enabled and readonly properties and they are set
> correctly.
> This did not start happening until I run it over my XP network.
> Folders are set to share files.
> This only happens on one form not on the other forms in the application.
> Tabstop is also set to .t. on each text box.
> The command buttons and other controls are enabled and work properly.
> Thanks in advance,
> John.
>
>