title: Global variables in Windows.Forms
body: <p>This may seem like a dumb topic, but I'm trying to learn some good coding practices.</p>
  
  <p>I'm making a windows.forms application and I have reached a point where my partial Form class has 7 global variables (and their corresponding properties) declared and used - to name a few: one to determine if the app is registered, a Settings object that I need to access in many events, a Logger object, etc. </p>
  
  <p>Is this bad coding? I mean, is it ok to declare a bunch of global variables and make use of them in the various event handlers/methods, or is there some better practice and I should rethink my code, to avoid having them?</p>
  
  <p>I have a lot of work left to do in this application so it's in a first phase now, and with my coding style it looks like it will end up having even more than 20 global variables.</p>