Switching Panels using Visible =true & Visible=false;

  • Thread starter Thread starter Kristof Taveirne
  • Start date Start date
K

Kristof Taveirne

Hi,

I'm developing an application on PDA using WindowsCE.
In my application I have several tabs at the bottom of my screen.
However, in one of the tabs I've placed 2 radiobutton, used to switch
between between 2 panels on that same tab. (I don't use nested tabs,
because I noticed they always show at the bottom, which is unlogic in
my application).

The first Panel is a custom Panel in where I override the paint method
to paint a curve.
The second Panel is dat datagrid which shows a detailed list of the
points shown in the curve on the first Panel.

The 2 radiobutton are there to switch between those different views.

to switch i use the following code.

curvePanel.Visible = false;
dataPanel.Visible = true;

or the other way around.

Problem is that when the dataPanel.Visible is set to true, the
application hangs big time.

Is there somebody who knows why this happens, and what I can do about
it?
I've been trying to fix this for over 3 days now, no luck yet.

Greetins,
Kristof.
 
I recomend to ask guys on compactframework group

Kristof Taveirne said:
Hi,

I'm developing an application on PDA using WindowsCE.
In my application I have several tabs at the bottom of my screen.
However, in one of the tabs I've placed 2 radiobutton, used to switch
between between 2 panels on that same tab. (I don't use nested tabs,
because I noticed they always show at the bottom, which is unlogic in
my application).

The first Panel is a custom Panel in where I override the paint method
to paint a curve.
The second Panel is dat datagrid which shows a detailed list of the
points shown in the curve on the first Panel.

The 2 radiobutton are there to switch between those different views.

to switch i use the following code.

curvePanel.Visible = false;
dataPanel.Visible = true;

or the other way around.

Problem is that when the dataPanel.Visible is set to true, the
application hangs big time.

Is there somebody who knows why this happens, and what I can do about
it?
I've been trying to fix this for over 3 days now, no luck yet.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hi,

Can you post some code?

I do use this technique in a couple of forms and I have never had any
problem with it.

My guess is that the grid is being binded at than moment. why I have no
idea, I would have to see the code,.
 

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

Back
Top