Jump to content

C# Forms

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
xarzu

xarzu

    Newbie

  • Members
  • PipPip
  • 14 posts
I am new to C# and I am playing with my first bits of code.

I am building an application from scratch and looking at some
old code to model my new app.

The strange thing is this. I know that the old code must have
some controls inside its forms because I can see controls
referenced inside the code view of the forms.

But when I look at the form view it comes up blank

Posted Image

The only difference between the two programs is their arangement
in the Solution Explorer. Here is how they are aranged in the
old program
Posted Image
Notice how the .resx file is arranged in the tree structure.
This is how the files are arranged in the new program.
Posted Image

In the old sample code, I notice that there are Buttons, TextBoxes, and
GroupBoxes declared in the MainForm.Designer.cs file. So, why
can I not see this in the Form View?
:irritated:

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
When you hit F5 and build/run the program do you see the controls in the old code? The reason I ask is because I bet the controls are declared by code only and the designer was not used to create and position controls.