<?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>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12976.aspx</link><pubDate>Fri, 19 May 2006 15:57:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12976</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12976.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12976</wfw:commentRss><description>Σας ευχαριστώ πολύ!!!</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12953.aspx</link><pubDate>Fri, 19 May 2006 04:01:58 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12953</guid><dc:creator>zak</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12953.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12953</wfw:commentRss><description>&lt;P&gt;Και πιο αναλυτικά σε αυτό που λέει ο KelMan στην δημιουργία του menuItem:&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;...&lt;br /&gt;...&lt;br /&gt;menu_tasks.Text &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"name"&lt;/span&gt; &amp;amp; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CStr&lt;/span&gt;(l)&lt;br /&gt;menu_tasks.Name &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"menu_tasks"&lt;/span&gt; &amp;amp; l&lt;br /&gt;menu_tasks.Tag &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;TO&lt;/span&gt; ID ΣΟΥ&lt;br /&gt;...&lt;br /&gt;...&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Και στην εκτέλεση:&lt;BR&gt;&lt;BR&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Private&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt; menu_tasks(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; System.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Object&lt;/span&gt;, &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; System.EventArgs)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; Id&lt;br /&gt;Id =&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CType&lt;/span&gt;(sender, System.Windows.Forms.ToolStripMenuItem).Tag&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt; &lt;/span&gt;&lt;/P&gt;</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12949.aspx</link><pubDate>Fri, 19 May 2006 03:16:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12949</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12949.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12949</wfw:commentRss><description>Δεν χρειάζεται να στέλνεις ID, έτσι κι αλλιώς περνάει ολόκληρο το object που έχει προκαλέσει το event ως "sender". Έτσι λοιπόν, μπορείς να κάνεις διάφορα κόλπα όπως να βάλεις στο Tag property του menuitem οποιαδήποτε τιμή (είναι τύπος object). Όταν πλέον τρέξει η procedure, θα μετατρέψεις το sender object σε menuitem και θα διαβάσεις το Tag property</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12948.aspx</link><pubDate>Fri, 19 May 2006 02:49:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12948</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12948.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12948</wfw:commentRss><description>Ωραία. Εγώ όμως θέλω να εκτελείται η ίδια sub σε οποιοδήποτε menuitem και αν κάνω κλικ και να στέλνω στη sub κάποιο ID, διαφορετικό για κάθε menuitem.&lt;br&gt;
&lt;br&gt;
Σ' ευχαριστώ πάρα πολύ για το χρόνο σου και την υπομονή σου (κυρίως).&lt;br&gt;</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12930.aspx</link><pubDate>Thu, 18 May 2006 21:59:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12930</guid><dc:creator>zak</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12930.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12930</wfw:commentRss><description>Με το (AddressOf sub_menu_users_Click) στην ουσία δηλώνεις τι θα εκτελεσθεί όταν δημιουργηθεί το event OnClick.&lt;br /&gt;
&lt;br /&gt;
Π.χ.&lt;br /&gt;
&lt;br /&gt;
Private Sub sub_menu_users_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
&lt;br /&gt;
DO SOMETHING HERE&lt;br /&gt;
&lt;br /&gt;
End Sub</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12925.aspx</link><pubDate>Thu, 18 May 2006 21:28:00 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12925</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12925.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12925</wfw:commentRss><description>Έχεις δίκιο. Συνδύασα αυτά που μου έγραψες και έκανα το παρακάτω αλλά δεν μπορώ να διαβάσω το click. Τι μπορώ να κάνω; Με την New EventHandler(AddressOf sub_menu_users_Click) που γράφεις δεν βγάζω άκρη.&lt;br&gt;
&lt;br&gt;
    For l = 0 To 9&lt;br&gt;
Dim menu_tasks As New System.Windows.Forms.ToolStripMenuItem&lt;br&gt;
menu_tasks.Name = "menu_tasks" &amp;amp; l&lt;br&gt;
menu_tasks.Text = "name" &amp;amp; CStr(l)&lt;br&gt;
cntxSelDay.Items.Insert(l, menu_tasks)&lt;br&gt;
Dim sub_menu_tasks As New System.Windows.Forms.ToolStripMenuItem&lt;br&gt;
For t = 0 To 4&lt;br&gt;
menu_tasks.DropDownItems.Add("sub" &amp;amp; CStr(t))&lt;br&gt;
Next&lt;br&gt;
Next&lt;br&gt;
&lt;br&gt;Ευχαριστώ πολύ.</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12882.aspx</link><pubDate>Thu, 18 May 2006 03:04:07 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12882</guid><dc:creator>zak</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12882.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12882</wfw:commentRss><description>&lt;P&gt;Δεν σε καταλαβαίνω όταν λες ο αριθμός των υπομενού....Αν ενοείς πλήθος κάτω απο ένα μενού δεν έχεις προβλημα, αν εννοείς βάθος στο μενού σου πάλι δεν εχεις πρόβλημα...&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;Dim&lt;/FONT&gt; menu_users &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;New&lt;/FONT&gt; System.Windows.Forms.ToolStripMenuItem&lt;BR&gt;menu_users.Text = &lt;FONT color=#800000&gt;"Χρήστες"&lt;BR&gt;&lt;/FONT&gt;ContextMenuStrip1.Items.Insert(0, menu_users)&lt;BR&gt;&lt;FONT color=#0000ff&gt;Dim&lt;/FONT&gt; sub_menu_users1 &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;New&lt;/FONT&gt; System.Windows.Forms.ToolStripMenuItem(&lt;FONT color=#800000&gt;"Διαχείριση χρηστών")&lt;BR&gt;&lt;/FONT&gt;menu_users.DropDownItems.Add(sub_menu_users1)&lt;BR&gt;menu_users.DropDownItems.Add(&lt;FONT color=#0000ff&gt;New&lt;/FONT&gt; System.Windows.Forms.ToolStripMenuItem(&lt;FONT color=#800000&gt;"Διαχείριση χρηστών"&lt;/FONT&gt;)&lt;BR&gt;sub_menu_users1.DropDownItems.Add(&lt;FONT color=#0000ff&gt;New&lt;/FONT&gt; System.Windows.Forms.ToolStripMenuItem(&lt;FONT color=#800000&gt;"Διαχείριση χρηστών"&lt;/FONT&gt;))&lt;/P&gt;
&lt;P&gt;Απ'ότι βλέπεις μπορείς να το αναπτύξεις όπως θέλεις, όπως π.χ. ένα Treeview.&lt;/P&gt;</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12880.aspx</link><pubDate>Thu, 18 May 2006 02:41:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12880</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12880.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12880</wfw:commentRss><description>Ευχαριστώ αλλά ο αριθμός των υπομενού στην περίπτωση μου δεν είναι συγκεκριμένος. Τι θα πρέπει να κάνω;</description></item><item><title>Απ: Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12876.aspx</link><pubDate>Wed, 17 May 2006 22:58:03 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12876</guid><dc:creator>zak</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12876.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12876</wfw:commentRss><description>&lt;P&gt;Αν αυτό μπορεί να σε βοηθήσει......&lt;BR&gt;&lt;BR&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; menu_users &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;menu_users.Name &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"menu_users"&lt;/span&gt;&lt;br /&gt;menu_users.Text &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Χρήστες"&lt;/span&gt;&lt;br /&gt;ContextMenuStrip1.Items.Insert(2, menu_users)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; sub_menu_users &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; System.Windows.Forms.ToolStripMenuItem(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Διαχείριση χρηστών"&lt;/span&gt;, Global.CRM.My.Resources.Resources.usersIco, &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; EventHandler(&lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;AddressOf&lt;/span&gt; sub_menu_users_Click))&lt;br /&gt;menu_users.DropDownItems.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(sub_menu_users)&lt;/span&gt;&lt;/P&gt;</description></item><item><title>Δυναμικό ContextMenuStrip</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12868.aspx</link><pubDate>Wed, 17 May 2006 21:35:37 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12868</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12868.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=12868</wfw:commentRss><description>Θέλω να φτιάξω ένα δυναμικό context menu και δεν μπορώ να καταλάβω πως θα προσθέτω υπομενού. Στο MSDN βρήκα κάποιο παράδειγμα αλλά αφορά συγκεκριμένο αριθμό από υπομενού. Καμιά βοήθεια;&lt;br&gt;</description></item></channel></rss>