Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
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 
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 
Good luck!


thompsons wrote:
I'm using a PXI chassis from National Instruments to capture data from several
voltage/current sources and as well as getting scope captures via a USB port from a Tektronix scope.


Please don't ask me anything about that part, way out of my depth!

thompsons wrote:
I don't see many comments on the Web or MicroSoft on how to show forms in a
panel control. Could be, I'm trying something that has potential problems
that are not documented anywhere


There are several examples of this here on CP, if you search the articles/messages. The only thing that strikes me about it is a matter of personal preference. I would set the FormBorderStyle property to None, but that's just my preference and has nothing to do with your problem. At the end of the day Form is a descendant of Control and therefore should act like any other control.

Here is a snippet from one of my apps:
private void btnForm_Click(object sender, EventArgs e)
{
    Form newForm = new Form();
    newForm.TopLevel = false;
    newForm.Parent = this;
    newForm.Visible = true;
    newForm.Location = new Point(10, 10);
    newForm.Size = new Size(this.ClientSize.Width - 20, this.ClientSize.Height - this.panel1.Height - 20);
    newForm.BackColor = Color.Bisque;
    newForm.FormBorderStyle = FormBorderStyle.None;
    newForm.Dock = DockStyle.Left;
    this.Controls.Add(newForm);
}

The only difference between yours and mine is that I add it directly to the parent form, you add it to a panel.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

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 
QuestionDivision result is always zero? Pin
Star092-May-09 8:28
Star092-May-09 8:28 
AnswerRe: Division result is always zero? Pin
Giorgi Dalakishvili2-May-09 9:00
mentorGiorgi Dalakishvili2-May-09 9:00 
QuestionRe: Division result is always zero? Pin
Star092-May-09 9:06
Star092-May-09 9:06 

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.