Click here to Skip to main content
15,910,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am inheriting a Windows form. The above warning is appearing in line made for Connection. The connection is defined in App.Config and called with name in parent form.

VB
Public connection As New SqlConnection(ConfigurationManager.ConnectionStrings("name").ConnectionString)


Please advice
Posted
Updated 20-Mar-14 0:29am
v4

1 solution

 
Share this answer
 
Comments
atul sharma 5126 20-Mar-14 7:14am    
Thanks for the reply.
But my connection string calling is working perfectly in main form.

The issue is coming in the inherited form. The possible reason may be inheriting of a non-form value (from app.config) being part of the mother form.
But i don't know how to get over it.

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