Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello all,

 

I'm predominantly a web developer and have next to no windows forms programming - and certainly none since VB6.

When writing a windows form program in .Net how do I declare variables that can be accessed from any form in my application?

In VB6 I would tend use modules to declare public data and new data types.

 

If it makes any difference what I want to store is a database connection string and I do not want to store it in the registry.

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...