Click here to Skip to main content
15,902,862 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.Timers.Timer Pin
Christian Graus23-Jan-07 10:29
protectorChristian Graus23-Jan-07 10:29 
GeneralRe: System.Timers.Timer Pin
gigo2k623-Jan-07 10:34
gigo2k623-Jan-07 10:34 
GeneralRe: System.Timers.Timer Pin
Christian Graus23-Jan-07 10:38
protectorChristian Graus23-Jan-07 10:38 
AnswerRe: System.Timers.Timer Pin
Luc Pattyn23-Jan-07 14:07
sitebuilderLuc Pattyn23-Jan-07 14:07 
QuestionWPF frame control, pass options Pin
NikoTanghe23-Jan-07 9:22
NikoTanghe23-Jan-07 9:22 
Questionsearch text in html Pin
nima_dir23-Jan-07 8:39
nima_dir23-Jan-07 8:39 
QuestionPositioning controls on n Physical Screens [modified] Pin
TCHamilton23-Jan-07 7:58
TCHamilton23-Jan-07 7:58 
AnswerRe: Positioning controls on n Physical Screens Pin
Luc Pattyn23-Jan-07 14:17
sitebuilderLuc Pattyn23-Jan-07 14:17 
You can add or remove a Control to a Form programmatically whenever you want;
it basically requires the same kind of code that the Visual Designer creates
when you interactively add a Control. So you could do:

void myButton_Click(object sender, EventArgs e) {
    Label label=new Label();
    label.Text="my button got clicked";
    label.Location=new Point(x, y);
    y+=30;
    this.Controls.Add(label);
}


The main problem with this kind of code is in positioning the new Controls;
in the example, you need some initial x,y values, and each new Control will be
positioned below the previous one. In the end they are bound to fall of the form...

Smile | :)


Luc Pattyn

GeneralRe: Positioning controls on n Physical Screens Pin
TCHamilton24-Jan-07 7:52
TCHamilton24-Jan-07 7:52 
QuestionConfiugration files Pin
peshawarcoder23-Jan-07 7:36
peshawarcoder23-Jan-07 7:36 
AnswerRe: Confiugration files Pin
Bassam Saoud23-Jan-07 9:25
Bassam Saoud23-Jan-07 9:25 
QuestionCOM library stuff Pin
jesarg23-Jan-07 6:54
jesarg23-Jan-07 6:54 
AnswerGiving up on this method Pin
jesarg23-Jan-07 10:59
jesarg23-Jan-07 10:59 
QuestionGood class to get file info from JPG ? Pin
Marcos Hernandez23-Jan-07 6:49
Marcos Hernandez23-Jan-07 6:49 
AnswerRe: Good class to get file info from JPG ? Pin
Dave Kreskowiak23-Jan-07 7:46
mveDave Kreskowiak23-Jan-07 7:46 
GeneralRe: Good class to get file info from JPG ? Pin
Marcos Hernandez23-Jan-07 9:33
Marcos Hernandez23-Jan-07 9:33 
GeneralRe: Good class to get file info from JPG ? Pin
Dave Kreskowiak23-Jan-07 12:41
mveDave Kreskowiak23-Jan-07 12:41 
AnswerRe: Good class to get file info from JPG ? Pin
Luc Pattyn24-Jan-07 14:58
sitebuilderLuc Pattyn24-Jan-07 14:58 
GeneralRe: Good class to get file info from JPG ? Pin
Marcos Hernandez24-Jan-07 19:37
Marcos Hernandez24-Jan-07 19:37 
GeneralRe: Good class to get file info from JPG ? Pin
Luc Pattyn24-Jan-07 20:23
sitebuilderLuc Pattyn24-Jan-07 20:23 
Questionno white spaces in enum Pin
MVPenn23-Jan-07 6:32
MVPenn23-Jan-07 6:32 
AnswerRe: no white spaces in enum Pin
Dave Kreskowiak23-Jan-07 7:35
mveDave Kreskowiak23-Jan-07 7:35 
GeneralRe: no white spaces in enum Pin
MVPenn23-Jan-07 8:01
MVPenn23-Jan-07 8:01 
GeneralRe: no white spaces in enum Pin
Stefan Troschuetz23-Jan-07 8:26
Stefan Troschuetz23-Jan-07 8:26 
GeneralRe: no white spaces in enum Pin
Pete O'Hanlon23-Jan-07 9:10
mvePete O'Hanlon23-Jan-07 9:10 

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.