Click here to Skip to main content
16,004,887 members
Home / Discussions / C#
   

C#

 
QuestionControl grouping on Windows form? Pin
Mutty29-Jul-05 4:26
Mutty29-Jul-05 4:26 
AnswerRe: Control grouping on Windows form? Pin
Luis Alonso Ramos29-Jul-05 7:31
Luis Alonso Ramos29-Jul-05 7:31 
GeneralRe: Control grouping on Windows form? Pin
Mutty29-Jul-05 10:22
Mutty29-Jul-05 10:22 
GeneralSystem.Diagnostics.ProcessStartInfo Pin
dhm00129-Jul-05 4:23
dhm00129-Jul-05 4:23 
GeneralRe: System.Diagnostics.ProcessStartInfo Pin
Dave Kreskowiak29-Jul-05 4:33
mveDave Kreskowiak29-Jul-05 4:33 
GeneralRe: System.Diagnostics.ProcessStartInfo Pin
dhm00129-Jul-05 4:48
dhm00129-Jul-05 4:48 
GeneralRe: System.Diagnostics.ProcessStartInfo Pin
Dave Kreskowiak1-Aug-05 6:17
mveDave Kreskowiak1-Aug-05 6:17 
Generalstyle sheet Pin
zapap29-Jul-05 4:07
zapap29-Jul-05 4:07 
I'd like to get and set the left property in a css in my code behind file.

Style sheet:
#lblLabel
{ top:100px;
width:100px;
}


Code behind file (c#)
protected override CreateChildControls()
{ // Add the opening html ...

// Add the Label
string sLeft = 0;
Label lblLabel = new Label();
lblLabel.ID = "lblLabel";
lblLabel.Text = "Hello";
lblLabel.Style["left"] = "100px"; <=========== works fine
sLeft = lblLabel.Style["left"]; <=========== doesn't work ???
Form.cantrols.Add(lblLabel);
}

If anyone can help me, I'd me very grateful.
Thx

There is someone in my head but it's not me - Pink Floyd
GeneralRe: style sheet Pin
Guffa29-Jul-05 4:26
Guffa29-Jul-05 4:26 
GeneralRe: style sheet Pin
zapap30-Jul-05 4:39
zapap30-Jul-05 4:39 
GeneralRe: style sheet Pin
Guffa30-Jul-05 7:17
Guffa30-Jul-05 7:17 
GeneralRe: style sheet Pin
zapap30-Jul-05 9:04
zapap30-Jul-05 9:04 
GeneralRe: style sheet Pin
Guffa30-Jul-05 10:26
Guffa30-Jul-05 10:26 
GeneralRe: style sheet Pin
zapap30-Jul-05 4:38
zapap30-Jul-05 4:38 
GeneralDataGrid Column Headers Pin
zaboboa29-Jul-05 3:26
zaboboa29-Jul-05 3:26 
GeneralRe: DataGrid Column Headers Pin
Alomgir Miah29-Jul-05 4:53
Alomgir Miah29-Jul-05 4:53 
GeneralRe: DataGrid Column Headers Pin
zaboboa29-Jul-05 5:22
zaboboa29-Jul-05 5:22 
GeneralRe: DataGrid Column Headers Pin
Alomgir Miah29-Jul-05 7:50
Alomgir Miah29-Jul-05 7:50 
GeneralRe: DataGrid Column Headers Pin
zaboboa29-Jul-05 8:51
zaboboa29-Jul-05 8:51 
GeneralAbout WebBrowser and save. Pin
Member 201242829-Jul-05 2:43
Member 201242829-Jul-05 2:43 
GeneralXmlTextReader does not convert &amp;-#-x-0-; (without the dashes) Pin
kafros29-Jul-05 2:25
kafros29-Jul-05 2:25 
Generalrotation matrix Pin
Anonymous29-Jul-05 2:22
Anonymous29-Jul-05 2:22 
GeneralRe: rotation matrix Pin
Guffa29-Jul-05 4:37
Guffa29-Jul-05 4:37 
GeneralControl Loop in Windows Form Pin
Anonymous29-Jul-05 1:54
Anonymous29-Jul-05 1:54 
GeneralRe: Control Loop in Windows Form Pin
jdkulkarni29-Jul-05 2:20
jdkulkarni29-Jul-05 2:20 

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.