Visual Basic 6.0 translation

Thursday, February 16, 2012

VB 0.6 TreeView Control lesson Part3

بسم الله الرحمن الرحيم
توقفنا فى الجزء الثانى السابق عند خاصية LabelEdit .
و موضوع اليوم ان شاء الله عن خاصية SelectedItem
SelectedItem Property - خاصية العنصر المختار
و موضوع اليوم ان شاء الله عن خاصية SelectedItem أو العنصر المختار و هى خاصية من خصائص الـ ActiveX Control عموما و لكن فى TreeView تشير الى Nodes و هى العناصر التى يمكن اختيارها .
الــــــــكود :
حيث Object تشير الى Node .
- و عند تنفيذ SelectedItem فانه يعود بقيمة هى العنصر التى تم اختيارة من مجموعة العناصر .
- مثال : حذف جميع الـ Nodes المختاره و التى ليست Root .
اضف مفتاح Command للـ TreeView4 باسم Delete Child Nodes و الصق الكود التالى فى الحدث Click
' If the selected object is not the root, then remove the Node.
   If TreeView4.SelectedItem.Index <> 1 Then
      Treeview4.Nodes.Remove TreeView1.SelectedItem.Index
   End If

قم بتجريب المشروع و اختار اى Node من TreeView4 ثم اضغط على Command باسم
Delete Child Nodes و لاحظ انه يحذف كل الـ Nodes التى ليست Root أو أول Node فى
الـ TreeView4 .
Style Property - خاصية الشكل
الـــــــكود :
Object.Style = number
حيث Object تشير الى TreeView و number تشير الى رقم الشكل المشار اليه فى جدول الاعدادات الخاص به :

الاعدادات :
الرقم (الاعدادات)
نص فقط
نص و صورة
نص و علامة + أو -

نص و علامة + أو - و صورة
نص و خطوط

نص و خطوط و صورة

نص و علامة + أو - و صورة و خطوط
الوضع الافتراضى :
نص و علامة + أو - و صورة و خطوط
لاحـــــــــــــــــظ :
اذا كان وضع الـ Style يحتوى على Lines خطوط فان خاصية LineStyle تحدد شكل الخط, اما اذا كان وضع الـ Style لا يحتوى على Lines خطوط "على سبيل المثال الوضع 0" فان خاصية LineStyle يتم تجاهلها مباشرة.
و يمكنك تجربة ذلك بمثال عملى على أى TreeView فى المثال المرفوع فى الدرس السابق حيث ستغير الخاصية بالكود أو من خلال شاشة الخصائص.

الجزء القادم :


  1. Currently it seems like Expression Engine is the best blogging platform out there right
    now. (from what I've read) Is that what you are using on your blog?

    Feel free to surf to my blog DomingoNDrought

  2. It's a pity you don't have a donate button! I'd definitely donate to
    this fantastic blog! I suppose for now i'll settle for book-marking and adding your
    RSS feed to my Google account. I look forward to brand new updates and will talk about this
    site with my Facebook group. Talk soon!

    Feel free to visit my web page ... WeiKHeebsh

  3. I have read a few excellent stuff here. Definitely value bookmarking for revisiting.

    I surprise how a lot attempt you place to make such
    a great informative site.

    Also visit my web blog :: WmVBlaker

  4. This website certainly has all the information and
    facts I needed concerning this subject and didn't know who to ask.

    Feel free to visit my web site; AlfredaYRotenberry

  5. I’m not that much of a internet reader to be honest but your sites really nice,
    keep it up! I'll go ahead and bookmark your website to come back down the road.

    Many thanks

    Feel free to visit my webpage :: BradleyPPaugh

  6. Attractive section of content. I just stumbled upon your
    weblog and in accession capital to assert that I get actually enjoyed
    account your blog posts. Anyway I'll be subscribing to your
    augment and even I achievement you access consistently quickly.

    my website - EmmettRKaehler

  7. Thanks to my father who shared with me about this blog, this webpage is truly amazing.

    my web site ... ArlenDKingsberry


visual basic 6 source code says (Hi)

Visual Basic Online Course

vb6 (63) Application Development (45) Visual Basic Online Course (45) Online Visual Basic Course (44) Visual Basic Help (44) Visual Basic Programming (42) IT Jobs (39) VB6 developer (38) Visual Basic Course (38) Visual Basic 6.0 (26) Microsoft Visual Basic 6.0 (25) VB6.0 (24) Visual Basic Programmers (24) vb 6.0 (24) visual basic programming tutorial (19) Third lesson (16) Source code download for Visual Basic 6.0 (14) Source code for Visual Basic 6.0 (10) visual basic tutorial (9) Visual Basic 6 (5) Visual Basic Courses (5) Lesson 3 (4) VB 0.6 - TreeView control (4) VB 0.6 With TreeView Control (4) VB6 Course (3) Create ActiveX (2) How to automate MS-Access from Visual Basic 6.0 (2) Add controls at runtime (1) Back up your Database (1) Change ActiveX icon (1) Change screen resolution (1) Create FTP (1) Crystal Reports 4.6 (1) Crystl32.ocx could not be loaded (1) DataGrid Columns re-size (1) Date Calculation (1) DateAdd Function (1) DateDiff function (1) FTP (1) Marquee Title Bar (1) Marquee VB 6.0 TitleBar (1) Method 'Action' of object 'CrystalCtrl' Failed (1) Microsoft Access with Visual Basic 6.0 (1) OpenSchema method (1) Save File Using CommonDilog (1) Track Database path (1) VB 0.6 - Registry (1) VB 0.6 With Registry Editor (1) VB 6.0 Access (1) VB 6.0 OOP (1) VB6 Access2003 ADO Like % (1) VB6 Add Date (1) VB6 Add Time (1) VB6 Date calculation (1) VB6 Subtract Date (1) Visual Basic Remote (1) Win7 (1) Windows7 (1) ms access networking details (1) remote Visual Basic DB (1) rounded and transparent forms (1) vb 0.6 style (1) vb 6.0 Remote Database (1)