Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help simple string passing :( Pin
BambooMoon2-Nov-04 12:16
BambooMoon2-Nov-04 12:16 
GeneralRe: Help simple string passing :( Pin
tom_dx2-Nov-04 12:20
tom_dx2-Nov-04 12:20 
GeneralRe: Help simple string passing :( Pin
BambooMoon2-Nov-04 12:58
BambooMoon2-Nov-04 12:58 
GeneralRe: Help simple string passing :( Pin
BambooMoon3-Nov-04 6:26
BambooMoon3-Nov-04 6:26 
GeneralInstrumentation Pin
mathon2-Nov-04 8:28
mathon2-Nov-04 8:28 
GeneralRe: Instrumentation Pin
kayhustle2-Nov-04 9:19
kayhustle2-Nov-04 9:19 
GeneralRe: Instrumentation Pin
mathon2-Nov-04 10:02
mathon2-Nov-04 10:02 
GeneralRe: Instrumentation Pin
Dave Kreskowiak3-Nov-04 3:35
mveDave Kreskowiak3-Nov-04 3:35 
GeneralRe: Instrumentation Pin
mathon3-Nov-04 6:35
mathon3-Nov-04 6:35 
GeneralRe: Instrumentation Pin
Dave Kreskowiak3-Nov-04 11:40
mveDave Kreskowiak3-Nov-04 11:40 
GeneralMSDN UDP Sample does not run Pin
win32wiz2-Nov-04 7:49
win32wiz2-Nov-04 7:49 
GeneralRe: MSDN UDP Sample does not run Pin
Charlie Williams2-Nov-04 8:32
Charlie Williams2-Nov-04 8:32 
QuestionClearing device with alpha? Pin
Jaran Nilsen2-Nov-04 6:48
Jaran Nilsen2-Nov-04 6:48 
QuestionHowto Instantiate a class of unknown type? Pin
Member 14185452-Nov-04 6:37
Member 14185452-Nov-04 6:37 
AnswerRe: Howto Instantiate a class of unknown type? Pin
Nick Parker2-Nov-04 8:00
protectorNick Parker2-Nov-04 8:00 
GeneralLine Break Pin
goatstudio2-Nov-04 5:58
goatstudio2-Nov-04 5:58 
GeneralRe: Line Break Pin
kayhustle2-Nov-04 10:26
kayhustle2-Nov-04 10:26 
GeneralListView CheckBoxes Pin
mrlou882-Nov-04 5:42
mrlou882-Nov-04 5:42 
GeneralRe: ListView CheckBoxes Pin
mrlou882-Nov-04 6:09
mrlou882-Nov-04 6:09 
GeneralPanel doubt Pin
ee990352-Nov-04 5:32
ee990352-Nov-04 5:32 
Hi there!

I create a panel and finally I can put him in a Form \o/ (thanks Stefan Troschütz Wink | ;) )
But now I have a problem, I want to control the location of the panel in the main application. In order that I create two variables

public int locationX, locationY;

public int LocationX
{
get
{
return locationX;
}
set
{
locationX = value;
}
}

public int LocationY
{
get
{
return locationY;
}
set
{
locationY = value;
}
}

The problem is when I make the following instructions =/

panelClass panelCenas = new panelClass();
panelCenas.LocationX = 10;
panelCenas.LocationY = 50;
this.Controls.Add(panelCenas);

The program doesn´t execute the two instructions in the middle, I think that is because when I create a panel, it executes the initialize component and there isn´t any mention there to the Location of the panel

public panelClass()
{
InitializeComponent();
}

private void InitializeComponent()
{
this.BackColor = System.Drawing.SystemColors.ControlDark;
this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Size = new System.Drawing.Size(50, 50);
this.TabIndex = 0;
}

How can I control the Location of it!?!

Thanks very much, Sérgio
GeneralRe: Panel doubt Pin
Michael P Butler2-Nov-04 5:52
Michael P Butler2-Nov-04 5:52 
GeneralRe: Panel doubt Pin
ee990352-Nov-04 5:56
ee990352-Nov-04 5:56 
GeneralRe: Panel doubt Pin
ee990352-Nov-04 6:59
ee990352-Nov-04 6:59 
GeneralBuild a panel class Pin
ee990352-Nov-04 4:09
ee990352-Nov-04 4:09 
GeneralRe: Build a panel class Pin
Stefan Troschuetz2-Nov-04 4:24
Stefan Troschuetz2-Nov-04 4:24 

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.