Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

reusing address fields

$
0
0

Hi all,

I have a largish project that has lots of forms.  Many of those forms require an address.  The address for a given form will map to a table associated with that form and the table names are not consistent (not by my choice...)

I want to create a set of textboxes and lables that can be used to show/obtain the address information.

So I created a user control (and a panel, etc.) and laid out the common address controls as desired.  

When I then create a form and place the new object on the form, I don't seem to be able to access the individual controls even though I have made them public.  This is preventing me from being able to set the data bindings, etc. for the controls.

Is the only option to add properties to the address container that allow me to specify the DataBinding info and then add code to map the appropriate databinding to the appropriate control?

Thanks!


me (and yes, I DO mark correct answers)


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>