Click here to Skip to main content
15,918,706 members
Home / Discussions / C#
   

C#

 
AnswerRe: Finding specific coordinates in MS Word using C# Pin
led mike18-Jan-07 8:01
led mike18-Jan-07 8:01 
GeneralRe: Finding specific coordinates in MS Word using C# Pin
dspyank18-Jan-07 9:05
dspyank18-Jan-07 9:05 
Questionpanel control issue Pin
Saira Tanwir18-Jan-07 4:53
Saira Tanwir18-Jan-07 4:53 
AnswerRe: panel control issue Pin
led mike18-Jan-07 4:58
led mike18-Jan-07 4:58 
GeneralRe: panel control issue Pin
Saira Tanwir18-Jan-07 5:04
Saira Tanwir18-Jan-07 5:04 
AnswerRe: panel control issue Pin
Luc Pattyn18-Jan-07 5:08
sitebuilderLuc Pattyn18-Jan-07 5:08 
GeneralRe: panel control issue Pin
Saira Tanwir18-Jan-07 5:13
Saira Tanwir18-Jan-07 5:13 
GeneralRe: panel control issue Pin
Luc Pattyn18-Jan-07 5:27
sitebuilderLuc Pattyn18-Jan-07 5:27 
to add controls to a panel, you program it like this:

Label lbl=new Label();
myPanel.Controls.Add(lbl);

if you are using Visual Studio Designer, just have a look at the code
it generates for you, and you will find such statements in a method
called "InitializeComponent" it generated for you

you are not supposed to edit this method, since that could confuse (maybe crash?) the
designer afterwards.

Adding a new control to a panel with Designer is automatic: if you click inside the panel
to indicate where and how large the new control is going to be, it is automatically added
to the panel, not to the form.

But copying with Designer, I don't know how to specify where it belongs. Just dragging
is NOT sufficient. You can get it right by trial and error, keep looking at the Property
pane, for the Location property, it is always relative to the parent, so if, while dragging
your new control suddenly has much smaller x,y values then it has been adopted by the
panel !

Smile | :)




Luc Pattyn

GeneralRe: panel control issue Pin
Saira Tanwir18-Jan-07 5:30
Saira Tanwir18-Jan-07 5:30 
QuestionHow to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
jayart18-Jan-07 4:47
jayart18-Jan-07 4:47 
AnswerRe: How to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
led mike18-Jan-07 4:54
led mike18-Jan-07 4:54 
GeneralRe: How to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
jayart18-Jan-07 23:08
jayart18-Jan-07 23:08 
QuestionZipping Pin
Civic0618-Jan-07 4:10
Civic0618-Jan-07 4:10 
AnswerRe: Zipping Pin
Ed.Poore18-Jan-07 5:39
Ed.Poore18-Jan-07 5:39 
GeneralRe: Zipping Pin
Civic0618-Jan-07 7:08
Civic0618-Jan-07 7:08 
GeneralRe: Zipping Pin
Luc Pattyn18-Jan-07 7:35
sitebuilderLuc Pattyn18-Jan-07 7:35 
GeneralRe: Zipping Pin
Ed.Poore18-Jan-07 10:35
Ed.Poore18-Jan-07 10:35 
QuestionRestoring a window Pin
triff18-Jan-07 3:42
triff18-Jan-07 3:42 
AnswerRe: Restoring a window Pin
Luc Pattyn18-Jan-07 4:55
sitebuilderLuc Pattyn18-Jan-07 4:55 
AnswerRe: Restoring a window Pin
led mike18-Jan-07 5:02
led mike18-Jan-07 5:02 
AnswerRe: Restoring a window Pin
S. Senthil Kumar18-Jan-07 5:22
S. Senthil Kumar18-Jan-07 5:22 
GeneralRe: Restoring a window Pin
Luc Pattyn18-Jan-07 5:35
sitebuilderLuc Pattyn18-Jan-07 5:35 
GeneralRe: Restoring a window Pin
ltcstyle26-Jan-07 3:31
ltcstyle26-Jan-07 3:31 
GeneralRe: Restoring a window Pin
Luc Pattyn26-Jan-07 5:12
sitebuilderLuc Pattyn26-Jan-07 5:12 
GeneralRe: Restoring a window Pin
ltcstyle26-Jan-07 5:46
ltcstyle26-Jan-07 5:46 

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.