![]() |
Click here to advertise with us
|
|
|||||||
| Windows Forms Discussion related to Winforms application development |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
is there any way that i can set the property of a control all at once? like for every button, i want their backcolor to be red. something like that.
also is it advisable to set the properties of a control in design view rather than code it? does it have any performance issues? thanks! |
|
||||
|
Select multiple controls in Design view by regular selecting methods, Properties window will then show the common properties for all selected objects, set a property value to apply to all.
As Visual Studio is a visual development tool you should do most of the visual design in Designer/wizards/property pages, you will figure out by experience when you need to add code to that, or when using code is more beneficial.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
||||
|
As JohnH says, you should use the visual tools the IDE provides where you can or there's no point to having them. That said, the designer merely generates code for you, so all properties are still set in code either way. If you want to see the code generated by the designer then open the Solution Explorer, click the Show All Files button, expand your form's node and then open the Designer.vb file.
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms MSDN: Data Walkthroughs | "How Do I?" Videos My Blog: Custom Events | Dynamic GDI+ Drawing |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|