Solved

Update multiple window forms in visual studio 2010

Posted on 2013-01-08
4
244 Views
Last Modified: 2013-01-09
I have mutliple forms in my project and I want to make sure each one has autoscroll set to true.  Is there a way to do this with code versus opening each one and setting the autoscroll (or any other thing) individually?

Thanks!
0
Comment
Question by:Karen Wilson
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38757222
You can set it programmatically wherever you show those forms. Not sure which one would be more tedious though.
0
 

Author Comment

by:Karen Wilson
ID: 38758599
Couldn't I create a button and do a loop through all the forms in the application, setting it to make autoscroll = true?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38759473
No because its an instance property not a static property so you only set it on an instance of a form. If all you forms are already open then yes you can do this.
0
 

Author Closing Comment

by:Karen Wilson
ID: 38759667
Thanks for the information.  Keeps me from going on a snipe hunt.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now