VB 0.6 TreeView Control lesson Part5

بسم الله الرحمن الرحيم



توقفنا فى الجزء الرابع السابق عند خواص الـ Node
و موضوع اليوم ان شاء الله عن ربط الـ Tree-view بقاعدة بيانات MS Access 2003
TreeView & MS Access2003 Database
 و المثال سيكون عباره عن : لدينا قاعدة بيانات Access 2003 سنقوم بعرض اسماء الجداول على شكل Root و اسماء الحقول على شكل Child و البيانات فى Text-boxes قابل للتعديل ( اضافة و حذف ) .
أى أننا سنقوم بعمل برنامج يقوم باستدعاء أى قاعدة بيانات Access 2003 و تعديلها كما نحب , و سنبدأ بمشروع جديد .
حيث سيكون شكل البرنامج النهائى كما بالشكل رقم (1) .
شكل البرنامج النهائى
1) قاعدة البيانات :
قم بتصميم أى قاعدة بيانات Access 2003 , فى المثال قاعدة البيانات باسم (Employees.mdb) تحتوى على جدولين (Info - Salary)
حيث Info عبارة عن 4 حقول هى
(ID P.Key Text 50 - Name Text 50 - Age Text 50 - Section Text 50)
و Salary عبارة عن 5 حقول هى
(ID P.Key Text 50 - Total Number Double - Cuts Number Double - Net Number Double - Month Date/Time)
يتم التوصيل بقاعدة البيانات باستخدام تقنية ADO 2.8 
2) الشرح :
عند بداية البرنامج تختار أى قاعدة بيانات و لتكن قاعدة البيانات التى صممناها عن طريق مفتاح Browse حيث يظهر مسارها فى TextBox ثم نضغط على Connect لتوصيلها بالبرنامج حيث تظهر محتوياتها فى الـ TreeView
عند الضغط على أى Root اذا كان به Child s يقوم بعرضهم فى مستوى أقل منه و تكون عباره عن اسماء الجداول ثم على اسم الجدول عند الضغط عليه يقوم بعرض Child فى مستوى أقل منه و تكون اسماء الحقول ثم عند الضغط على اسم الحقل اذا كان به Child تظهر فى مستوى أقل منه و تكون عباره عن القيمة التى تعرض فى الـ TextBox الثانى .
عند ظهور القيمة فى الـ TextBox يمكن تحديثها , و يمكنك اضافة الاكواد و الافكار كما تشاء حيث يمكنك عمل مشروعات كامله من هذا المثال ....
3) رابط المشروع MediaFire.com
4) اذا كان لديك أى سؤال أضف تعليق و سيتم الرد عليه ان شاء الله فى اقرب وقت

Visual Basic 6.0 Lessons, Tricks, Tutorials and help links :
- Visual Basic 6.0 TreeView Control lesson (Part1 - Part 2 - Part3 - Part4 - Part5) Arabic.

Comments

  1. What's up to all, it's really a fastidious for me to pay a
    visit this site, it contains important Information.

    Here is my page ... ClintNStanbaugh

    ReplyDelete
  2. If you are going for most excellent contents like I do, just go to see this site all the time as it offers
    quality contents, thanks

    My weblog - ErnestoZMcneeley

    ReplyDelete
  3. Ahaa, its good discussion about this post here at this blog, I
    have read all that, so at this time me also commenting
    at this place.

    Also visit my web blog; CandanceMSaults

    ReplyDelete
  4. I'm not sure exactly why but this blog is loading
    very slow for me. Is anyone else having this problem or is it a problem
    on my end? I'll check back later and see if the problem still exists.


    Look into my web page; AntoneJNiedzwiecki

    ReplyDelete
  5. Hey there fantastic website! Does running a blog like this take a massive amount work?

    I have no knowledge of computer programming but I was hoping to
    start my own blog soon. Anyway, should you have any ideas or tips for new blog owners please
    share. I know this is off subject however I simply had to ask.
    Thanks a lot!

    Feel free to surf to my webpage ... XiomaraEHolihan

    ReplyDelete
  6. I’m not that much of a online reader to be honest but your blogs
    really nice, keep it up! I'll go ahead and bookmark your website to come back later.
    All the best

    Visit my webpage: JacintaEStinton

    ReplyDelete
  7. I'd like to find out more? I'd love to find out some
    additional information.

    Here is my web site - CarollKNeblett

    ReplyDelete
  8. I am actually grateful to the holder of this web site who has
    shared this enormous paragraph at here.

    Also visit my blog - NatishaGMolima

    ReplyDelete
  9. Hmm is anyone else experiencing problems with
    the pictures on this blog loading? I'm trying to figure out if its a problem on my
    end or if it's the blog. Any feed-back would be greatly appreciated.


    Have a look at my web blog :: LauraleeSMaedche

    ReplyDelete
  10. Thanks for sharing your thoughts on books. Regards

    Feel free to visit my web page: TennieOBlazosky

    ReplyDelete

Post a Comment

visual basic 6 source code says (Hi)

VB6 Popular Posts

Visual Basic Online Course - Function Keys (F1 to F12)

VB 0.6 - Save Files Using DialogBox Control

Free download Visual Basic 6 Documentation MSDN