Click here to Skip to main content
15,895,792 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get my application to check my database table1(id,msgID,MessageName,value,status)
So i want my application on all of my forms.... to check this database and set values
Of my app.config file and then set status to complete

How can i go about this

What I have tried:

Iv tried to get info from database then i get to check the values of database and dave it to the setting

But i would like to find a way to do this with all forms maby from a class that i can call to do the work
Posted
Comments
[no name] 12-Feb-20 10:18am    
Subclass your forms from a class that does that.
Maciej Los 12-Feb-20 15:35pm    
Could you be more specific?
At this moment we have no idea what you're talking about...
Member 13894223 13-Feb-20 2:56am    
App1 sends data to database that i have set ....app 2 needs to read that data and if i the table has values example
Fullscreen true it will set fullscreen to true in app.config and save so if i send Fullscreen false it wil set again to false
But i need to let that run continuasly checking that table and on every form

Maciej Los 13-Feb-20 14:40pm    
So... what's for app.config? You can read app settings from the database directly.
sudevsu 3-Mar-20 8:38am    
app .config can be read in all forms. Or create a class the reads the values from app.config and call the object of the class in your forms anywhere as needed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900