Tuesday, April 30, 2013

Overloading Object oriented programming का एक महत्वपूर्ण feature है जो की किसी procedure के multiple versions बनाने और उन्हे अलग अलग tasks के लिए use करने के सुविधा प्रदान करता है। overloading मे procedure का नाम same होता है इसमे केवल prameteres मे difference होता है जो की उसी procedure को एक ही नाम से अलग अलग प्रकार से task perform करने मे हेल्प करता है। इसका उदेश्य किसी procedure के अलग अलग versions बनाना है जिनके नाम एक ही...

Mybase की तरह की यह keyword किसी method को override करने पर derived class की overrided method को कॉल करने के लिए use की जाती है। यह निश्चित कर देती है की call की गई method इसी derived class की overrided method है। Public Overrides Function Area() As Double Return ((Math.PI * Radius * MyClass.length) + MyBase.Area()) End Function Limitations of MyClass keyword: MyClass real object नहीं है इसीलिए इसके द्वारा variable मे value...

Monday, April 29, 2013

Mybase keyword inheritance मे base class की overrided method को call करने के लिए use की जाती है। जब inheritance करते समय कभी भी base class की overrided method की आवश्यकता पड़ती है तब mybase keyword का use कर use call कर सकते हैं। जैसे given example मे जब Circle के area calculate किया जाता है साथ ही जब Cone का area calculate करते है तब Circle class के area को override करने के आवश्यकता पड़ती है इसमे base class (Circle) के area...

Inheritance Modifiers:          Inheritance के लिए Visual basic .Net कुछ class level modifiers provide करता है।  NotInheritable: class को ininheritable बनाने के लिए। ऐसी class को inherite नहीं किया जा सकता हैं। MustInherit: इसका use करने पर class को base class मे use करना अनिवार्य हो जाता है।   इसे केवल base class की तरह ही use किया जा सकता है। Oerriding Properties and...

VB.net मे सभी classes को inherite किया जा सकता है। लेकिन ऐसी सभी classes जिनमें की       NotInheritable keyword का use किया गया है inherite नहीं की जा सकती हैं। Classes को other projects से भी inherite किया जा सकता है। VB.Net केवल Single और Multilevel inheritance को support करती है। Inheritance करने के लिए Base और Derieved class दोनों के access type equal होने चाहिए तभी inheritance possible है।...

Inheritance VB.Net का एक महत्वपूर्ण feature है जो कि एक class को किसी अन्य class के features को use करने के facility provide करता है। यह पहले से बनी हुई class पर based नई class बनाने की सुविधा देता है। यह reusability को support करता हैं जहां किसी feature को जोड़ने या पुराने class के features को use करने के लिए उन्हे फिर से नहीं बनाना पड़ता है उन्हे inheritance के द्वारा पुरानी class से inherite कर नई class मे add कर लेते हैं।...

Constructors: किसी object को declare करते समय उसे construct करते समय new keyword का use कर उसका नया instance create किया जाता है। जब किसी class के object को declare करते है तब new keyword object का नया instance बनाने के लिए प्रयोग होता है। Constructors ऐसे member functions हैं जो कि किसी भी नए object मे fields और properties को initialize करने के लिए use किए जाते हैं। जब object को create करने के लिए new keyword का use करते है...

Methods: Methods object द्वारा perform किए जाने वाले actions को represent करते हैं। methods functions को ही कहा जाता है। इन्हे किसी special task को perform करने के लिए use किया जाता है। यह किसी भी problem को devide कर उसे easy बना देते हैं। <Access modifier> Function <Function Name> ([arguments]) As <Return Type> [Function’s statements] Return <returning value> End FunctionEx: Public Function...

Properties: Properties class मे use होने वाली fields की तरह होती हैं। लेकिन इन्हे Get और Set property के द्वारा implement किया जाता है। जो की data को control कर input और output को कंट्रोल किया जाता है। इसमें data को set करते समय उसे verify भी किया जा सकता है।          Set Section data को property मे set करते समय use होता है। और Get Section data को property से retrieve करते समय invoke...

Fields: Classes fields, properties, methods और events से मिलकर बनती है। यह सभी object information को contain करती है। Fields class मे use होने वाले variables को कहते है। जिसमें value को directly read और write किया जा सकता है। Fields को normal variables की तरह ही declare किया जाता है। इन्हे member variables भी कहते हैं जो कि data को handle करने कि लिए किया जाता है। Previous program मे cradius field है। Private cradius As Double...

Objects run-time entity हैं जो की class को run करने के लिए use की जाती है। class के variable को ही object कहा जाता है। यह run होकर class के data को store और use class के functions के द्वारा process करता है। इसके create होने पर यह memory मे space लेता है और delete होने पर यह space system को वापस हो जाता है। VB.Net मे object को declare करने के लिए variable declaration statement का use new keyword किया जाता है। Syntax Dim <obj_name>...

Friday, April 26, 2013

Circle.cs Public Class Circle     Private cradius As Double     Public Property Radius() As Double         Get             radius = cradius        ...

VB.Net एक Object oriented programming language है इसलिए यह इसके सभी features को support करती है। जो निम्न हैं- Class: class एक user defined data type है जो की data और functions को contain करता है। इसका कोई visible interface नहीं होता है और न ही ये खुद से run हो सकती हैं। VB.Net मे Class fields, properties, methods और events को contain...

Object: यह OOPs की basic run-time entity है। जो कि किसी object (person, place, a bank account etc.) को represent करता है। object class का variable है जो कि class को execute करता है और उसमे उपलब्ध methods को use कर डाटा को process करता है। object के create होने पर यह memory मे अन्य variables की तरह ही space लेता है। Class : Class एक user defined data type है जो कि data और code को contain करता है जो कि object द्वारा use किया...

Programming मे दो प्रकार के program paradigm का use किया जाता है। यह Procedure Oriented और Object oriented programming हैं। नए समय की सभी programming languages Object oriented programming को use करती हैं। OOPs एक software development paradigm है जो कि procedure oriented approach मे आने वाले problems कोsolve करने के लिए किया जाता है। Object oriented programming, Data को program development के दौरान system मे flow नहीं होने देता।...

             यह Label की तरह का ही होता है लेकिन यह HTML मे दी जाने वाली Links की तरह होता है जिसमे click करने पर कोई page open होता है। इसी प्रकार इसमे भीclick करने पर यह किसी page से लिंक होती है। इसमे label control की सभी properties use होती हैं इसके अलावा इसमे कुछ अन्य properties...

Thursday, April 25, 2013

Open, Save, Color, Font and Print Dialog Controls Imports System.IO Public Class Dialogss     Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         OpenFileDialog1.Title = "Select File to open"        ...

         इसका use Print Dialog box को display करने के लिए किया जाता है। यह सबसे important dialog control है क्योकि अधिकतर windows application documents को print करते है। अतः printing मे इसका use किया जाता है। यह dialog box printing के सभी option automatically provide करता है। इसमे printer, pages, print...

      Color dialog control का use color dialog box को display करने के लिए किया जाता है। यह dialogbox color को select करने और colors को मिलाकर नए colours बनाने की facility देता है। यह भी dialog controls की category के अंदर Toolbox मे पाया जाता है। इसे display करने के लिए ShowDialog control काuse किया जाता है। इसमे...

  इसका use font dialog box को display करने के लिए किया जाता है। font dialog box मे Font का name, size, color, type etc. set करने केfacility होती है। इन सभी settings को font dialog control का use कर display किया जाता है। यह font से related सभी प्रकार की settings के लिए use किया जाता है। जैसे – bold, italic, underline, script etc. इसे...

   Save dialog box किसी file को save करते समय displayहोता है। इसका use file को save करने के लिए location और उसका name setकरने की facility देता है। Save पर click करने पर display होने वाले dialog box को Save File Dialog box कहते हैं। चूंकि windows के ज़्यादातरapplications user को file save करने के लिए prompt करते हैं इसीलिएVB.Net मे...

     इसका use open file dialog box को display करने के लिए किया जाता है। यह dialog box user को file select और open करने की सुविधा प्रदान करता है। यह user को multiple files select करने के सुविधा देता है। इसमे files और folders की list display होती है। जिसमे से user files को select कर सकता है और उन्हेprocess कर सकता है। इसे...

Tuesday, April 23, 2013

Windows Applications मे अधिकतर applications मे user को filename, font name और size, color etc. के लिए prompt करते है। इन common works के लिएdialog box बनाना एक कठिन कार्य है। windows OS इसके लिए standard dialog box provide करता है। जो कि इस प्रकार के सभी common tasks को perform करते है।VB.Net मे यह common dialog box use किए जा सकते है।...
Page 1 of 141234567...14Next »Last

Contact us

Name

Email *

Message *