开发者

How to import the properties of the object to user-control using C#.net?

开发者 https://www.devze.com 2023-01-28 00:21 出处:网络
I have a user control and i want to assign the properties of an object to the user control. For example:

I have a user control and i want to assign the properties of an object to the user control. For example:

System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo();
ci.DateTimeFormat.GetAllDateTimePatterns();

I must be able to access the method GetAllDateTimePatterns() using my usercontrol. Can anybody please help me with C# 开发者_开发问答coding?


I don't understand the issue - if you have the code you posted above in your user control, you already have access to the GetAllDateTimePatterns() method.

0

精彩评论

暂无评论...
验证码 换一张
取 消