Required Form is hidden under Main Form

emperor

New Member
My app has a few modules, each modules has its own form, all can be called from main form.
The problem is: when I run a module, it flash and is hidden under main form. I used form.show method. But the modules's form is hidden under main form. Is there anyway to bring to front the form?
 

mjcoon

Well-Known Member
Licensed User
My app has a few modules, each modules has its own form, all can be called from main form.
The problem is: when I run a module, it flash and is hidden under main form. I used form.show method. But the modules's form is hidden under main form. Is there anyway to bring to front the form?

There should be no need to do anything explicit.

Do you run under IDE to check that somehow the code is putting the main form back in front of the secondary one after the form.show?

(I suppose if you are un-registered as your entry implies then you must be running under IDE!)

Mike.
 

mjcoon

Well-Known Member
Licensed User
I'm not running in IDE. I am running the application on the embedded winCE device.

That is strange because I thought the absence of the marker against your post indicated that you do not have a licence. However that is Erel's concern, not mine. I was merely interested in where you were executing.

Do you get the same problem on PC IDE? That is the only way to follow execution closely. It is not easy to debug on device and since you have not attached your code we cannot advise closely.

Do you have any form.show for the main form other than in App_Start? Do both the main and secondary forms show up in a task or process list on device? (Assuming that you have given them distinct names!)

Mike.
 

taximania

Well-Known Member
Licensed User
Longtime User
That is strange because I thought the absence of the marker against your post indicated that you do not have a licence. However that is Erel's concern, not mine. I was merely interested in where you were executing.

The only limitation of unlicensed users is use of 'Compile exe' in the PC IDE.
And the availability of additional libraries.

As regards the OP, have you got Form1.Show in a loop somewhere ?
 

mjcoon

Well-Known Member
Licensed User
Or am I missing your point :sign0152:

I can't tell! :)

Sometimes program behaviour is different depending whether under IDE or PC vs device, so I was trying to deduce where/which.

No licence = must be under IDE, PC or device...

Mike.
 

taximania

Well-Known Member
Licensed User
Longtime User
Do you run under IDE to check that somehow the code is putting the main form back in front of the secondary one after the form.show

I misread this this post, well, only half read it. :sign0013:

I run nearly all my programs from Device/PC IDE.
Very rarely do I compile for device :)
 
Top