Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
Questioninput equation from text box Pin
Mehrdad from iran2-May-09 19:08
Mehrdad from iran2-May-09 19:08 
AnswerRe: input equation from text box Pin
Dave Kreskowiak2-May-09 19:28
mveDave Kreskowiak2-May-09 19:28 
AnswerRe: input equation from text box Pin
PIEBALDconsult3-May-09 5:34
mvePIEBALDconsult3-May-09 5:34 
QuestionMSDN C# Related...? Pin
jas0n232-May-09 17:34
jas0n232-May-09 17:34 
AnswerRe: MSDN C# Related...? Pin
Dave Kreskowiak2-May-09 19:29
mveDave Kreskowiak2-May-09 19:29 
AnswerRe: MSDN C# Related...? Pin
Member 10339073-May-09 10:46
Member 10339073-May-09 10:46 
QuestionDocument editor add-in Pin
Steve_2-May-09 14:33
Steve_2-May-09 14:33 
QuestionForms in a panel control? Pin
thompsons2-May-09 12:51
thompsons2-May-09 12:51 
I have a main form that has a panel control and the user can select which of
the two "child" forms to display in that panel control from a menu selection.

Depending on which form is displayed in the panel, the app will display data from a Tektronix TDS-2024B scope or other data from an external
DAQ (Data Acquisition module). The current code shows the forms without a problem. But if I switch between the two forms; data is no longer updated in
the textboxes when I run a data capture routine for one form or the other.

However, if I do not switch from one form display to the other after firing up
the app, data is updated correctly.

Example code for one of the form displays in the panel is:

private void ScopeCapture_Click(object sender, EventArgs e)
{
frmTDS2024BScopeCapture TDS = new frmTDS2024BScopeCapture();
TDS.MdiParent = this;
TDS.TopLevel = false;
TDS.Dock = DockStyle.Fill;

//Container
this.panel1.Controls.Clear();
this.panel1.Controls.Add(TDS);
TDS.Show();
currentTest = "TDS";
////TDS.tbFreq.Text = "4578223"; //test only
}

The code for the second form is identical, except for the form reference.

Could I be having a problem with the Z-order of the panel when switching from one form to the other?
Hope someone has run into this before and can shed some light on the issue. I tried not to clutter this post with too many details.
If further code is required, please advise.

Thanks in advance,
Steve.
P.S. I have Googled, searched forums, etc till I'm blue in this face with this one.
AnswerRe: Forms in a panel control? Pin
Henry Minute2-May-09 13:47
Henry Minute2-May-09 13:47 
GeneralRe: Forms in a panel control? Pin
thompsons2-May-09 16:06
thompsons2-May-09 16:06 
GeneralRe: Forms in a panel control? Pin
Henry Minute2-May-09 16:08
Henry Minute2-May-09 16:08 
QuestionInvalid rank specifier: expected ',' or ']' Pin
msheekhah2-May-09 12:34
msheekhah2-May-09 12:34 
RantRe: Invalid rank specifier: expected ',' or ']' Pin
fly9042-May-09 13:47
fly9042-May-09 13:47 
AnswerRe: Invalid rank specifier: expected ',' or ']' Pin
Henry Minute2-May-09 13:55
Henry Minute2-May-09 13:55 
RantRe: Invalid rank specifier: expected ',' or ']' Pin
Member 10339073-May-09 7:28
Member 10339073-May-09 7:28 
Questionhow to clear text from a listBox in C# VS2008 forms application Pin
msheekhah2-May-09 10:16
msheekhah2-May-09 10:16 
AnswerRe: how to clear text from a listBox in C# VS2008 forms application Pin
fly9042-May-09 10:29
fly9042-May-09 10:29 
AnswerRe: how to clear text from a listBox in C# VS2008 forms application Pin
Pete O'Hanlon2-May-09 10:34
mvePete O'Hanlon2-May-09 10:34 
GeneralRe: how to clear text from a listBox in C# VS2008 forms application Pin
jas0n232-May-09 17:36
jas0n232-May-09 17:36 
Question'WindowsFormsApplication4.character.character()' is inaccessible due to its protection level Pin
msheekhah2-May-09 9:53
msheekhah2-May-09 9:53 
AnswerRe: 'WindowsFormsApplication4.character.character()' is inaccessible due to its protection level Pin
Pete O'Hanlon2-May-09 10:03
mvePete O'Hanlon2-May-09 10:03 
Questionpublish encrypted C# application Pin
kelly_liu2-May-09 9:23
kelly_liu2-May-09 9:23 
AnswerRe: publish encrypted C# application Pin
SimpleData3-May-09 4:51
SimpleData3-May-09 4:51 
GeneralRe: publish encrypted C# application Pin
kelly_liu3-May-09 6:56
kelly_liu3-May-09 6:56 
GeneralRe: publish encrypted C# application Pin
SimpleData3-May-09 8:07
SimpleData3-May-09 8:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.