<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Χρηση του Combobox.Items Property σε custom control (design-time, .NET 1.1)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8411.aspx</link><pubDate>Fri, 06 Jan 2006 00:33:27 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8411</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8411.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=8411</wfw:commentRss><description>Παναγιώτη δούλεψε και μάλιστα πολύ καλά! Σε ευχαριστώ πολύ!&lt;br&gt;Ειχα κάποια θεματάκια τα οποία οφείλονταν στο inheritance που έκανα και είχαν πολύ γέλιο (π.χ. του έβαζα τις τιμές unsorted, εκανα build και μου εμφανίζονταν στο design time ξανα sorted! - γιατί είχα το base control sorted by default :) ) αλλά κατά τα άλλα μια χαρά!&lt;br&gt;&lt;br&gt;Πολύτιμη βοήθεια για άλλη μια φορά!&lt;br&gt;</description></item><item><title>Απ: Χρηση του Combobox.Items Property σε custom control (design-time, .NET 1.1)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8389.aspx</link><pubDate>Thu, 05 Jan 2006 04:11:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8389</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8389.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=8389</wfw:commentRss><description>&lt;P&gt;Λογικό, καθώς ο editor του combobox δεν είναι ο CollectionEditor, αλλά ένας άλλος που παίρνει τα strings και τα βάζει στο combobox. Το πρόβλημα θέλει &lt;A href="http://www.aisto.com/roeder/dotnet/"&gt;Reflector&lt;/A&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;Αν φορτώσεις το System.Windows.Forms.dll και πας να δεις τoν κώδικα του Combobox.Items θα δεις ότι χρησιμοποιεί τον &lt;FONT color=#000000&gt;System.Windows.Forms.Design.ListControlStringCollectionEditor, ο οποίος δεν αναφέρεται στο documentation! Τα attributes του Items property είναι&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;&lt;A title="System.ComponentModel.LocalizableAttribute..ctor(ByVal Boolean)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=1"&gt;&lt;FONT color=#006018&gt;Localizable&lt;/FONT&gt;&lt;/A&gt;(&lt;FONT color=#800000&gt;True&lt;/FONT&gt;), &lt;A title="System.Windows.Forms.SRDescriptionAttribute..ctor(ByVal description As String)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=2"&gt;&lt;FONT color=#006018&gt;SRDescription&lt;/FONT&gt;&lt;/A&gt;(&lt;FONT color=#800000&gt;"ComboBoxItemsDescr"&lt;/FONT&gt;), &lt;A title="System.ComponentModel.EditorAttribute..ctor(ByVal String, ByVal Type)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=3"&gt;&lt;FONT color=#006018&gt;Editor&lt;/FONT&gt;&lt;/A&gt;(&lt;FONT color=#800000&gt;"System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"&lt;/FONT&gt;, &lt;FONT color=#1000a0&gt;GetType&lt;/FONT&gt;(&lt;A title=System.Drawing.Design.UITypeEditor href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=4"&gt;&lt;FONT color=#006018&gt;UITypeEditor&lt;/FONT&gt;&lt;/A&gt;)), &lt;A title="System.ComponentModel.DesignerSerializationVisibilityAttribute..ctor(ByVal DesignerSerializationVisibility)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=5"&gt;&lt;FONT color=#006018&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;/A&gt;(&lt;A title=System.ComponentModel.DesignerSerializationVisibility href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=6"&gt;&lt;FONT color=#006018&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;/A&gt;.&lt;A title="Content As DesignerSerializationVisibility" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=7"&gt;&lt;FONT color=#006018&gt;Content&lt;/FONT&gt;&lt;/A&gt;), &lt;A title="System.Windows.Forms.SRCategoryAttribute..ctor(ByVal category As String)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=8"&gt;&lt;FONT color=#006018&gt;SRCategory&lt;/FONT&gt;&lt;/A&gt;(&lt;FONT color=#800000&gt;"CatData"&lt;/FONT&gt;)&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Χρηση του Combobox.Items Property σε custom control (design-time, .NET 1.1)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8387.aspx</link><pubDate>Thu, 05 Jan 2006 03:46:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8387</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8387.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=8387</wfw:commentRss><description>Ειναι readonly και στο αρχικό definition του ως property του Combobox. Ουτως η άλλως η εισαγωγή νεων στοιχείων γίνεται μέσω της μεθόδου Combobox.ObjectCollection.Add, οπότε δεν ξερω αν έχει νόημα το property να είναι read/write.&lt;br&gt;&lt;br&gt;Το property εμφανίζεται στον designer και εμφανίζει τον Collection Editor. Απλά όταν επιχειρώ να προσθέσω νέα τιμή, ο Collection Editor μου λέει οτι η τιμή είναι τυπου System.Object (σωστό το βλέπω, έτσι κι αλλιώς objects δέχεται το collection) αλλά δεν με αφήνει να την τροποποιήσω. Στoν Collection Editor ενός κανονικού Combobox (για το Items property), έχω τη δυνατότητα να γράψω string data εκεί, πράγμα που δεν γίνεται εδώ και δεν γνωρίζω το γιατί.&lt;br&gt;</description></item><item><title>Απ: Χρηση του Combobox.Items Property σε custom control (design-time, .NET 1.1)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8386.aspx</link><pubDate>Thu, 05 Jan 2006 03:37:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8386</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8386.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=8386</wfw:commentRss><description>&lt;P&gt;Μήπως παίζει ρόλο και ότι έχεις ορίσει το property σαν ReadOnly?&lt;/P&gt;
&lt;P&gt;Πέρα από αυτό, μπορείς να ορίσεις ότι το Property θα τροποποιείται μέσω της κλάσης CollectionEditor και των παιδιών της.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Κοίτα την κλάση System.ComponentModel.Design.CollectionEditor. &lt;br /&gt;&lt;br /&gt;&amp;lt;EditorAttribute(&lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;GetType&lt;/span&gt;(System.ComponentModel.Design.CollectionEditor), &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;GetType&lt;/span&gt;(System.Drawing.Design.UITypeEditor))&amp;gt;  _&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Property&lt;/span&gt; testCollection() &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; ICollection&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Get&lt;/span&gt;&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Return&lt;/span&gt; Icollection&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Get&lt;/span&gt;&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Set&lt;/span&gt;&lt;br /&gt;      Icollection &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; value&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Set&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Property&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Private&lt;/span&gt; Icollection &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; ICollection&lt;/span&gt;&lt;/P&gt;</description></item><item><title>Χρηση του Combobox.Items Property σε custom control (design-time, .NET 1.1)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8385.aspx</link><pubDate>Thu, 05 Jan 2006 02:13:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8385</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8385.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=8385</wfw:commentRss><description>&lt;P&gt;Το θέμα έχει ως εξής:&lt;/P&gt;
&lt;P&gt;Εχω ένα custom control το οποίο μεταξύ άλλων περιέχει και ένα ComboBox control.&lt;/P&gt;
&lt;P&gt;Θέλω να εκθέσω το Items property (Combobox.ObjectCollection) ως property του δικού μου control, σε design-time. Δοκιμάζοντας την πιό απλή λύση που σκέφτηκα:&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ReadOnly&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Property&lt;/span&gt; Items() &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; ComboBox.ObjectCollection&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Get&lt;/span&gt;&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Return&lt;/span&gt; (&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Me&lt;/span&gt;.ctlCombo.Items)&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Get&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'End Set&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Property&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;..παίρνω στον designer τον object collection editor αλλά δεν μπορώ να εισάγω καινούριες τιμές.&lt;/P&gt;
&lt;P&gt;Υποψιάζομαι οτι χρειάζεται κάτι ΠΟΛΥ παραπάνω από αυτό, απλά δεν μπόρεσα να βρω κάπου σχετικές πληροφορίες. Εχει κανείς κάποια γνώση επ'αυτού; Αν είναι κάτι με μεγάλο συντελεστή πολυπλοκότητα θα επιλέξω άλλο τρόπο για να κάνω αυτό που θέλω, οπότε και αυτή η πληροφορία είναι πολύτιμη.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>