كتاب طريق الاحتراف في VB6

Document Sample
كتاب طريق الاحتراف في VB6 Powered By Docstoc
					‫ﺗﻢ ﺗﺤﻤﻴﻞ اﻟﻤﻠﻒ ﻣﻦ ﻣﻮﻗﻊ‬
    ‫اﻟﺒﻮﺻﻠﺔ اﻟﺘﻘﻨﻴﺔ‬
   ‫‪www.boosla.com‬‬
                                ‫ﻛﺘﺎب : ﻃﺮﻳﻖ اﻷﺣﺘﺮاف‬
                            ‫ﺗﺄﻟﻴﻒ: ﻣﺸﺮف ﻧﺎﺻﺮ اﻟﺮوﻳﻠﻲ‬
                                           :‫ﻟﻠﻤﺮاﺳﻠﻪ‬
                                 plantsman9009@hotmail.com
                                Professionalvb99@yahoo.co.uk

                                     ‫ﺛﻤﻦ اﻟﻜﺘﺎب ﻫﻮ اﻟﺪﻋﺎء ﻟﻲ‬
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                   : ‫ﻣﺤﺘﻮﻳﺎت اﻟﻜﺘﺎب‬
                    6 ‫1- ﺷﺮح واﺟﻬﺔ اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ‬
                                : ‫2- ﺷﺮح اﻷدوات‬
                              Picture Box ‫أداه‬
                                       Label ‫أداه‬
                                   Text Box ‫أداه‬
                                      Timer ‫أداه‬
                              Option Box ‫أداه‬
                                 Drive Box ‫أداه‬
                                     Dir Box ‫أداه‬
                                    File Box ‫أداه‬
                              Combo Box ‫أداه‬
                                Check Box ‫أداه‬
                         ‫3- ﻋﻤﻞ ﺑﺮﻧﺎﻣﺞ آﻟﻪ ﺣﺎﺳﺒﻪ‬
                               ‫4- وﺿﻊ أداة ﺟﺪﻳﺪة‬
                     ‫5- ﻋﻤﻞ ﺑﺮﻧﺎﻣﺞ ﻋﺎرض اﻟﺼﻮر‬
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                    ‫6- ﻋﺮض ﻓﻼش ﻓﻲ اﻟﻨﻤﻮذج‬
                                 ‫7- ﺻﻨﻊ ﻗﻮاﺋﻢ‬
                         Msgbox ‫8- اﻟﺮﺳﺎﺋﻞ‬
                    IF ……Then ‫9- ﺷﺮح‬
                                Do ‫01- ﺷﺮح‬
                                For ‫11- ﺷﺮح‬
                      Select Case ‫21- ﺷﺮح‬
                               ‫31- ﺷﺮح اﻟﺪوال‬
                              SQL ‫41- أواﻣﺮ‬
                    97 ‫51- ﺗﺤﻮﻳﻞ اﻷﻛﺴﻴﺲ اﻟﻰ‬
                ‫61- رﺑﻂ اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ ﺑﺎﻷﻛﺴﻴﺲ‬
                                ‫71- ﻋﻤﻞ ﺗﻘﺮﻳﺮ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                 ‫ﺑﺴﻴﻚ 6‬                 ‫ﺷﺮﺡ ﻭﺍﺟﻬﺔ ﻓﻴﺠﻮﺍﻝ‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                                   ‫ﺑــﺴــــﻢ اﷲ اﻟﺮﺣﻤــــــﻦ اﻟﺮﺣﻴــــــــــــــــــــﻢ‬




                               ‫1- ﻫﻮ اﻟﻨﻤﻮذج. 2- ﻗﺎﺋﻤﺔ اﻷدوات. 3- ﺷﺠﺮة اﻟﻤﺸﺮوع.‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                   ‫ﺷﺮﺡ ﺍﻷﺩﻭﺍﺕ‬
               :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                              :     Picture Box ‫1- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                          ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬              NAME
                                           ‫ﻣـﺤﺎﺫﺍﺓ‬            Aignment
                                          ‫ﻧﻮﻉ ﺍﻹﻃﺎﺭ‬                Appearance
                            ‫ﺣﺠﻢ ﺗﻠﻘﺎﺋﻲ ﺣﺴﺐ ﺍﻟﺼﻮﺭﺓ‬                    AutoSize
                         ‫ﻣﺎﺳﻴﻈﻬﺮ ﺇﺫﺍ ﻭﺿﻊ ﺍﳌﺎﻭﺱ ﻓﻮﻗﻬﺎ‬              ToolTipText
                                              ‫ﺍﻟﺼﻮﺭﻩ‬                    Picture
                                           ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬                BackColor
                                          ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬                 Visible
                                                          :    Label ‫2- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                             ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬                Name
                                                  ‫ﻇﻬﻮﺭ‬              Appearance
                                             ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬              BackColor
                                                  ‫ﺍﻟﻨﺺ‬                  Caption
                                                  ‫ﺍﳋﻂ‬                     Font
                                              ‫ﻟﻮﻥ ﺍﳋﻂ‬                 ForColor
                        ‫ﺍﳌﺎﻭﺱ ﻓﻮﻗﻬﺎ ﻣﺎﺳﻴﻈﻬﺮ ﻋﻨﺪ ﻭﺿﻊ‬                  ToolTipText
                                     ‫ﺣﺠﻢ ﺣﺴﺐ ﺍﻟﻨﺺ‬                       AutoSize
                                                  :   Text Box ‫3- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                            ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬            Name

Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                                   ‫ﻇﻬﻮﺭ‬              Appearance
                                             ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬               BackColor
                                                   ‫ﺍﻟﻨﺺ‬                    Text
                  (‫ﻟﻘﻔﻞ ﺍﻟﻨﺺ )ﺃﻱ ﻻﳝﻜﻦ ﺍﻟﻜﺘﺎﺑﻪ ﺑﺪﺍﺧﻠﻪ‬                     Locked
                                                   ‫ﺍﳋﻂ‬                      Font
                                             ‫ﻟﻮﻥ ﺍﳋﻂ‬                    ForColor
                                            ‫ﺃﺷﺮﻃﻪ ﲤﺮﻳﺮ‬                ScrollBars
                       ‫ﻣﺎﺳﻴﻈﻬﺮ ﻋﻨﺪ ﻭﺿﻊ ﺍﳌﺎﻭﺱ ﻓﻮﻗﻬﺎ‬                  ToolTipText
                                          ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬                  Visible
                                           ‫ﻣﺆﺷﺮ ﺍﳌﺎﻭﺱ‬               MousePointer
                                   ‫ﻷﺳﺘﺨﺪﺍﻡ ﻋﺪﺓ ﺃﺳﻄﺮ‬                   MultiLine
                                                            :   Timer ‫4- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                                  ‫ﻟﺘﻮﻗﻴﺖ‬               Interval
                                       ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬                Enabled
                                              :     Option Box ‫5- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                             ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬          Name
                                                   ‫ﺍﻟﻨﺺ‬                 Caption
                                             ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬               BackColor
                                ‫ﺍﻟﺼﻮﺭﺓ ﻋﻨﺪ ﺍﻟﻨﻘﺮ ﻟﻸﺳﻔﻞ‬                DownPicture
                                                    ‫ﺍﳋﻂ‬                   Font
                                              ‫ﻟﻮﻥ ﺍﳋﻂ‬                   ForColor
                                                  ‫ﺍﻟﺼﻮﺭﺓ‬                Picture
                       ‫ﻣﺎ ﺳﻴﻈﻬﺮ ﺇﺫﺍ ﻭﺿﻊ ﺍﳌﺎﻭﺱ ﻓﻮﻗﻬﺎ‬                   ToolTipText
                                                   ‫ﺍﻟﻘﻴﻤﻪ‬                 Value
                                          ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬                    Visible
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                                    :   Drive Box ‫6- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                              ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬            NAME
                                             ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬           BackColor
                         ‫ﻣﺎ ﺳﻴﻈﻬﺮ ﺇﺫﺍ ﻭﺿﻊ ﺍﳌﺎﻭﺱ ﻓﻮﻗﻬﺎ‬                 ToolTipText
                                                         :    Dir Box ‫7- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                              ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬                NAME
                                        ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬                Enabled
                                                        ‫ﺍﳋﻂ‬               Font


                                                        :      File Box‫8- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                              ‫ﺃﺳﻢ ﺍﻷﺩﺍﻩ‬                 NAME
                                        ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬                Enabled
                                           ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬                    Visible

                                                :     Combo Box‫9- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                             ‫ﺃﺳﻢ ﺍﻻﺩﺍﻩ‬            Name
                                                    ‫ﻇﻬﻮﺭ‬               Appearance
                                        ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬                Enabled
                                                    ‫ﺍﻟﻨﺺ‬                   Text
                                           ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬                    Visible
                                        ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬                Enabled
                                ‫ﳛﻮﻱ ﻋﻠﻰ ﺧﺎﻧﺎﺕ ﻟﺸﻜﻞ‬                         Style

                                               :     Check Box‫01- ﺷﺮﺡ ﺃﻫﻢ ﺧﺼﺎﺋﺺ‬
                                             ‫ﺃﺳﻢ ﺍﻻﺩﺍﻩ‬            Name

Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                                  ‫ﺍﻟﻨﺺ‬         Caption
                                                  ‫ﺍﻟﻘﻴﻤﻪ‬        Value
                                           ‫ﳐﻔﻲ ﺃﻡ ﻣﺮﺋﻲ‬         Visible
                                        ‫ﻟﺘﻌﻄﻴﻠﻪ ﺃﻡ ﺗﺸﻐﻴﻠﻪ‬      Enabled
                                             ‫ﻟﻮﻥ ﺍﳋﻠﻔﻴﻪ‬        BackColor
                                                   ‫ﺍﳋﻂ‬           Font
                                              ‫ﻟﻮﻥ ﺍﳋﻂ‬          ForColor




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                               ‫ﻋﻤﻞ ﺑﺮﻧﺎﻣﺞ ﺁﻟﻪ ﺣﺎﺳﺒﻪ‬
               ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                                                        ‫أوﻻ: أﻓﺘﺢ ﺑﺮﻧﺎﻣﺞ اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ.‬
                                                                                    ‫ﺎ‬
                                                                ‫ﺛﺎﻧﻴً: ﺿﻊ اﻷدوات اﻟﺘﺎﻟﻴﻪ:‬
                                                                        ‫أرﺑﻊ ‪Command‬‬
                                                                         ‫ﺛﻼث ‪TextBox‬‬
                                ‫أﺿﻐﻂ ﻋﻠﻰ زر اﻟﺠﻤﻊ ﻣﺮﺗﻴﻦ ﺛﻢ أﻛﺘﺐ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ اﻟﺰر:‬


                                                        ‫‪ Val‬داﻟﻪ ﻟﺘﺤﻮﻳﻞ اﻟﻘﻴﻤﻪ اﻟﻰ رﻗﻤﻴﻪ‬
                             ‫أﺿﻐﻂ ﻋﻠﻰ زر اﻟﻄﺮح ﻣﺮﺗﻴﻦ ﺛﻢ أﻛﺘﺐ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ اﻟﺰر:‬


                             ‫أﺿﻐﻂ ﻋﻠﻰ زر اﻟﻀﺮب ﻣﺮﺗﻴﻦ ﺛﻢ أﻛﺘﺐ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ اﻟﺰر:‬


                               ‫أﺿﻐﻂ ﻋﻠﻰ زر اﻟﻘﺴﻤﻪ ﻣﺮﺗﻴﻦ ﺛﻢ أﻛﺘﺐ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ اﻟﺰر:‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                     ‫ﻭﺿﻊ ﺃﺩﺍﺓ ﺟﺪﻳﺪﻩ‬
               :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                     :‫ﻟﻮﺿﻊ أداة ﺟﺪﻳﺪه أﺗﺒﻊ اﻟﺨﻄﻮات اﻟﺘﺎﻟﻴﻪ‬
                                                                            : ‫اﻟﺨﻄﻮة اﻷوﻟﻰ‬




                                                                            :‫اﻟﺨﻄﻮة اﻟﺜﺎﻧﻴﻪ‬




                                                                             :‫اﻟﺨﻄﻮة اﻟﺜﺎﻟﺜﻪ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                                                       .‫1- ﻟﺘﺤﺪﻳﺪ اﻷداة‬
                                                                            . ‫2- ﻣﻮﻓﻖ‬
                                                        . ‫3- أﺳﺘﻌﺮاض ﻟﻮﺿﻊ أداة أﺧﺮى‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                           ‫ﻋﻤﻞ ﺑﺮﻧﺎﻣﺞ ﻋﺎﺭﺽ ﺍﻟﺼﻮﺭ‬
               ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                               ‫ﻋﻤﻞ ﺑﺮﻧﺎﻣﺞ ﻋﺎرض اﻟﺼﻮر ﺳﻬﻞ وﻟﻜﻦ ﻳﺤﺘﺎج اﻟﻰ ﺗﺮﻛﻴﺰ:‬
                                                     ‫أوﻻ: ﺿﻊ أداة ‪CommonDialog‬‬
                                   ‫ﻟﻮﺿﻊ اﻷداة أﺗﺒﻊ اﻟﺨﻄﻮات اﻟﺪرس ) وﺿﻊ أداه ﺟﺪﻳﺪة(‬
                                        ‫ﺛﻢ ﺿﻊ أداة ‪ PictureBox‬و أداة ‪.Command‬‬
                                                ‫أﻛﺘﺐ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ أداة ‪:Command‬‬




                     ‫ﺷﺮح اﻟﺴﻄﺮ اﻷول: ﺗﻘﻮم أداة ‪ CommonDialog‬ﺑﻌﺮض ﻧﺎﻓﺬه اﻟﻔﺘﺢ‬
                      ‫ﺷﺮح اﻟﺴﻄﺮ اﻟﺜﺎﻧﻲ: ﺗﻘﻮم أداة ‪ PictureBox‬ﺑﺘﺤﻤﻴﻞ ﻣﺎﻗﺪ أﺧﺘﻴﺮ ﻓﻲ‬
                                                                        ‫ﻧﺎﻓﺬه اﻟﻔﺘﺢ .‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                      ‫ﻋﺮﺽ ﺍﻟﻔﻼﺵ ﰲ ﺍﻟﻨﻤﻮﺫﺝ‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                     ‫أوﻻ: ﺿﻊ أداة ‪ ShockwaveFlash‬ﻟﻮﺿﻊ اﻷداة أﺗﺒﻊ ﺧﻄﻮات درس‬
                                                                ‫) وﺿﻊ أداة ﺟﺪﻳﺪة(.‬
                                ‫ﺿﻊ ﻓﻼش وﺳﻤﻪ ‪ tell‬وﺿﻌﻪ ﻓﻲ ﻧﻔﺲ ﻣﺠﻠﺪ اﻟﺒﺮﻧﺎﻣﺞ.‬
                                      ‫أﺿﻐﻂ ﻋﻠﻰ اﻟﻨﻤﻮذج ﻣﺮﺗﻴﻦ ﺛﻢ ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ:‬



                                                    ‫‪ Tell.swf‬ﻫﻮ أﺳﻢ وأﻣﺘﺪاد ﻣﻠﻒ اﻟﻔﻼش .‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                           ‫ﺻﻨﻊ ﻗﻮﺍﺋﻢ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                               :‫أﺗﺒﻊ اﻟﺨﻄﻮات اﻟﺘﺎﻟﻴﻪ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                              Msgbox ‫ﺍﻟﺮﺳﺎﺋﻞ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                        :‫ﻟﻬﺎ أﻧﻮاع ﻋﺪة واﻷن ﺳﻮف ﻧﻌﺮﺿﻬﺎ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                 ‫ﺷﺮﺡ ‪IF ……Then‬‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                                                       ‫‪ If‬ﻣﻌﻨﺎﻫﺎ إذا و ‪ Then‬ﻣﻌﻨﺎﻫﺎ ﻋﻨﺪﺋﺬ‬

                                      ‫‪IF‬‬             ‫‪Condition‬‬      ‫‪Then‬‬      ‫‪Statement‬‬
                                      ‫إذا‬              ‫اﻟﺸﺮط‬        ‫ﻋﻨﺪﺋﺬ‬        ‫اﻟﺘﻌﻠﻴﻤﺔ‬
                                                                                    ‫ﻣﺜﺎل:‬
                                                     ‫ﺿﻊ أداة ‪ Text Box‬وأداة ‪Command‬‬
                                                     ‫ﺛﻢ ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ أداة ‪:Command‬‬




                       ‫ﺷﺮح اﻟﺴﻄﺮ اﻷول: إذا ﻛﺘﺐ ﻋﻠﻰ 1‪ Text‬ﻃﺮﻳﻖ اﻷﺣﺘﺮاف ﻋﻨﺪﺋﺬ‬
                                                     ‫ﺷﺮح اﻟﺴﻄﺮ اﻟﺜﺎﻧﻲ: ﻏﻠﻖ اﻟﺒﺮﻧﺎﻣﺞ‬
                    ‫ﺷﺮح اﻟﺴﻄﺮ اﻟﺜﺎﻟﺚ: ﻳﺠﺐ وﺿﻌﻬﺎ ﻋﻨﺪ ﻧﻬﺎﻳﻪ أﻣﺮ ‪ If‬وﻣﻌﻨﺎﻫﺎ ﻧﻬﺎﻳﻪ ‪IF‬‬

                   ‫‪IF‬‬      ‫‪Condition‬‬        ‫‪Then‬‬       ‫1‪Statement‬‬     ‫‪Else‬‬    ‫2‪Statement‬‬
                  ‫إذا‬         ‫اﻟﺸﺮط‬          ‫ﻋﻨﺪﺋﺬ‬         ‫ﺗﻌﻠﻴﻤﺔ‬      ‫وإﻻ‬     ‫ﺗﻌﻠﻴﻤﺔ 2‬
                                                                                    ‫ﻣﺜﺎل:‬
                                                      ‫ﺿﻊ أداة ‪ Text Box‬وأداة ‪Command‬‬
                                                     ‫ﺛﻢ ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ أداة ‪:Command‬‬




                        ‫ﺷﺮح اﻟﺴﻄﺮ اﻟﺜﺎﻟﺚ: إذا ﻟﻢ ﻳﺘﺤﻘﻖ اﻟﺸﺮط رﻗﻢ 1 ﻳﺘﺤﻘﻖ اﻟﺸﺮط رﻗﻢ 2‬
                                                            ‫ﺷﺮح اﻟﺴﻄﺮ اﻟﺮاﺑﻊ: رﺳﺎﻟﻪ‬

‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                          .‫وﻳﻤﻜﻨﻚ أﺳﺘﺨﺪاﻣﻬﺎ ﻟﻮﺿﻊ ﻛﻠﻤﻪ ﺳﺮ ﻟﻠﺒﺮﻧﺎﻣﺞ‬
                                                                            : ‫ﻣﺜﻞ‬
                            .‫ وأﺿﻒ ﻧﻤﻮذج آﺧﺮ‬Command‫ وأداة‬Text Box ‫ﺿﻊ أداة‬
                                          : Command ‫ﺛﻢ ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ أداة‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                    ‫ﺷﺮﺡ ‪Do‬‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                                                                    ‫ﺗﺴﺘﺨﺪم ﻟﻌﻤﻠﻴﻪ اﻟﺘﻜﺮار.‬




                                                    ‫اﻟﺴﻄﺮ اﻷول: ﺻﺮﺣﻨﺎ ﻋﻦ ﻣﺘﺤﻮل ﻋﺪدي‬
                                                          ‫اﻟﺴﻄﺮ اﻟﺜﺎﻧﻲ: ﺑﺪاﻳﻪ ﻋﻤﻠﻴﻪ اﻟﺘﻜﺮار‬
                                                     ‫اﻟﺴﻄﺮ اﻟﺜﺎﻟﺚ: زﻳﺎدة ﻗﻴﻤﺔ اﻟﻤﺘﺤﻮل ‪way‬‬
                                                                     ‫اﻟﺴﺮط اﻟﺮاﺑﻊ: اﻟﺘﻌﻠﻴﻤﺔ‬
                                                         ‫اﻟﺴﻄﺮ اﻟﺨﺎﻣﺲ: ﻋﺪد ﻣﺮات اﻟﺘﻜﺮار‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                       For ‫ﺷﺮﺡ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                                     ‫ﺗﺴﺘﺨﺪم ﻟﻌﻤﻠﻴﻪ اﻟﺘﻜﺮار‬



                                                         ‫اﻟﺴﻄﺮ اﻷول: ﻟﺘﺤﺪﻳﺪ ﻋﻤﻠﻴﻪ اﻟﺘﻜﺮار‬
                                                             (‫اﻟﺴﻄﺮ اﻟﺜﺎﻧﻲ: اﻟﺤﺪث)اﻟﺘﻌﻠﻴﻤﺔ‬
                                                               ‫اﻟﺴﻄﺮ اﻟﺜﺎﻟﺚ: ﻟﺘﻜﺮار اﻟﺤﺪث‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                           Select Case ‫ﺷﺮﺡ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:


                                                                   ‫اﻟﺴﻄﺮ اﻷول: ﺗﺤﺪﻳﺪ اﻟﻌﻨﺼﺮ‬
                                                               ‫اﻟﺴﻄﺮ اﻟﺜﺎﻧﻲ: ﺗﺤﺪﻳﺪ ﺣﺎﻟﻪ اﻟﻌﻨﺼﺮ‬
                                                                (‫اﻟﺴﻄﺮ اﻟﺜﺎﻟﺚ: اﻟﺤﺪث )اﻟﺘﻌﻠﻴﻤﺔ‬
                                                                      ‫اﻟﺴﻄﺮ اﻟﺮاﺑﻊ: ﻧﻬﺎﻳﻪ اﻷﻣﺮ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                            ‫ﺷﺮﺡ ﺍﻟﺪﻭﺍﻝ‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                                                                           ‫داﻟﺔ ‪:FileLen‬‬
                                                                  ‫ﺗﻘﻮم ﺑﺤﺴﺎب ﺣﺠﻢ اﻟﻤﻠﻔﺎت‬
                                                                                   ‫ﻣﺜﺎل:‬



                                                                        ‫اﻟﺪاﻟﺔ ‪:FileCopy‬‬
                                                          ‫ﺗﻘﻮم ﺑﻨﺴﺦ ﻣﻠﻒ ﻣﻦ ﻣﺴﺎر اﻟﻰ ﻣﺴﺎر‬
                                                                                   ‫ﻣﺜﺎل:‬



                                                                             ‫اﻟﺪاﻟﺔ ‪:Int‬‬
                                                                ‫ﻟﺤﺴﺎب اﻟﺠﺰء اﻟﺼﺤﻴﺢ ﻓﻘﻂ‬
                                                                                  ‫ﻣﺜﺎل:‬



                                                                            ‫اﻟﺪاﻟﺔ ‪:Kill‬‬
                                                       ‫ﺑﺤﺬف ﻣﻠﻒ دون ﻇﻬﻮر رﺳﺎﻟﻪ اﻟﺤﺬف‬
                                                                                ‫اﻟﻤﺜﺎل:‬



                                                                            ‫اﻟﺪاﻟﺔ ‪:Len‬‬
                                                                     ‫ﻟﺤﺴﺎب ﻋﺪد اﻟﺤﺮوف‬
                                                                                ‫اﻟﻤﺜﺎل:‬
‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                                                          ‫اﻟﺪاﻟﺔ ‪:Ltrim‬‬
                                                ‫ﻟﺤﺬف اﻟﻔﺮاﻏﺎت اﻟﻤﻮﺟﻮدة ﻓﻲ اﻟﺠﻬﺔ اﻟﻴﺴﺮى‬
                                                                                 ‫اﻟﻤﺜﺎل:‬



                                                                                ‫اﻟﺪاﻟﺔ ‪:Rtrim‬‬
                                                               ‫ﻟﺤﺬف اﻟﻔﺮاﻏﺎت ﻣﻦ اﻟﺠﻬﺔ اﻟﻴﻤﻨﻰ‬
                                                                                       ‫اﻟﻤﺜﺎل:‬



                                                                         ‫اﻟﺪاﻟﺔ ‪:Trim‬‬
                                     ‫ﻳﻘﻮم ﺑﺤﺬف ﺟﻤﻴﻊ اﻟﻔﺮاﻏﺎت ﻣﻦ اﻟﺠﻬﺔ اﻟﻴﺴﺮى واﻟﻴﻤﻨﻰ‬
                                                                              ‫اﻟﻤﺜﺎل:‬



                                                                        ‫اﻟﺪاﻟﺔ ‪:LoadPicture‬‬
                                                                          ‫ﺗﻘﻮم ﺑﺘﺤﻤﻴﻞ ﺻﻮره‬
                                                                                   ‫اﻟﻤﺜﺎل:‬



                                                                               ‫اﻟﺪاﻟﺔ ‪:MkDir‬‬
                                                                               ‫ﺗﻘﻮم ﺑﻌﻤﻞ ﻣﺠﻠﺪ‬
                                                                                      ‫اﻟﻤﺜﺎل:‬



                                                                            ‫اﻟﺪاﻟﺔ ‪:QBColor‬‬

‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                                               ‫ﺗﻘﻮم ﻫﺬه اﻟﺪاﻟﺔ ﺑﺘﻠﻮﻳﻦ اﻟﻜﺎﺋﻨﺎت‬
                                                                                        :‫اﻟﻤﺜﺎل‬



                                                                       : Randomize ‫اﻟﺪاﻟﺔ‬
                                                                           ‫ﺗﻘﻮم ﺑﻤﻨﻊ اﻟﺘﻜﺮار‬




                                                                       :SavePicture ‫اﻟﺪاﻟﺔ‬
                                                                         ‫ﺗﻘﻮم ﺑﺤﻔﻆ اﻟﺼﻮرة‬
                                                                                  :‫اﻟﻤﺜﺎل‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                   SQL ‫ﺃﻭﺍﻣﺮ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                       97 ‫ﲢﻮﻳﻞ ﺍﻷﻛﺴﻴﺲ ﺍﱃ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                               :‫اﺗﺒﻊ اﻟﺨﻄﻮات اﻟﺘﺎﻟﻴﻪ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                 ‫ﺭﺑﻂ ﺍﻟﻔﻴﺠﻮﺍﻝ ﺑﻴﺴﻚ ﺑﺎﻷﻛﺴﻴﺲ‬
                ‫:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:‬
                   ‫ﺳﻮف ﻧﺮﺑﻂ اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ ﺑﺎﻷﻛﺴﻴﺲ ﻋﻦ ﻃﺮﻳﻖ أداة ‪Data Control‬‬
                    ‫أوﻻ: ﺿﻊ ﻣﺸﺮوﻋﻚ اﻷﻛﺴﻴﺲ ﻓﻲ ﻧﻔﺲ ﻣﺠﻠﺪ ﻣﺸﺮوع اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ‬
                                                                            ‫ﺎ‬
                      ‫ﺛﺎﻧﻴً: ﻏﻴﺮ أﺳﻢ ﻣﺸﺮوﻋﻚ ﺑﺎﻷﻛﺴﻴﺲ وأﺟﻌﻠﻪ ‪ S‬وأﺳﻢ اﻟﺠﺪول ‪tell‬‬
                            ‫وﺿﻊ ﺣﻘﻠﻴﻦ اﻟﺤﻘﻞ اﻷول: ‪ name‬اﻟﺤﻘﻞ اﻟﺜﺎﻧﻲ: ‪number‬‬
                         ‫ﺛﺎﻟﺜً: ﺿﻊ أداة ‪ Data Control‬ﻓﻲ ﻣﺸﺮوع اﻟﻔﻴﺠﻮال ﺑﺴﻴﻚ.‬‫ﺎ‬
                           ‫ﺿﻊ ﺛﻤﺎﻧﻴﻪ ﻣﻦ أداة ‪ Command‬وﺛﻼث ﻣﻦ أداة ‪TextBox‬‬
                                                     ‫أﻓﺘﺢ ﻣﺸﺮوع اﻟﻔﻴﺠﻮال ﺑﻴﺴﻚ.‬
                            ‫ﻣﻦ ﺧﺼﺎﺋﺺ ‪ data‬ﻏﻴﺮ ‪ DataBaseName‬وﺣﺪد اﻟﻘﺎﻋﺪه‬
                           ‫وﻣﻦ ﺧﺼﺎﺋﺺ ‪ data‬ﻏﻴﺮ ‪ RecordSource‬وﺣﺪد اﻟﺠﺪول‬
                                         ‫وﻟﻜﻦ ﻟﻮ ﺗﻐﻴﺮ ﻣﺴﺎر اﻟﻘﺎﻋﺪة ﺳﻮف ﻳﻜﻮن ﺧﻄﺄ‬
                             ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ اﻟﻨﻤﻮذج وﺳﻮف ﻻﻳﻜﻮن ﻫﻨﺎك ﺧﻄﺄ :‬




                                ‫ﻏﻴﺮ ﺧﺼﺎﺋﺺ أداة ‪ TextBox‬اﻟﺘﻲ ﺗﻌﺮض ﻋﻠﻴﻬﺎ اﻷﺳﻢ:‬
                                ‫‪RecordSource‬‬                  ‫1‪Data‬‬
                                        ‫‪dataField‬‬             ‫‪Name‬‬
                                 ‫ﻏﻴﺮ ﺧﺼﺎﺋﺺ أداة ‪ TextBox‬اﻟﺘﻲ ﺗﻌﺮض ﻋﻠﻴﻬﺎ اﻟﺮﻗﻢ:‬
                                ‫‪RecordSource‬‬                  ‫1‪Data‬‬
                                        ‫‪dataField‬‬             ‫‪Number‬‬

                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺘﺎﻟﻲ:‬



                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺴﺎﺑﻖ:‬
‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                                      ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺴﺠﻞ اﻵﺧﻴﺮ:‬



                                                       ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺴﺠﻞ اﻷول:‬



                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺘﻌﺪﻳﻞ:‬



                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻷﺿﺎﻓﻪ:‬



                                                                ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺤﺬف:‬



                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺘﺮاﺟﻊ:‬



                                                               ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر اﻟﺘﺤﺪﻳﺚ:‬



                                                      ‫ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ ‪ TextBox‬اﻟﺒﺤﺚ:‬




‫‪Printed with FinePrint - purchase at www.fineprint.com‬‬
‫‪PDF created with pdfFactory trial version www.pdffactory.com‬‬
                                           .‫وﻫﻮ ﻳﻘﻮم ﺑﺎﻟﺒﺤﺚ ﻋﻦ ﻃﺮﻳﻖ اﻷﺳﻢ وﻳﻤﻜﻦ ﺗﻐﻴﺮه‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                    ‫ﻋﻤﻞ ﺗﻘﺮﻳﺮ‬
                :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:
                                                             : ‫ﻟﻲ أﺿﺎﻓﻪ ﺗﺮﺛﺮ أﻋﻤﻞ اﻟﺘﺎﻟﻲ‬
                                                       Data Report ‫ إﺧﺘﺮ‬Project ‫اﻟﻘﺎﺋﻤﺔ‬




                  ‫ ﺛﻢ ﻓﻮق‬More ActiveX Designer ‫ أﺿﻐﻂ ﻋﻠﻰ‬Project ‫ﻣﻦ ﻗﺎﺋﻤﺔ‬
                                           :Environment Data ‫أﺿﻐﻂ ﻋﻠﻰ‬




                          :     ‫ ﺛﻢ أﺿﻐﻂ ﻋﻠﻰ زر اﻟﺨﺼﺎﺋﺺ‬Connection1 ‫أﺷﺮ ﻋﻠﻰ‬


Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                   :     ‫ﺛﻢ أﺿﻐﻂ ﻋﻠﻰ اﻟﺨﺼﺎﺋﺺ‬                   add Command ‫أﺿﻐﻂ ﻋﻠﻰ‬




                                                                      .‫ ﻫﻮ أﺳﻢ اﻟﺠﺪول‬Tell




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                 :‫ وﻏﻴﺮ اﻟﺨﺼﺎﺋﺺ اﻟﺘﺎﻟﻴﻪ‬Data Report ‫اﻷن إذﻫﺐ إﻟﻰ‬
                                     Data Sourse            DataEnvironment1
                                   Data Member                  Command1
                                          :‫وﻫﻨﺎك ﻃﺮﻳﻘﻪ آﺧﺮى ﺑﺪﻳﻠﻪ ﻋﻦ اﻟﺴﺤﺐ وﻫﻲ أﺳﻬﻞ‬
                        :‫ وﻏﻴﺮ اﻟﺨﺼﺎﺋﺺ اﻟﺘﺎﻟﻴﺔ‬DataReport ‫وﺿﻌﻬﺎ ﻓﻲ‬            ‫أﺧﺘﺮ أداة‬
                                          DataField              ‫ﺗﺤﺪﻳﺪ اﻟﺤﻘﻞ‬
                                    DataMember                  ‫ﺗﺤﺪﻳﺪ اﻟﺠﺪول‬
                                          CanGrow ‫ﻟﻌﺮض ﺳﺠﻞ واﺣﺪ أم ﻛﺎﻓﺔ اﻟﺴﺠﻼت‬


Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                               :‫اﻷن ﺿﻊ اﻟﻜﻮد اﻟﺘﺎﻟﻲ ﻓﻲ زر ﻟﻌﺮض اﻟﺘﻘﺮﻳﺮ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com
                                                               :‫ﻟﻸﺳﺘﻔﺴﺎر‬
                              Plantsman9009@hotmail.com
                                                      :‫ﺗﺄﻟﻴﻒ‬
                                         ‫ﻣﺸﺮف ﻧﺎﺻﺮ اﻟﺮوﻳﻠﻲ‬


                               ‫وﺳﻮف ﻳﺘﻢ إﻧﺸﺎء اﻟﺠﺰء اﻟﺜﺎﻧﻲ ﺑﺈذن اﷲ‬




Printed with FinePrint - purchase at www.fineprint.com
PDF created with pdfFactory trial version www.pdffactory.com

				
DOCUMENT INFO
Shared By:
Stats:
views:584
posted:1/18/2011
language:Arabic
pages:42
Description: كتاب طريق الاحتراف إلى فيجوال بييسك