Identifying the Run-Time and the Design Mode(dotnetfacts.blogspot.com)

submitted by eugenciutaeugenciuta(715) 3 years, 4 months ago

Some logic (like connecting to a database) is not meant to be called when the application is in design mode. Opening a Form, or a UserControl, in the Visual Studio Designer (or other IDE design module), which is trying to connect to a database in its constructor or in its Load or Shown event handler will end up with a Designer exception. Handling a database connection is a run-time job only! This situation may be avoided if the run-time specific code is properly handled.

add a comment |category: |Views: 111

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story