Pirate you may want to explain a little better. That is true your code will allow you access to an instance of the control BUT on a new instance of the form, which may not be what he is looking for. Forms are objects in .NET so you need a reference to instance of the form that you want to use the controls on. This is a pretty common question and a search will probably give you lots of answers.
Originally posted by Edneeis Pirate you may want to explain a little better. That is true your code will allow you access to an instance of the control BUT on a new instance of the form, which may not be what he is looking for. Forms are objects in .NET so you need a reference to instance of the form that you want to use the controls on. This is a pretty common question and a search will probably give you lots of answers.
well Edneeis u are right... pirate code will create a new object and refe to it... where i am looking for a existing object....
i did search in the form did not find any releated one...
You can't access any other forms objs or members without first instantiating an obj unless the obj you are trying to access is static (shared) in this case you can directly use the obj in your code (no need to use New keyword).got it ?