Click here to Skip to main content
15,901,122 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: sorting an xml file with a specified letter Pin
EliottA12-Jan-09 2:41
EliottA12-Jan-09 2:41 
GeneralRe: sorting an xml file with a specified letter Pin
jagank2117-Jan-09 3:34
jagank2117-Jan-09 3:34 
Questionsorting an xml file with a specified letter Pin
PAVANKUMAR12345612-Jan-09 2:24
PAVANKUMAR12345612-Jan-09 2:24 
QuestionInstal project without computer name change Pin
Any_India11-Jan-09 18:10
Any_India11-Jan-09 18:10 
AnswerRe: Instal project without computer name change Pin
Reza Raad13-Jan-09 3:04
Reza Raad13-Jan-09 3:04 
QuestionHow to get the formula field from .rdlc report in c#.net ? Pin
bhaumikdv11-Jan-09 17:25
bhaumikdv11-Jan-09 17:25 
Questionneed help with dynamic array button [modified] Pin
neodeaths10-Jan-09 0:48
neodeaths10-Jan-09 0:48 
AnswerRe: need help with dynamic array button Pin
Dave Kreskowiak10-Jan-09 3:02
mveDave Kreskowiak10-Jan-09 3:02 
Depending on the number of records you're talking about, this can get out hand VERY quickly. You have to keep track of each button you create, wire up the event handlers you're going to need, and then, upon data refreshes, disconnect the event handlers, destroy the previous set of buttons and then create a new set.

Creating controls is expensive. Redrawing all those controls is, also, very expensive. The more controls you have, the longer it'll take your form to draw itself. So, if these buttons are going to end up in a scrolling environment, you may find that, with an increasing number of controls, scrolling performance slows down, dramatically.

To create a new Button:
Button newButton = new Button();
newButton.Location = new Point(x, y);
newButton.Size = new Size(100, 50);
newButton.Text = "Some Caption";
... blah, blah, blah ...
btnvalveselect[index] = newButton;
this.Controls.Add(newButton);



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: need help with dynamic array button Pin
neodeaths10-Jan-09 3:54
neodeaths10-Jan-09 3:54 
GeneralRe: need help with dynamic array button Pin
Luc Pattyn10-Jan-09 4:08
sitebuilderLuc Pattyn10-Jan-09 4:08 
GeneralRe: need help with dynamic array button Pin
neodeaths10-Jan-09 4:36
neodeaths10-Jan-09 4:36 
GeneralRe: need help with dynamic array button Pin
Luc Pattyn10-Jan-09 4:54
sitebuilderLuc Pattyn10-Jan-09 4:54 
GeneralRe: need help with dynamic array button Pin
Luc Pattyn10-Jan-09 3:51
sitebuilderLuc Pattyn10-Jan-09 3:51 
GeneralRe: need help with dynamic array button Pin
neodeaths10-Jan-09 4:03
neodeaths10-Jan-09 4:03 
GeneralRe: need help with dynamic array button Pin
Luc Pattyn10-Jan-09 4:07
sitebuilderLuc Pattyn10-Jan-09 4:07 
QuestionHow to add a MouseHover Event to Label which is created at runtime using C# Pin
K V Sekhar8-Jan-09 21:09
K V Sekhar8-Jan-09 21:09 
AnswerRe: How to add a MouseHover Event to Label which is created at runtime using C# Pin
dan!sh 8-Jan-09 21:25
professional dan!sh 8-Jan-09 21:25 
GeneralRe: How to add a MouseHover Event to Label which is created at runtime using C# Pin
K V Sekhar8-Jan-09 23:40
K V Sekhar8-Jan-09 23:40 
QuestionHow to Display both image and text in a DataGridview Cell using c#.net Pin
K V Sekhar8-Jan-09 2:52
K V Sekhar8-Jan-09 2:52 
AnswerRe: How to Display both image and text in a DataGridview Cell using c#.net [modified] Pin
dan!sh 8-Jan-09 3:49
professional dan!sh 8-Jan-09 3:49 
GeneralRe: How to Display both image and text in a DataGridview Cell using c#.net Pin
K V Sekhar8-Jan-09 23:40
K V Sekhar8-Jan-09 23:40 
QuestionInvoke a Web Service using Visual C++ .NET Pin
Thomas_Mathews8-Jan-09 1:42
Thomas_Mathews8-Jan-09 1:42 
AnswerRe: Invoke a Web Service using Visual C++ .NET Pin
EliottA8-Jan-09 2:45
EliottA8-Jan-09 2:45 
Questionsearch in treeview control Pin
Naresh1234567898-Jan-09 1:25
Naresh1234567898-Jan-09 1:25 
AnswerRe: search in treeview control Pin
Ashfield8-Jan-09 2:44
Ashfield8-Jan-09 2:44 

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.