[OK] button vanishing in forms

G

Guest

Hi,

I'm working on a Pocket PC application in .Net CF.

For all the forms, I've set the MinimizeBox & MaximizeBox to FALSE, inorder
to show up th [ok] button alone.

But suddenly, in one from the [OK] button vanishes. I'm using ShowDialog to
bring up all my forms and hence no other way to get out of the form. It
happens rarely though.

Can someone help in figuring out this problem.

Thanks in advance.
Srinivas
 
G

Guest

This is windows ce right? Not pocketpc.

ShowDialog is really inconsistent and should be deprecated in my opinion.

You are really better off supplying your own ok button, or close button.
The fact that you say 'ok' button, makes me think it is a pocketpc app.

Have you checked out the formcache control from the northwind field service
sample application? The new one, not the original version.....

It prevents more than one form being open at a time and really speeds up the
reloading of a form!
 
S

Stelrad Doulton

ShowDialog is really inconsistent and should be deprecated in my opinion.

Can you expand???


Thanks


Michael Baltic said:
This is windows ce right? Not pocketpc.

ShowDialog is really inconsistent and should be deprecated in my opinion.

You are really better off supplying your own ok button, or close button.
The fact that you say 'ok' button, makes me think it is a pocketpc app.

Have you checked out the formcache control from the northwind field
service
sample application? The new one, not the original version.....

It prevents more than one form being open at a time and really speeds up
the
reloading of a form!

--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


srinivas said:
Hi,

I'm working on a Pocket PC application in .Net CF.

For all the forms, I've set the MinimizeBox & MaximizeBox to FALSE,
inorder
to show up th [ok] button alone.

But suddenly, in one from the [OK] button vanishes. I'm using ShowDialog
to
bring up all my forms and hence no other way to get out of the form. It
happens rarely though.

Can someone help in figuring out this problem.

Thanks in advance.
Srinivas
 
G

Guest

Thank you for your replies.

Michael, yes it's indeed a Pocket PC application. Thanks for referring to
the MS Northwind article.

But that didn't answer my question. I haven't checked it with the Pocket PC
Device yet. Currently working with the emulator.

And as Stelrad asked, why can't we use the ShowDialog? How does it make
difference.

Srinivas

Stelrad Doulton said:
ShowDialog is really inconsistent and should be deprecated in my opinion.

Can you expand???


Thanks


Michael Baltic said:
This is windows ce right? Not pocketpc.

ShowDialog is really inconsistent and should be deprecated in my opinion.

You are really better off supplying your own ok button, or close button.
The fact that you say 'ok' button, makes me think it is a pocketpc app.

Have you checked out the formcache control from the northwind field
service
sample application? The new one, not the original version.....

It prevents more than one form being open at a time and really speeds up
the
reloading of a form!

--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


srinivas said:
Hi,

I'm working on a Pocket PC application in .Net CF.

For all the forms, I've set the MinimizeBox & MaximizeBox to FALSE,
inorder
to show up th [ok] button alone.

But suddenly, in one from the [OK] button vanishes. I'm using ShowDialog
to
bring up all my forms and hence no other way to get out of the form. It
happens rarely though.

Can someone help in figuring out this problem.

Thanks in advance.
Srinivas
 
G

Guest

When you use show dialog, it changes the order and type of events that are
fired when you close or cancel the form showing. It also affects the
behaviour of the events associated with the forms close button.

A better solution is to always use show for a new form. You can hide the
parent form from the user so that they cant interact with it. Alternately,
you can leave the form visible and simple disable it.

If only one form is visible at a time. The user has no possible way of
opening multiple instances of your dialog. ShowDialog doesn't always lock
the parent form.....

Using events and delegates you can capture any data changes in the child
form on the parent.
--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


srinivas said:
Thank you for your replies.

Michael, yes it's indeed a Pocket PC application. Thanks for referring to
the MS Northwind article.

But that didn't answer my question. I haven't checked it with the Pocket PC
Device yet. Currently working with the emulator.

And as Stelrad asked, why can't we use the ShowDialog? How does it make
difference.

Srinivas

Stelrad Doulton said:
ShowDialog is really inconsistent and should be deprecated in my opinion.

Can you expand???


Thanks


Michael Baltic said:
This is windows ce right? Not pocketpc.

ShowDialog is really inconsistent and should be deprecated in my opinion.

You are really better off supplying your own ok button, or close button.
The fact that you say 'ok' button, makes me think it is a pocketpc app.

Have you checked out the formcache control from the northwind field
service
sample application? The new one, not the original version.....

It prevents more than one form being open at a time and really speeds up
the
reloading of a form!

--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


:

Hi,

I'm working on a Pocket PC application in .Net CF.

For all the forms, I've set the MinimizeBox & MaximizeBox to FALSE,
inorder
to show up th [ok] button alone.

But suddenly, in one from the [OK] button vanishes. I'm using ShowDialog
to
bring up all my forms and hence no other way to get out of the form. It
happens rarely though.

Can someone help in figuring out this problem.

Thanks in advance.
Srinivas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top