TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sujeeth
NA
5
0
using Public Variables
Sep 1 2006 12:07 AM
hi i want to declare a public connection object which i want to access from all the forms. when application starts i want to open the database using this connection and i do not want to close the connection till i close my application. how can i implement this. if i write this in class then wherever i want to use this object i have to create the class instance and open the connection. in vb.net if i declare a varible in module i can access it from any form. is there any better way to implement this in c#. please give me a solution. regards
Reply
Answers (
3
)
Select checked rows from all pages of datagrid
Data Reader