<?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>Πρώτα Βήματα - Γλώσσες προγραμματισμού</title><link>https://www.dotnetzone.gr:443/cs/forums/74/ShowForum.aspx</link><description>Τα πρώτα βήματα στις γλώσσες VB6, VB.NET, και C#</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24047.aspx</link><pubDate>Fri, 26 Jan 2007 02:24:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24047</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24047.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24047</wfw:commentRss><description>Προσοχή στο PerformClick! Απ' ότι έχω διαπιστώσει, το method αυτό εκτελείται ασύγχρονα.</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24043.aspx</link><pubDate>Fri, 26 Jan 2007 01:58:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24043</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24043.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24043</wfw:commentRss><description>Χωρίς να έχω διαβάσει τις άλλες απαντήσεις... υπάρχει και η λύση mybutton.PerformClick()</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24038.aspx</link><pubDate>Fri, 26 Jan 2007 00:21:33 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24038</guid><dc:creator>yannis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24038.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24038</wfw:commentRss><description>παιδια ξεχασα να απαντησω και εγω&lt;br /&gt;
&lt;br /&gt;
ειμαι οκ και θα φτιαξω sub .&lt;br /&gt;
&lt;br /&gt;
ευχαριστω πολυ!</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24037.aspx</link><pubDate>Thu, 25 Jan 2007 23:56:18 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24037</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24037.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24037</wfw:commentRss><description>Νομίζω οτι ξεφύγαμε από το αρχικό ερώτημα που ήταν η ερώτηση του Γιάννη. Υπάρχουν δύο τρόποι: Η δημιουργία ενός sub (προτιμώμενο για τη συγκεκριμένη περίπτωση) και η απευθείας κλήση του event handler (μη προτιμώμενο). Μένει ο Γιαννης να μας πει αν καλύπτεται με αυτές τις απαντήσεις.&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24036.aspx</link><pubDate>Thu, 25 Jan 2007 23:46:01 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24036</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24036.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24036</wfw:commentRss><description>Να το προσδιορίσω καλύτερα. Υποφέρεται, όπως λέμε υποφέρεται το στρατιωτικό, αν και αναγκάζεσαι έτσι να βάλεις σκουπίδια στον κώδικα σου. Και σε τελική ανάλυση, δεν ελέγχεις πραγματικά τη συμπεριφορά του UI αλλά του κώδικα από πίσω. Το να καλέσεις το button_click απευθείας στην ίδια την εφαρμογή, αυτό δεν υποφέρεται.</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24033.aspx</link><pubDate>Thu, 25 Jan 2007 22:54:15 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24033</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24033.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24033</wfw:commentRss><description>Μα ο συνονόματος είπε ακριβώς το αντίθετο!Ότι ακόμα και για testing του κώδικα, είναι λάθος!</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/24027.aspx</link><pubDate>Thu, 25 Jan 2007 21:45:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:24027</guid><dc:creator>tasos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/24027.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=24027</wfw:commentRss><description>Σίγουεα έχετε δίκιο ότι είναι άσχημη προγραμματιστική τεχνική, αλλά όπως είπε και ο pkanavos είναι χρήσιμο για testing του κώδικα. Το σωστό είναι να δημιουργηθεί μία ξεχωριστή sub. Απλά το ανέφερα επειδή αυτή ήταν η ερώτηση στο thread, και πιστεύω ότι έχει νόημα να υπάρχει αυτό που έδωσα ως απάντηση. Κάποιος μπορεί να θέλει να το ξέρει για να κάνει έλεγχο στο κώδικα του.</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23998.aspx</link><pubDate>Thu, 25 Jan 2007 17:12:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23998</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23998.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23998</wfw:commentRss><description>Εκτός και αν θέλει κανείς να τεστάρει τον κώδικα του button, είναι τραγικό λάθος να καλέσει το button_click event. Ακόμα και εκεί βέβαια, καλύτερα να χρησιμοποιήσει κάποιο άλλο εργαλείο, όπως το NUnitForms αλλά δεν καιγόμαστε κιόλας. Αντιθέτως, το να καλέσει κάποιος το button1_click σημαίνει ότι υπάρχει σοβαρό πρόβλημα στον κώδικα του. Πρέπει οπωσδήποτε να φτιάξει ένα ξεχωριστό function, με όνομα και signature που να περιγράφουν τί κάνει, και να το καλέσει και από το button1_click και από όπου αλλού θέλει.&lt;br /&gt;
&lt;br /&gt;
Συγγνώμη αν αυτά ακούγονται λίγο έντονα, αλλά πέρασα τις τελευταίες ημέρες κοιτάζοντας και διορθώνοντας τέτοιο κώδικα που έγραψαν άλλοι, και πονάει. Και προβλέπεται και συνέχεια...</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23976.aspx</link><pubDate>Thu, 25 Jan 2007 02:04:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23976</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23976.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23976</wfw:commentRss><description>Τάσο, το καλύτερο είναι αυτό που πρότεινε ο Σωτήρης. Λειτουργεί και το δικό σου, σίγουρα αλλά απο άποψη maintenance κι όχι μόνο, καλύτερα το άλλο.</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23975.aspx</link><pubDate>Thu, 25 Jan 2007 01:56:42 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23975</guid><dc:creator>tasos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23975.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23975</wfw:commentRss><description>Αν υποθέσουμε πως το κουμπί του οποίου τον κώδικα θέλεις να καλέσεις αλλού είναι Button1, τότε απλά καλείς γράφεις Button1_Click(Nothing, e).</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23967.aspx</link><pubDate>Wed, 24 Jan 2007 23:42:20 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23967</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23967.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23967</wfw:commentRss><description>Εφόσον μέσα στον κώδικά σου δεν χρησιμοποιείς το sender ή το e, που αποτελούν παραμέτρους του event, θα μπορούσες ιδανικά να απομονώσεις το κομμάτι του κώδικα που εκτελείς μέσα στο event σε ένα private sub. Ετσι, θα μπορούσες να καλείς το sub αυτό μέσα από το event αλλά και μέσα από οποιοδήποτε άλλο event ή method επιθυμείς.</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23966.aspx</link><pubDate>Wed, 24 Jan 2007 23:37:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23966</guid><dc:creator>yannis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23966.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23966</wfw:commentRss><description>Private Sub tsmiProcZhmia_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsmiProcZhmia.Click&lt;br /&gt;
&lt;br /&gt;
        If Me.DataGridView1.RowCount &gt; 0 Then&lt;br /&gt;
&lt;br /&gt;
            ClaimNo = Me.DataGridView1(0, Me.DataGridView1.CurrentRow.Index).Value&lt;br /&gt;
&lt;br /&gt;
            If ClaimNo &lt;&gt; 0 Then&lt;br /&gt;
&lt;br /&gt;
                Dim fr As New frmClaimDetail&lt;br /&gt;
&lt;br /&gt;
                fr.ClaimNo = ClaimNo&lt;br /&gt;
&lt;br /&gt;
                fr.Show()&lt;br /&gt;
&lt;br /&gt;
            End If&lt;br /&gt;
&lt;br /&gt;
        End If&lt;br /&gt;
&lt;br /&gt;
    End Sub</description></item><item><title>Απ: Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23965.aspx</link><pubDate>Wed, 24 Jan 2007 23:30:41 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23965</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23965.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23965</wfw:commentRss><description>Μπορείς να μας δώσεις τον ακριβή κώδικα μαζί με το button click event;</description></item><item><title>Πως καλω τον κωδικα ενος button</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23964.aspx</link><pubDate>Wed, 24 Jan 2007 23:15:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23964</guid><dc:creator>yannis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23964.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=23964</wfw:commentRss><description>&lt;P&gt;Γειά και πάλι.&lt;/P&gt;
&lt;P&gt;έχω γράψει έναν κώδικα ο οποίος εκτελείται πατώντας ένα button.&lt;/P&gt;
&lt;P&gt;Πως μπορω να καλέσω αυτόν τον κώδικα και από ένα άλλο event πχ απο το κλικ σε ενα datagrid χωρις να πρεπει να ξαναγραψω τα ιδια?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>