Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Vb6inhindi 150412043354-conversion-gate01

Sirajrock

  • Inicia sesión para ver los comentarios

Vb6inhindi 150412043354-conversion-gate01

  1. 1. VB6 in Hindi B c c F a l n a . c o m 0 9 7 9 9 4 - 5 5 5 0 5 Kuldeep Chand Visual Basic 6 was the most used Programming Language for Professional Database Application Development for the Event Driven Programming Model. In this EBook, I have discussed about how we can develop Windows Based GUI (Graphical User Interface) Application Software with easy steps because Visual Basic 6 was the Most Easy Programming Language for Windows Application Development then any other Programming Langauge. Although Visual Basic 6 is Out of Market now, but Microsoft is still using the Core Concepts of Visual Basic 6 in Modern Programming Languages named C#.NET and VB.NET. So, if you want to learn Visual C# or VB.NET, you will get Good Benefit from this eBook to understand Microsoft’s Event Driven Programming Model.
  2. 2. 1 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi ■■■ Kuldeep Chand BetaLab Computer Center Falna
  3. 3. 2 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Visual Basic 6 in Hindi Copyright © 2011 by Kuldeep Chand All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Lead Editors: Kuldeep Chand Distributed to the book trade worldwide by Betalab Computer Center, Behind of Vidhya Jyoti School, Falna Station Dist. Pali (Raj.) Pin 306116 e-mail bccfalna@gmail.com or visit http://www.bccfalna.com For information on translations, please contact Betalab Computer Center, Behind of Vidhya Jyoti School, Falna Station Dist. Pali (Raj.) Pin 306116 Phone 097994-55505 The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, the author shall not have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this book.
  4. 4. 3 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi This book is dedicated to those who really wants to be a ProfessionAl Developer
  5. 5. 4 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Index Of Contents
  6. 6. 5 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Table of Contents Implementing Navigational Design............................................................................ 10 Introduction............................................................................................................ 10 Understanding Menu Basics.................................................................................. 10 Menu Creation With Menu-Editor .......................................................................... 11 Using The Menu Editor.......................................................................................... 11 Attaching Code With Menu Items .......................................................................... 13 Dynamic Modification Of Menu Items.................................................................... 14 Adding Pop-Up Menu With Application ................................................................. 15 MouseUp Event and MouseUp Event Procedure.................................................. 16 MouseUp Event Procedure – The Button Argument ............................................. 17 MouseMove Event and MouseMove Event Procedure ......................................... 18 MouseUp Event Procedure – The Shift Argument................................................. 19 Popup Method ....................................................................................................... 21 Menu As Object ................................................................................................. 21 Flags .................................................................................................................. 22 X, Y .................................................................................................................... 22 DefaultMenu....................................................................................................... 23 Adding Deleting Menu Items At Runtime............................................................... 24 Creating Runtime Menu Items............................................................................... 24 Adding Controls To Form .......................................................................................... 28 Introduction............................................................................................................ 28 Container Controls................................................................................................. 28 Setting Properties .................................................................................................. 29 Common Properties............................................................................................... 30 Name Property................................................................................................... 30 Enabled Property ............................................................................................... 31 Visible Property.................................................................................................. 31 Font Property ..................................................................................................... 31 Size And Position Properties ............................................................................. 32 TabIndex and TabStop Properties ..................................................................... 32 Assigning Access Key To TextBox Control........................................................ 33 CommandButton Control – Important Properties............................................... 33 TextBox Control – Important Properties............................................................. 35 Label Control – Important Properties ................................................................. 37 Events and Event Procedures ............................................................................... 38 The Click Event.................................................................................................. 38 The DblClick Event ............................................................................................ 39 MouseUp and MouseDown Events.................................................................... 39 The MouseMove Event ...................................................................................... 40 The Change Event ............................................................................................. 40 The KeyPress Event .......................................................................................... 41 The KeyUp Event............................................................................................... 41 The KeyDown Event .......................................................................................... 41 The GotFocus and LostFocus Event ................................................................. 41 Interface Improvement With ActiveX Controls .......................................................... 43 Adding ActiveX Control To Toolbox....................................................................... 43 The ImageList Control ........................................................................................... 44 ListImage Object and ListImages Collection...................................................... 45 Add and Remove Methods ................................................................................ 46 Draw Method...................................................................................................... 46
  7. 7. 6 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Overlay Method.................................................................................................. 47 ImageHeight and ImageWidth Properties .......................................................... 48 ListImages Property ........................................................................................... 48 MaskColor and UseMaskColor Properties......................................................... 48 TreeView Control................................................................................................... 49 Node Object and Nodes Collection.................................................................... 49 Add and Remove Methods ................................................................................ 49 EnsureVisible and GetVisibleCount ................................................................... 53 TreeView Properties .......................................................................................... 54 TreeView Events................................................................................................ 57 ListView Control..................................................................................................... 58 ListItem Object and ListItems Collection............................................................ 58 Index and Key Property ..................................................................................... 58 View Property..................................................................................................... 59 Add and Remove Methods ................................................................................ 59 Icon and SmallIcon Properties ........................................................................... 61 Arrange Property................................................................................................ 62 Sorted, SortKey and SortOrder Properties ........................................................ 62 ColumnHeader Object and ColumnHeaders Collection..................................... 63 SubItems Property ............................................................................................. 63 ItemClick Event.................................................................................................. 63 ColumnClick Event............................................................................................. 64 Toolbar Control...................................................................................................... 64 Custom Properties Setting ................................................................................. 64 Button Object and Buttons Collection ................................................................ 65 Style Property .................................................................................................... 66 Appearance Properties ...................................................................................... 67 Add and Remove Methods ................................................................................ 67 ButtonClick Event............................................................................................... 68 Customizing Toolbars ........................................................................................ 69 StatusBar Control .................................................................................................. 70 Panel Object and Panels Collection................................................................... 70 Add and Remove Methods ................................................................................ 72 Controls Collection ................................................................................................ 73 Adding and Deleting Controls Dynamically........................................................ 74 Adding and Removing Control In The Controls Collection................................. 80 Forms and Dialog Boxes ....................................................................................... 81 Loading and Unloading Forms........................................................................... 82 Showing and Hiding Form.................................................................................. 84 Using The Forms Collection............................................................................... 84 Forms Collection – Methods and Properties...................................................... 85 User Input Validation................................................................................................. 89 KEYSTROKE Events At Field And Form Level ..................................................... 89 The KeyPress Event .......................................................................................... 89 The KeyUp and KeyDown Events...................................................................... 90 KeyPress Vs. KeyUp and KeyDown .................................................................. 92 KeyPreview Property Of The Form .................................................................... 92 Field-Level Validation Techniques ..................................................................... 93 The Change Event and Click Events ................................................................. 94 Enabling Controls Based On INPUT ..................................................................... 95 Input Data Processing............................................................................................... 98 Introduction............................................................................................................ 98
  8. 8. 7 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Form Related Events ......................................................................................... 98 Initialize, Load and Activate Events....................................................................... 99 Initialize Event.................................................................................................... 99 Load Event and Activate Event.......................................................................... 99 DeActivate, Unload, QueryUnload and Terminate Events................................... 100 DeActivate Event ............................................................................................. 100 QueryUnload Event.......................................................................................... 100 Unload Event ................................................................................................... 102 Terminate Event............................................................................................... 102 Activate/DeActivate v/s GotFocus/LostFocus Events.......................................... 102 Show/Hide Methods Vs Load/Unload Statements............................................... 103 Unload and QueryUnload Events In MDI Application.......................................... 103 Data Access Technology ........................................................................................ 106 Introduction.......................................................................................................... 106 OLE DB and ADO ............................................................................................ 106 ADO and ADO Object Model............................................................................... 107 Connection Object ........................................................................................... 107 Command Object ............................................................................................. 108 Recordset Object ............................................................................................. 110 The Record Object........................................................................................... 112 The Stream Object........................................................................................... 113 The Properties Collection and the Property Object.......................................... 113 The Errors Collection and the Error Object...................................................... 114 Automated Data-Binding Tools............................................................................ 115 Managing ADO Objects With Data Environment Designer.............................. 115 Adding Connection and Command Objects..................................................... 116 Binding Visual Basic Objects With Data Environment Objects ........................ 119 Programming With Data Environment Designer .............................................. 120 ADO Events For Objects Under Data Environment ......................................... 122 Accessing Data With ADO and ADO Data Control.............................................. 122 ADO Data Control ............................................................................................ 122 ADO Data Control Setup.................................................................................. 123 EOFAction and BOFAction Properties............................................................. 125 Binding Visual Basic Controls with Recordset Of ADO Data Control............... 126 Adding Records With ADO Data Control ......................................................... 126 Editing Existing Records With ADO Data Control............................................ 127 Canceling Pending Editing Changes On Bound Controls................................ 127 Programming Other Actions On Recordset Of ADO Data Control................... 128 Error Event Of ADO Data Control .................................................................... 128 Programming With ADO ...................................................................................... 129 Initializing Connection Object In Code ............................................................. 130 Initializing Command Object In Code............................................................... 134 Recordsets Object ........................................................................................... 134 ADO Data Access Models....................................................................................... 150 Stored Procedures............................................................................................... 154 Advantages Of Stored Procedures .................................................................. 154 Creating Stored Procedures ............................................................................ 155 Using Stored Procedure To Execute SQL Statements .................................... 159 Using Stored Procedures To Execute Processes Without Cursors ................. 162 Advantage Of Stored Procedures .................................................................... 163 Using Stored Procedures To Return Records ................................................. 164 Cursors ................................................................................................................ 167
  9. 9. 8 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Using Cursor Locations.................................................................................... 167 Using Cursor Types ......................................................................................... 169 Managing Database Transactions....................................................................... 170 BeginTrans Method.......................................................................................... 171 CommitTrans Method ...................................................................................... 171 RollbackTrans Method ..................................................................................... 171 Locking Strategies For Data Integrity .................................................................. 172 adLockReadOnly (Default)............................................................................... 173 adLockPessimistic ........................................................................................... 173 adLockOptimistic.............................................................................................. 173 Choosing Cursor Options .................................................................................... 173
  10. 10. 9 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Implementing Navigational Design
  11. 11. 10 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Implementing Navigational Design Introduction ,d Visual Basic Application dh Functionality dks Improve djus ds fy, Menu Bars cgqr gh ljy rjhdk iznku djrs gSaA Menu Bars dk iz;ksx djds ge vius Program dks T;knk csgrj rjhds ls Control dj ldrs gSaA Menu Bar gesa”kk T;knkrj Applications esa Top ij gksrk gSA Visual Basic IDE gesa ,d Built-In Menu Editor iznku djrk gS] ftldk iz;ksx djds ge dkQh vklkuh ls vius Application dk Menu Create dj ldrs gSaA ,d ckj Menu Bar dks Create dj nsus ds ckn ge Menu ds fdlh Hkh Option dks ftl rjg ls pkgsa ml rjg ls Program djds Use dj ldrs gSaA bl Top Level Menu Bar ds vykok ,d vkSj izdkj dk Menu Window Based Applications esa Create fd;k tkrk gS] ftls Popup Menu dgrs gSaA ;s Menu fdlh Particular Control ds fy, Define fd, tkrs gSa] blfy, ;s Control Specific Menu Hkh dgykrs gSaA bl izdkj ds Menus dks vDlj Context-Sensitive Menu Hkh dgk tkrk gSA User dks Customized Menu Options iznku djus ds fy, ge Menus dks Program ds Runtime esa Hkh Create dj ldrs gSaA Understanding Menu Basics Applications Menu Bars dk iz;ksx Commands ds ,d Organized Collection Represent djus ds fy, Define fd, tkrs gSaA ;s Menu Bars User dks lkjka”k ds :i esa Application dh Capabilities dh Information nsrs gSaA ;fn fdlh Program esa mfpr :i ls Organize fd;k x;k Menu Bar gks] rks User dkQh vklkuh ls Application o mlds fofHkUu Commands dks le> ldrk gSA User bu Menu Bar ds Options ds lkFk Assign dh xbZ Shortcut Keys dks Hkh vklkuh ls le> ldrk gS vkSj mi;ksx esa ys ldrk gSA pwafd ,d Menu Bar dk Application ds User ds fy, dkQh egRo gksrk gS] blfy, ,d Programmer dks dkQh lko/kkuh o lrdZrk ds lkFk Menu dks Design djuk gksrk gS] rkfd og User dks Application ds lEca/k esa T;knk ls T;knk tkudkjh iznku dj ldsA Programmers Visual Basic 6 esa nks rjhdksa ls Menus dks Create dj ldrs gSaA igys rjhds esa ,d Programmer Visual Basic 6 ds IDE ds lkFk vkus okys Built-In Menu Editor dk iz;ksx djds Menus Develop dj ldrk gSA bl rjhds dks Use djds dkQh rsth ls Menu dks Design o Maintain fd;k tk ldrk gSA ,d ckj Menu dks Design dj ysus ds ckn Menu ds gj Item dh Properties dks Programmatically Set fd;k tk ldrk gSA nwljs rjhds ls Menu dks Create djus ds fy, Programmer dks Windows ds Win-32 API Functions dk iz;ksx djuk gksrk gSA Win-32 API Functions Low Level Functions gksrs gSa] ftUgsa Operating System iznku djrk gSa vkSj Visual Basic }kjk bUgsa Use fd;k tkrk gSA Win32 API Functions ds lewg ds Specialized Functions dks Use djds ,d Programmer, Menu Items Create dj ldrk gS] Items dh Property dks Set dj ldrk gS vkSj Menu ds Structure dks Change dj ldrk gSA API esa tks Functionality gksrh gSa]
  12. 12. 11 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi muesa ls T;knkrj Functionality Menu Editor esa Hkh Available gksrh gSaA gkykafd ;s API gesa Menu dh {kerkvksa dks c<kus dh lqfo/kk iznku djrh gSa] ysfdu bUgsa Use djuk dkQh tfVy izfØ;k gksrh gSA Menu Creation With Menu-Editor Menu Editor dk iz;ksx djds Menu Create djus ds fy, gesa lcls igys Visual Basic IDE esa Standard EXE Project dks Select djuk gksrk gSA oSls ge fdlh Hkh izdkj ds Project esa Menu dks Add dj ldrs gSa] ysfdu ge gekjs T;knkrj mnkgj.kksa esa Standard EXE Project dks gh Use djsaxs] D;ksafd ;s dkQh Flexible gksrk gS vkSj ge bls fofHkUu izdkj ds vU; Project ds :i esa Define djds Use dj ldrs gSaA bl fp= esa ge ns[k ldrs gSa fd Form ds lcls Top ij fn[kkbZ nsus okys Menu dks Top-Level Menu dgk tkrk gS] tcfd bl Menu ls Related Menu dks Sub-Menu dgk tkrk gSA ge gekjh t:jr ds vk/kkj ij ftrus pkgsa] mrus Sub-Level rd Sub-Menus Create dj ldrs gSaA Sub-Menu rc Appear gksrk gS] tc ge Top-Level Menu dks Open djrs gSaA Sub-Menu fofHkUu izdkj ds Commands dks Implement djrk gS] tks fd Logically Top-Level Menu ls lEcaf/kr gksrs gSaA fp= esa fn, x, mnkgj.k esa geus File Menu Create fd;k gS] tks fd T;knkrj Applications esa gksrk gSA ;s ,d Top-Level Menu gS vkSj bl Menu esa lkekU;r;k File ls Related Options tSls fd New, Open, Close, Save, Save As vkfn gksrs gSaA ;s Options mu Commands dks Execute djrs gSa] tks fd Currently Opened File dks izHkkfor djrs gSaA Using The Menu Editor Standard Windows Menus gesa”kk Title Bar ls Just uhps Located gksrk gSA Menu-Editor dk iz;ksx djrs gq, Menu Create djus ds fy, gesa Form ij Right Click djuk gksrk gSA tc ge Form ij Right Click djrs gSa] rc ,d Popup Menu Display gksrk gSA bl Popup Menu ls gesa “Menu Editor…” Option dks Select djuk gksrk gSA tc ge bl Option dks Select djrs gSa] rc gesa vxys fp= ds vuqlkj Menu Editor Dialog Box fn[kkbZ nsrk gSA Visual Basic esa Menu-Editor gesa”kk Design Time esa gh miyC/k gksrk gS] tgka ge Menu dks viuh t:jr ds vk/kkj ij Design dj ldrs gSaA Menu Item Create djrs le; lcls igys gesa Menu ds Caption dks Set djuk gksrk gSA Menu Caption og uke gksrk gS] tks gesa Menu Bar ij fn[kkbZ nsrk gSA menu Caption esa ge tks uke fy[krs gSa] mlds ftl Character dks ge Access Key cukuk pkgrs gSa] ml Character ls igys Prefix ds :i esa ‘&’ Ampersand Character dks Use djuk gksrk gSSA Access Key og Character gksrk gS] tks Keyboard ds Alt Key dks Press djus ls Highlight gks tkrk gSA
  13. 13. 12 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Menu Bar ds fdlh Item dk Caption Set djus ds ckn gesa ml Menu Item dk og uke Specify djuk fy, gksrk gS] ftls Use djds ge ml Menu Item Object dks Program ds Code esa Use djus esa l{ke gks ikrs gSaA Visual Basic esa fdlh Hkh Object dk uke Specify djrs le; ge lkekU;r;k Hungarian Notation dk iz;ksx djrs gSaA bl Notation dk iz;ksx djds ge ;s r; djrs gSa fd ge fdl rjg ds Object dk uke Define dj jgs gSaA pwafd ge ;gka ij Menu Item dk uke Define dj jgs gSa] blfy, uke Specify djrs le; gesa Name Text Box esa Menu Item ds uke ds lkFk “mnu” Prefix dk iz;ksx djuk gksrk gS] tks fd Menu Item ds fy, Hungarian Notation gSA lkekU;r;k Hungarian Notation esa fdlh Hkh Object ds uke ds Short Form ds rhu Characters dk iz;ksx fd;k tkrk gS] ysfdu ge gekjh lqfo/kkuqlkj blls de ;k T;knk Characters dk iz;ksx dj ldrs gSaA ;fn ge fdlh Menu Item dks dksbZ Shortcut Key Assign djuk pkgsa] rks ;s dke ge Shortcut uke ds Combo Box }kjk dj ldrs gSaA bl Combo Box ls ge ftl Shortcut Key dks Select djrs gSa] Currently Define fd, tk jgs Menu Item ds lkFk og Shortcut Key Set gks tkrh gSA Menu Editor ij fuEukuqlkj ,d Button Set gksrk gS% Next Button bl Button ij Click djds ge vxys Menu Item ij Move gks ldrs gSaA Insert Button bl Button dk iz;ksx djds ge fdlh u, Menu Item dks igys ls Exist nks Menu Items ds chp esa u;k Menu Item Insert dj ldrs gSaA Delete Button bl Button ij Click djds ge fdlh Exist Menu Item dks Menu ls Delete dj ldrs gSaA bu Buttons ds vykok Menu Editor ij pkj Arrow Buttons gksrs gSaA Up Arrow o Down Arrow Button dk iz;ksx djds ge Menu esa fn[kkbZ nsus okys Menu Item dh Position dks Up ;k Down Direction esa Shift dj ldrs gSaA tcfd Right Arrow Button dk iz;ksx djds ge fdlh Menu Item dks Main Menu dk Sub Menu cukus ds fy, djrs gSa vkSj Left Arrow Button dks Use djds ge fdlh Sub Menu Item dks Main Menu Item ds :i esa Convert dj ldrs gSaA buds vykok Menu Editor ij Checked, Enabled, Visible o WindowList uke ds pkj Check Box Hkh gksrs gSa] ftudk iz;ksx djds ge fdlh Menu Item dh Check, Enable o Visible Property dks Set dj ldrs gSaA WindowList uke dk Check Box MDI Form ij Window ij Effect fn[kkrk gSA Menu Bar esa Separator dk iz;ksx djus ds fy, gesa fdlh Hkh Menu Item ds Caption esa ,d Single Dash dk iz;ksx fd;k tkrk gSA tc ge fdlh Menu Item ds Caption esa Dash dk iz;ksx djrs gSa] rks Program ds Run Time esa ;s ,d Separator dh rjg fn[kkbZ nsrk gSA
  14. 14. 13 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Attaching Code With Menu Items Visual Basic ,d Event Driven Programming Language gSA ge tc Hkh Computer ds lkFk fdlh Action dks Use djrs gSa] rks dksbZ uk dksbZ Event Generate gksrk gSA mnkgj.k ds fy, tc ge Mouse ls Click djrs gSa] rc Click Event Generate gksrk gSA blh rjg ls tc ge Keyboard ls fdlh Key dks Press djrs gSa] rc Keypress Event Generate gksrk gSA Visual Basic esa Develop fd, tkus okys Application esa ge fofHkUu izdkj ds dkeksa dks iwjk djus ds fy, bUgha Events dks mi;ksx esa ysrs gSaA mnkgj.k ds fy, tc ge Menu ds fdlh Item ij Click djrs gSa] rc Click Event Generate gksrk gSA bl Event ds Response esa gesa tks Hkh dke djus gksrs gSa] mu dkeksa dks ge ,d Procedure esa fy[k ysrs gSaA ;s Procedure Event Procedure dgykrk gSA Visual Basic esa ftrus Hkh Controls gksrs gSa] mu Controls ds uke o gekjs ftl Action ds Response esa gesa dksbZ dke djokuk gksrk gS] ml Event ds uke nksuksa ukeksa dks ,d Underscore ds Symbol }kjk vkil esa Connect djds ,d Procedure Create fd;k tkrk gSA ;s Procedure gh Event Procedure gksrk gSA tSls ;fn ge File Menu ds New Option ij Click djrs gSa] rks bl Generate gksus okys Click Event dks Handle djus ds fy, gesa tks Hkh Code fy[kus gksrs gSa] os Codes gesa mnuFileNew_Click() uke ds Procedure esa fy[kus gksrs gSaA ;s Event Procedure File Menu ds New Option ij Click djus ij Execute gksrk gS] ftlls blesa fy[ks x, Codes Execute gks tkrs gSaA Visual Basic esa gesa fdlh Hkh Event Procedure dks Create djus dh t:jr ugha gksrh gSA ge tc Hkh fdlh Menu Item dks Click djrs gSa vFkok tc Hkh fdlh Control dks Double Click djrs gaS, rks ml Control o mlls Associated Default Event ds Combination ds Event Procedure dk Header Automatically Create gks tkrk gS vkSj ge Visual Basic ds Code Editor Window esa igqap tkrs gSa] tgka ge Visual Basic Application ds fofHkUu izdkj ds Runtime ds Executable Codes fofHkUu izdkj ds Event Procedures esa fy[krs gSaA Visual Basic ds Code Window esa fy[ks tkus okys fofHkUu izdkj ds Codes fdlh uk fdlh Event Procedure esa gh fy[ks tkrs gSaA bl Code Window esa nks Combo Box gksrs gSaA igys Combo Box esa Form ij fLFkr fofHkUu izdkj ds Controls ds uke gksrs gSa] rFkk nwljs Combo Box esa ml Control ds lkFk Use fd, tk ldus okys fofHkUu izdkj ds Events dh tkudkjh gksrh gSA ge ftl Control ds lkFk ftl Event dks Use djuk pkgrs gSa] ml Control o mlls Associated Event dks Select djrs gh Visual Basic Lo;a gh ,d u;k Event Procedure Create dj nsrk gS] ftls ge Code Window esa ns[k ldrs gSaA Visual Basic esa Menu Items ds lkFk dsoy ,d Click Event gh Associate gks ldrk gS] blfy, fofHkUu Menu Items dsoy Click Event dks gh Response djrs gSa vkSj gesa ftl
  15. 15. 14 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Menu Item ij Click djus ij tks dke djokuk gksrk gS] ml dke dks ge ml Menu Item ls Associated Event Procedure esa gh Define djrs gSaA gesa ftl Menu Item ds fy, Click Event dks Handle djus okyk Event Handler Define djuk gksrk gS] ml Menu Item ij Single Click djrs gh ge ml Menu Item ds Click Event Handler esa igqap tkrs gSa] tgka ge ml Menu Item ls lEcaf/kr os lkjs dke Specify dj ldrs gSa] ftUgsa ge Menu Item ds Click gksus ij iwjk djokuk pkgrs gSaA Dynamic Modification Of Menu Items Visual Basic ,d Object Based Programming Language gSA blesa fofHkUu dkeksa dks djus ds fy, gesa fofHkUu izdkj ds Visible vFkok Non-Visible Objects dks Use djuk gksrk gS] ftUgsa ge Controls Hkh dgrs gSaA ftl rjg nqfu;k dh gj oLrq dh dqN uk dqN fo”ks’krk gksrh gS] mlh rjg ls Visual Basic ds gj Control vFkok Object dh Hkh viuh dqN fo”ks’krk,a gksrh gSa] ftUgsa Object ;k Control dh Property dgk tkrk gSA ;s Properties Object ds Appearance ls lEcaf/kr gksrh gSaA Visual Basic ds fofHkUu izdkj ds Controls dh fofHkUu izdkj dh Properties gksrh gSaA gj Object dh dqN ,slh Properties gksrh gSa] ftUgsa dsoy Program ds Design Time esa gh Control fd;k tk ldrk gS] rks dqN Properties ,slh gksrh gSa] ftUgsa dsoy Program ds Run Time esa gh Control fd;k tk ldrk gSA dqN Properties ,slh Hkh gksrh gSa] tks Program ds Design Time o Run Time nksuksa LFkkuksa ij Changeable gksrh gSaA tc ge fdlh Menu Item dks Program ds Design Time esa Create djrs gSa] rc ge Menu Item dh dqN Property Settings tSls fd Checked, Enabled, Visible vkfn dks Design Time esa gh Define dj ysrs gSaA ,d ckj bu Properties dks Set dj fn, tkus ds ckn ge bu Properties dks Program ds Run Time esa Hkh Control dj ldrs gSaA tc ge fdlh Control dh fdlh Property dks Program ds Run Time esa Control djrs gSa] rc bl izfØ;k dks Dynamic Modification dgk tkrk gSA ;fn ge gekjs fiNys cuk, x, Menu System ds View Menu ds Check Box dks Control djuk pkgsa] rks ge ;s dke fuEukuqlkj Code }kjk dj ldrs gSaA bl Code esa ge View Menu ds Toolbar Option ds vkxs Check Box dks Display dj jgs gSaA Private Sub mnuViewToolbar_Click() mnuViewToolbar.Checked = True End Sub tc ge View Menu ds Toolbar Option ij Click djrs gSa] rc mijksDrkuqlkj mnuViewToolbar_Click() uke dk Event Procedure Create gksrk gSA bl Event Procedure esa geus mnuViewToolbar Object dh Checked Property dks True dj fn;k gSA ,slk djus ds dkj.k tc ge bl Option ij Click djrs gSa] rc ;s Procedure Execute gks
  16. 16. 15 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi tkrk gS] vkSj Form ds View Menu ds Toolbar uke ds Option ds lkFk gesa ,d Check fn[kkbZ nsus yxrk gSA ;fn bl ,d Line ds Code esa ge FkksMk lk ifjorZu djds Code dks fuEukuqlkj Change dj nsa] vkSj fQj bl Menu Item ij Click djsa] rks ;fn Toolbar ds lkFk Check yxk gksrk gS] rks og Check gV tkrk gS vkSj ;fn bl Option ds lkFk Check yxk gqvk ugha gksrk gS] rks Check yx tkrk gSA ;s Code fuEukuqlkj gS% Private Sub mnuViewToolbar_Click() mnuViewToolbar.Checked = True = Not mnuViewToolbar.Checked = True End Sub pwafd Menu Item dh Checked Property Default :i ls True gksrh gS] blfy, mijksDr Define fd, vuqlkj Code dks ge fuEukuqlkj Hkh fy[k dj ldrs gSa% Private Sub mnuViewToolbar_Click() mnuViewToolbar.Checked = Not mnuViewToolbar.Checked End Sub tc ;s Code Execute gksrk gS] rc ;fn mnuViewToolbar Object dh Checked Property esa True eku gksrk gS] rks Not Operator ml eku dk Opposite eku ;kuh False eku mnuViewToolbar ds Checked Property esa Assign dj nsrk gS] ftlls Toolbar Menu Item ds lkFk fn[kkbZ nsus okyk Check Symbol Hide gks tkrk gSA ysfdu ;fn Checked Property esa False eku gksrk gS] rks Not Operator dh otg ls bl Property esa True Store gks tkrk gS vkSj Toolbar Option ds lkFk gesa ,d Check Symbol fn[kkbZ nsus yxrk gSA blh rjg ls ge dqN vU; Menu Items dh Properties dks Set djus ds fy, Hkh fuEukuqlkj Codes fy[k ldrs gSa% Private Sub Form_Load() mnuFileOpen.Enabled = False mnuViewStatus.Checked = True mnuFormatBold.Checked = True mnuPopup.Visible = False End Sub bu Code Lines }kjk ge le> ldrs gSa fd ge Menu Design djrs le; ftl rjg ds Format dk iz;ksx djds Menu ds fofHkUu Items dk uke Specify djrs gSa] mu ukeksa ls Program dks Code djrs le; gesa dkQh lqfo/kk gks tkrh gSA mnkgj.k ds fy, mnuFormatBold uke dk Menu Item Format Menu dk ,d Sub Menu Item gSA blh rjg ls mnuFileOpen Menu Item Open Menu dk ,d Sub Menu Item gSA Adding Pop-Up Menu With Application Popup Menu vkSj ,d Top Level Menu] nksuksa izdkj ds Menu Create djus esa fdlh izdkj dk dksbZ vUrj ugha gksrk gSA vUrj dsoy bruk gksrk gS] fd Top Level Menu Items Click Event ls Effect esa vkrs gSa] tcfd Popup Menu Mouse Up Event ls Effect esa vkrs gSaA
  17. 17. 16 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Popup Menu dks Hkh lkekU; Menu dh rjg gh Menu Editor esa Create fd;k tkrk gS] ysfdu bl Popup gksus okys Main Menu dh Visible Property dks False dj fn;k tkrk gS] ftlls Popup dk Main Menu Display ugha gksrk gS vkSj pwafd Main Popup Menu gh Display ugha gksrk gS] blfy, blds Sub Menu Items Hkh Application Window ds Top esa Display ugha gksrs gSaA ysfdu bl Main Menu ds lHkh Sub Menu Items Normal gksrs gSa] blfy, tc ge Parent Form ds PopupMenu Method Call djrs gSa vkSj mlesa Argument ds :i esa fdlh Popup Menu dk uke Pass djrs gSa] rks Argument ds :i esa Pass fd, x, Popup Menu ds lHkh Sub Menu Items Form ij ml LFkku ij fn[kkbZ nsus yxrs gSa] tgka geus Mouse ds Right Button dks Click fd;k gSA ge ftl Form ij Menu dks Menu Editor }kjk Design djrs gSa] mlh Form ij ge fdlh Popup Menu dks Show djok ldrs gSaA blfy, ;fn geus Form1 uke ds Form ij dksbZ Popup Menu Design fd;k gks] rks gesa fuEukuqlkj Statement fy[kdj Popup Menu dks Display djokuk gksxk% Form1.PopupMenu mnuPopup ;s Statement Form1 uke ds Form ij cuk, x, mnuPopup uke ds Popup Menu dks Show djus dk dke djrk gSA lkekU;r;k Popup Menu Application ds fdlh Specific Control vFkok fdlh Specific Area ls Related gksrk gSA ge fofHkUu izdkj ds Popup Menus dks Create djds mUgsa fofHkUu izdkj ds Application Area vFkok fofHkUu izdkj ds Controls ds lkFk Associate dj ldrs gSaA Popup Menus dks lkekU;r;k Mouse ds Right Button dks Click djus ij Display djok;k tkrk gSA MouseUp Event and MouseUp Event Procedure pwafd lkekU;r;k Mouse ds Right Button dks Click djus ij gh Popup Menu Display gksrk gS] blfy, Popup Menu dks Display djokus ds fy, gesa Mouse ds MouseUp Event dks Use djuk gksrk gS] D;ksafd lkekU;r;k tc ge Mouse ds Right Button dks Press djds Release djrs gSa] rks Button ds Release gksrs le; ;kuh Mouse ds Right Button ds Up gksrs le; gh Popup Menu Display gksrk gSA ekuyks fd ge Form ij gh Mouse ds Right Click ls Activate gksus okys Popup Menu dks Display djokuk pkgrs gSa] rks gekjk MouseUp Event Procedure Form ds lkFk Associate gks tk,xk vkSj ;s Event Handler dqN fuEukuqlkj fn[kkbZ nsxk% Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) End Sub bl Procedure esa ;fn ge mijksDr Code Type dj nsa] rks gesa fuEukuqlkj Procedure izkIr gksxk% Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Form1.PopupMenu mnuPopup End Sub
  18. 18. 17 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi ;s Procedure Create djus ds ckn tc ge Application dks Run djrs gSa vkSj Form ij Left Click djrs gSa] rc gesa ,d Popup Menu fn[kkbZ nsrk gSA ysfdu okLro esa gesa ;s Popup Menu Mouse ds Right Button ds Press djus ij gh fn[kkbZ nsuk pkfg,A bl fLFkfr esa gesa Mouse ds Right Button dks Identify djuk gksxkA MouseUp Event Procedure – The Button Argument tc ge MouseUp Event ds lkFk fdlh t:jr dks iwjk djuk pkgrs gSa] rc MouseUp Event Procedure esa gesa”kk pkj Arguments fn[kkbZ nsrs gSaA bu pkjksa Arguments esa ,d Button uke dk Argument gksrk gSA bl Argument esa mu Mouse Button dh Information gksrh gS] ftlls Event ls Associated Control ij Click fd;k x;k gSA 1 ;fn ge Mouse ds Left Button ls Click djrs gSa] rks bl Argument esa vbLeftButton uke dk Visual Basic Constant eku gksrk gS] tks fd Visual Basic dk Default Mouse Button gSA 2 ;fn ge Mouse ds Right Left Button ls Click djrs gSa] rks bl Argument esa vbRightButton uke dk Visual Basic Constant eku gksrk gSA vkSj 3 ;fn ge Mouse ds Middle Button ls Click djrs gSa] rks bl Argument esa vbMiddleButton uke dk Visual Basic Constant eku gksrk gSA ge MouseUp Event Procedure ds bl Button Argument esa Stored eku dks Check djds ;s irk yxk ldrs gSa fd Mouse ds fdl Button ls Click fd;k x;k gSA ;s dke djus ds fy, gesa If Control Statement dk iz;ksx djuk gksrk gSA If Control Statement dk iz;ksx ;fn ge fiNys Procedure esa djsa] rks ge fiNys Procedure dks fuEukuqlkj Modify dj ldrs gSa% Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbRightButton Then Form1.PopupMenu mnuPopup End If End Sub bl MouseUp Procedure esa ge Mouse }kjk Associated Control ij fdl Location ij Click dj jgs gSa] ml Location dh X o Y Position dh tkudkjh MouseUp Event Procedure ds X o Y uke ds Argument esa gksrh gSA ;fn ge pkgsa] rks Mouse ds Click gksus dh Position dh tkudkjh dks Hkh Print Method dk iz;ksx djds Form ij Display dj ldrs gSa] ftlds fy, gesa fiNys Procedure dks fuEukuqlkj Modify djuk gksxk%
  19. 19. 18 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbRightButton Then Form1.PopupMenu mnuPopup End If Print(X, Y) End Sub MouseMove Event and MouseMove Event Procedure tc ge Mouse dks Move djrs gSa] rc MouseMove Event Trigger gksrk gS vkSj bl Event dks Handle djus ds fy, ge ftl Procedure dks Create djrs gSa] mls MouseMove Event Procedure dgrs gSaA tc ge Mouse ds MouseMove Event dks Use djrs gSa] rc Hkh Create gksus okys Procedure esa ;s gh pkjksa Arguments gksrs gSaA blfy, ;fn ge pkgsa rks Mouse Pointer dh Runtime Current Position dks Hkh Form ij Display djok ldrs gSaA ;s dke djus ds fy, gesa Form ds lkFk MouseMove Event dks Select djuk gksrk gS] ftlls fuEukuqlkj Event Procedure Create gksrk gS% Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) End Sub vc Mouse ds Pointer dh Current Position dks Display djus ds fy, ge Form ds Print Method dks Use dj ldrs gSa] ysfdu bl Method dks Use djus ij gesa Form ij Mouse Position dk fiNyk eku Hkh fn[kkbZ nsrk jgrk gS] blfy, Mouse ds fiNyh Position ds eku dks Form ij ls Clear djus ds fy, ge Form ds Cls Method dks Use dj ldrs gSaA bl rjg ls ge bl Procedure dks fuEukuqlkj Define dj ldrs gSa] tks Mouse Pointer dh Current Position dks Form ij Display djrk gS% Private Sub Form_MouseMove() (Button As Integer, Shift As Integer, X As Single, Y As Single) Form1.Cls() Print(X, Y) End Sub
  20. 20. 19 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi MouseUp Event Procedure – The Shift Argument MouseUp Event Procedure esa Shift uke dk ,d Argument vkSj gksrk gSA MouseUp Event Generate gksrs le; ;fn ge Keyboard ds Ctrl, Alt vFkok Shift vFkok buds Combination dks Press djds j[krs gSa] rks Shift Argument esa ml Special Key vFkok Key Combination dh tkudkjh gksrh gSA bldk irk Hkh ge If Statement dk iz;ksx djds yxk ldrs gSa fd MouseUp Event ds le; Keyboard ds fdl Shift Key dks Press fd;k x;k FkkA 1 ;fn MouseUp Event ds le; Shift Button dks Press fd;k x;k gks] rks Event Procedure ds Shift uke ds Argument esa Visual Basic dk vbShiftMask Constant eku Stored gksrk gSA ge bl eku ds LFkku ij Integer eku 1 Hkh Use dj ldrs gSaA 2 ;fn MouseUp Event ds le; Shift Button dks Press fd;k x;k gks] rks Event Procedure ds Shift uke ds Argument esa Visual Basic dk vbCtrlMask Constant eku Stored gksrk gSA ge bl eku ds LFkku ij Integer eku 2 Hkh Use dj ldrs gSaA 3 ;fn MouseUp Event ds le; Alt Button dks Press fd;k x;k gks] rks Event Procedure ds Shift uke ds Argument esa Visual Basic dk vbAltMask Constant eku Stored gksrk gSA ge bl eku ds LFkku ij Integer eku 4 Hkh Use dj ldrs gSaA tc MouseUp Event ds le; fdlh Shift Button dks Press fd;k x;k gksrk gS] rks og Button True Return djrk gSA bl fLFkfr esa ge If Statement }kjk ;s Check djok ldrs gSa fd fdlh Shift Button dks Press fd;k x;k gS vFkok ughaA bl izfØ;k dks ge fuEu MouseUp Procedure }kjk le> ldrs gSa% Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Shift = vbCtrlMask Then MsgBox "Control Key was pressed" End If If Shift = vbAltMask Then MsgBox "Alt Key was pressed" End If If Shift = vbShiftMask Then MsgBox "Shift Key was pressed" End If End Sub bl Procedure dks Create djus ds ckn Form dks Run djrs le; ge ftl fdlh Hkh Shift Key dks Press djds j[krs gSa] ml Shift Key ls lEcaf/kr Message Box Display gks tkrk gSA ;fn ge ,d ls T;knk Shift Key Combination dks Identify djuk pkgsa] rks gesa bl Trick ds vk/kkj ij dke djuk gksrk gS fd tc Hkh ge MouseUp Event ds le; fdlh Shift Key dks Press djds j[krs gSa] rks og Key dksbZ uk dksbZ Non-Zero eku Return djrk gS] tks fd True dks Represent djrk gSA
  21. 21. 20 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Private Sub Form_MouseUp _ (Button As Integer, Shift As Integer, X As Single, Y As Single) If Shift = 0 Then MsgBox "No Shift Key was pressed. Key Value : 0" End If If Shift = vbCtrlMask Then MsgBox "Control Key was pressed. Key Value : " & vbCtrlMask End If If Shift = vbAltMask Then MsgBox "Alt Key was pressed. Key Value : " & vbAltMask " End If If Shift = vbShiftMask Then MsgBox "Shift Key was pressed. Key Value : " & vbShiftMask " End If '----------------------------------------------------------------- -- Dim blnIsAlt As Boolean Dim blnIsCtrl As Boolean Dim blnIsShift As Boolean blnIsAlt = Shift And vbAltMask blnIsCtrl = Shift And vbCtrlMask blnIsShift = Shift And vbShiftMask If blnIsCtrl And blnIsShift And blnIsAlt Then MsgBox "Ctrl and Shift Button is Pressed" Exit Sub End If If blnIsAlt And blnIsShift Then MsgBox "Alt and Shift Button is Pressed" End If If blnIsAlt And blnIsCtrl Then MsgBox "Alt and Ctrl Button is Pressed" End If If blnIsCtrl And blnIsShift Then MsgBox "Ctrl and Shift Button is Pressed" End If End Sub tc ge dksbZ Shift Key Press ugha djrs gSa] rc Shift Argument esa Zero gksrk gS] tks fd False dks Represent djrk gS] ysfdu tc ge fdlh Shift Key dks Press djrs gq, Click djrs gSa] rc MouseUp Event ds Shift Argument esa ml Shift Key dk dksbZ Integer Number gksrk gSA
  22. 22. 21 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Visual Basic esa 0 ds vykok lHkh eku True dks Represent djrs gSa] blfy, tc gesa nks Shift Keys dks ,d lkFk Check djuk gksrk gS] rc ,d Boolean Type ds Variable esa fuEukuqlkj ekuksa dks Check djds True ;k False ds :i esa Keys dh Information dks Hold fd;k tkrk gS% blnIsAlt = Shift And vbAltMask blnIsCtrl = Shift And vbCtrlMask blnIsShift = Shift And vbShiftMask igys Statement esa geus Shift o vbAltMask Constant ds chp AND Masking fd;k gSA AND Masking esa nksuksa gh Identifiers ds eku ;fn True gksa] rks Resultant eku Hkh True gksrk gS] ftldk eryc ;s gS fd Mouse ds Button dks Press djrs le; Alt Button dks Press djds j[kk x;k FkkA ysfdu ;fn Mouse dk Button Press djrs le; Keyboard ds Alt Button dks Press djds ugha j[kk x;k gks] rks Shift Argument esa vbAltMask ds eku ds LFkku ij False ;kuh Zero gksxk vFkok fdlh vU; Shift Button dk Integer eku gksxk] ftlls AND Masking ds nkSjku Shift Argument o vbAltMask nksuksa ds ekuksa esa Difference gksus ds dkj.k False Return gksxk vkSj blnIsAlt uke ds Boolean Type ds Variable esa False Store gks tk,xkA blh rjg ls blnIsCtrl o blnIsShift uke ds Boolean Type ds Variable esa Hkh mlh fLFkfr esa True Store gksrk gS] tc Keyboard ls Øe”k% Control Key vFkok Shift Key dks Press djds j[krs gq, Mouse ls Click fd;k x;k gksA tc ge ,d ls T;knk Shift Keys dks Press djds j[krs gq, Mouse ds Button dks Press djrs gSa] rc ,d ls T;knk Boolean Variables esa AND Masking ds nkSjku True Store gks tkrk gS vkSj If Statement esa ge fQj ls bu Boolean Variables dh Values dh AND Masking djds ;s irk yxk ysrs gSa] fd ,d ls T;knk Shift Keys Press dh xbZ Fkh vFkok ugha] D;ksafd ;fn Mouse Clicking ds le; ,d ls T;knk Shift Keys dks Press fd;k x;k gks] rks ,d ls vf/kd Boolean Variables esa True gksxk vkSj ftu nks Boolean Variables esa True Stored gksxk] mUgha ls lEcaf/kr If Statement True Return djsxk vkSj Execute gksxkA Popup Method Form Object ds Popup Method esa Hkh dqN Arguments gksrs gSa] ftudk iz;ksx djds ge Display gksus okys Popup Menu dks Control dj ldrs gSaA ,d Popup Method ds fofHkUu Optional Arguments dk Description fuEukuqlkj gS% Menu As Object bl Argument ds LFkku ij gesa ml Popup Menu dk uke nsuk gksrk gS] ftls ge fdlh Specified Control ds fy, Display djuk pkgrs gSaA bl Argument ds vykok lHkh vU; Arguments Optional gksrs gSaA
  23. 23. 22 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi ge gekjh t:jr ds vuqlkj vU; Arguments dks NksM ldrs gSa] ysfdu bl Argument dks Specify djuk t:jh gksrk gSA pwafd geus gekjs mnkgj.k esa vius Popup Menu dk uke mnuPopup fn;k gS] blfy, gesa bl LFkku ij ;gh uke Specify djuk gksrk Gsa Flags bl Argument ds LFkku ij gesa Popup Menu ds Popup gksrs le; dh Location dk Flag Set djuk gksrk gS] tks fuEUk esa ls dksbZ Hkh gks ldrk gS% vbPopupMenuLeftAlign (Constant) ;s Default eku gksrk gSA ;s Constant Set djus ij Popup gksus okyk Menu Mouse Pointer ds Click gksus dh X Location ds Left Side esa Popup gksrk gSA vbPopupMenuRightAlign (Constant) ;s Constant Set djus ij Popup gksus okyk Menu Mouse Pointer ds Click gksus dh X Location ds Right Side esa Popup gksrk gSA vbPopupMenuCenterAlign (Constant) ;s Constant Set djus ij Popup gksus okys Popup Menu ds chp esa Mouse Pointer dk og X Location gksrk gS] tgka Mouse Click fd;k x;k gksrk gSA vbPopupMenuLeftButton(Behavior) ;s Behavior Set djus ij Popup Menu ml le; Trigger gksrk gS] tc User Mouse ds dsoy Left Button ls Popup gksus okys Menu ds fdlh Menu Item dks Click djrk gSA vbPopupMenuRightButton (Behavior) ;s Behavior Set djus ij Popup Menu ml le; Trigger gksrk gS] tc User Mouse ds fdlh Hkh Button ls Popup gksus okys Menu ds fdlh Hkh Menu Item dks Click djrk gSA tc ge Constant o Behavior nksuksa dks ,d gh Argument esa Set djuk pkgrs gSa] rc gesa nksuksa ekuksa ds chp OR Operator dk iz;ksx djuk gksrk gSA tSls fuEu Statement Flags Argument esa Popup Menu dks Center esa Align djsxk vkSj Popup Menu Right o Left nksuksa Button ls Activate gksxk% Form1.PopupMenu mnuPopup, vbPopupMenuCenterAlign Or _ vbPopupMenuRightButton , , mnuPopupPrint X, Y bu Argument ds LFkku ij ge tks Hkh eku Specify dj nsrs gSa] gekjk Popup Menu gesa”kk mlh Location ij Display gksrk gS] fQj pkgs ge Control ij fdlh Hkh LFkku ij Click D;ksa uk djsaA
  24. 24. 23 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi pwafd lkekU;r;k ge Menu dks mlh LFkku ij Display djokuk pkgrs gSa] tgka geus Right Click fd;k gksrk gS] blfy, bu Arguments dks Fill ugha fd;k tkrk gSA tc ge bu Arguments dks Fill ugha djrs gSa] rc buesa Mouse ds Pointer dh Current Position dk Coordinate Automatically Set gks tkrk gSA DefaultMenu ge Popup Menu ds ftl Item dks Default :i ls Selected j[kuk pkgrs gSa] ml Menu Item dk uke gesa bl Argument esa Specify djuk gksrk gSA tc ge fdlh Method dks Call djrs gSa vkSj mlesa cgqr lkjs Arguments dks Pass fd, tkus dh O;oLFkk gksrh gS] rc ge fofHkUu izdkj ds Arguments dks Øe ls Specify dj ldrs gSaA ysfdu ;fn gesa dqN Arguments dks NksM dj dqN gh Arguments dks Specify djuk gks] rks gesa ,d fo”ks’k rjhds dks Use djuk t:jh gksrk gSA ekuyks fd ge PopupMenu esa dsoy izFke o vfUre Argument dks gh Set djuk pkgrs gSa] bl fLFkfr esa bl PopupMenu Method dks Use djrs le; gesa blesa Arguments dks fuEukuqlkj Pass djuk gksxkA Form1.PopupMenu mnuPopup, , , , mnuPopupPrint fdlh Hkh Method esa ge izFke Argument dks lkekU; rjhds ls Specify dj ldrs gSa] ysfdu ;fn ge fiNys rjhds dks Use djuk uk pkgsa] rks ge ,d vkSj rjhdk Use djds fdlh Procedure ds fofHkUu Optional Arguments ds ekuksa dks fcuk Øe dk /;ku j[krs gq, Pass dj ldrs gSa] ysfdu bl rjhds esa gesa Argument ds uke dk irk gksuk t:jh gksrk gSA mnkgj.k ds fy, ;fn ge fiNys Statement dks gh bl rjhds ls Specify djsa] rks gesa fuEukuqlkj Argument Passing Code fy[kuk gksxk% Form1.PopupMenu mnuPopup, DefaultMenu := mnuPopupPrint First Argument dks Pass djus ds fy, gesa fdlh rjhds dh t:jr ugha gS] D;ksafd lkekU;r;k lcls igys mUgha Arguments esa eku Pass djus gksrs gSa] ftUgsa Pass djuk t:jh gksrk gS vkSj ;s Compulsory Arguments ,d Series esa gksus dh otg ls buds ukeksa dks Specify djus dh t:jr ugha gksrh gS uk gh ge Compulsory Arguments ds ukeksa dks Specify dj ldrs gSa] D;ksafd Compulsory Arguments ds ukeksa esa Visual Basic esa Space dk iz;ksx fd;k x;k gksrk gS vkSj ge fdlh Space ;qDr Variable dks lkekU; rjhds ls Specify ugha dj ldrs gSaA ysfdu Optional Arguments ,d Single String Name gksrs gSa] blfy, bUgsa Directly Access fd;k tk ldrk gSA blh otg ls geus PopupMenu Method ds vfUre Option Argument ds uke DefaultMenu esa := Assignment Operator dk iz;ksx djds Directly
  25. 25. 24 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Default Menu Item dk uke Specify dj fn;k gSA Default Item dks fp= esa Bold Face ds :i esa ns[kk tk ldrk gSA Adding Deleting Menu Items At Runtime Runtime Menus Application ds Runtime esa ml le; Create gksrs gSa] tc mudh t:jr gksrh gSA Runtime Menu Items Create djus ds fy, gesa Menu dk Control Array Create djuk iMrk gSA Application ds Runtime esa Load Statement u;k Menu Item Create djrk gS vkSj Unload Statement fdlh Menu Item dks Delete djrk gSA Creating Runtime Menu Items Runtime Menu Item Create djus ds fy, gesa rhu Steps dks Follow djuk iMrk gSA ;s Steps fuEukuqlkj gSa% 1 lcls igys gesa Menu Editor esa ml Menu dks Create djuk gksrk gS] ftlesa u, Sub Items dks Application ds Run Time esa Add djuk gksrk gSA gesa ftl Sub Menu esa u, Run Time Items dks Add djuk gksrk gS] mlesa ,d Sub Menu Item Create fd;k tkrk gS vkSj mls Control Array cuk fn;k tkrk gSA Control Array cukus ds fy, ml Sub Menu Item dh Index Property esa eku 0 fy[k fn;k tkrk gS] ftlls cuus okyk Item ,d Control Array cu tkrk gSA Control Array ,d ,slkArray gksrk gS] tks fd Visual Basic ds fdlh Control dk Array gksrk gSA 2 nwljs Step esa gesa Load Statement dk iz;ksx djds Menu ds Items dks Application ds Run Time esa Load djuk gksrk gSA bl dke dks ge fuEukuqlkj Syntax }kjk dj ldrs gSa% Load mnuRTMenuOption(1) Menu Item dk uke Design Time esa fn, x, mlh uke ij gh vk/kkfjr gksrk gS] ftldh Index Property dks geus Set fd;k gksrk gSA u;k Menu Item Create djus ds fy, gesa dsoy ml uke o ,d Unique Index Number dks Use djuk gksrk gS] ftls Control Array esa igys Use uk fd;k x;k gksA 3 tc Menu Item Load gks tkrk gS] mlds ckn ge ml Loaded u, Item dks Access djus ds fy, Menu ds uke o Index Value dk iz;ksx dj ldrs gSaA Menu Item ds Load gks tkus ds ckn ge Menu Item ds lkFk fofHkUu izdkj dh vU; Run Time Properties dks Set dj ldrs gSaA 4 tc Menu Item dks Program ds Run Time esa Create dj fy;k tkrk gS] rc og Menu Item Control Array dk ,d fgLlk cu tkrk gSA tc gesa Runtime esa Generate fd, x,
  26. 26. 25 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Menu ds fy, Code fy[kus gksrs gSa] rc Design Time esa Create fd, x, Menu ds First Index Number dks vk/kkj ds :i esa Use djuk gksrk gSA tks Menu Item geus Design Time esa Create fd;k Fkk] mlesa Click Event uke dk ,d Extra Argument gksrk gSA Index Argument fdlh Control dks Identify djus ds fy, Use fd;k tkrk gSA Dynamic Menu Items ds fy, ge fuEukuqlkj Code fy[k ldrs gSa] ftlesa Code fy[kus ds fy, gesa Design Time esa Create fd, x, Menu Item ds Click Event dks Choose djuk gksrk gSA tc ge ,slk djrs gSa] rc gesa Code Window esa fuEukuqlkj ,d Procedure Header izkIr gks tkrk gS% Private Sub mnuRTMenuOption_Click(Index As Integer) End Sub bl Procedure esa Index uke dk ,d Argument gksrk gSA bl Argument esa ml Menu Item ds Index dk Number gksrk gS] ftls Click fd;k tkrk gSA pwafd gekjs Menu Items Runtime esa Create gks jgs gSa] fQj Hkh Runtime esa Hkh Create gksus okys gj Menu Item dk ,d Index Number gksrk gS] blfy, ;fn ge Runtime esa Create gksus okys fdlh Menu Item ij Hkh Click djrs gSa] rc Hkh ml Runtime esa Created Menu Item dk Index Number bl Index Argument esa vkrk gSA blfy, ge Runtime esa Create gksus okys Menu Item dks Hkh blh Procedure }kjk Handle dj ldrs gSaA bl Procedure esa ge fuEukuqlkj Code fy[k ldrs gSa] tks dsoy ,d Message Display djus dk dke djrk gS% Private Sub mnuRTMenuOption_Click(Index As Integer) Select Case Index Case 0 MsgBox "You have clicked the first menu item." Case 1 MsgBox "You have clicked the first Runtime menu item." Case 2 MsgBox "You have clicked the second Runtime menu item." End Select End Sub Program ds Run Time esa nks u, Menu Items Create djus ds fy, ge Form_Load Procedure esa fuEukuqlkj nks u, Menu Items dks Load dj ldrs gSa% Private Sub Form_Load() Load mnuRTMenuOption(1) Load mnuRTMenuOption(2) mnuRTMenuOption(0).Caption = "First Menu Item Of Design Time" mnuRTMenuOption(1).Caption = "First Menu Item Or Runtime"
  27. 27. 26 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi mnuRTMenuOption(2).Caption = "Second Menu Item Or Runtime" End Sub dsoy mUgha Menu Item dks Runtime esa Remove fd;k tk ldrk gS] ftUgsa Run Time esa Create fd;k x;k gksrk gS] Design Time esa Create fd, x, Menu Items dks Run Time esa Remove ugha fd;k tk ldrk gSA Runtime Menu Items dks Remove djus ds fy, ge nks rjhdksa dk iz;ksx dj ldrs gSaA igys rjhds esa Menu Item dh Visible Property dks False djds Item dks Invisible dj fn;k tkrk gSA bl rjg dk Item Invisible gksus ds ckotwn Hkh Memory esa jgrk gS vkSj mldh Properties dks Access fd;k tk ldrk gSA bl igys rjhds dks ge fuEukuqlkj Use dj ldrs gSa% mnuRTMenuOption(2).Visible = False ysfdu ;fn ge fdlh Menu Item dks Permanently Memory ls Remove djuk pkgrs gSa] rks gesa ml Menu Item dks Unload djuk gksrk gSA Menu Item dks Unload djus ds fy, ge fuEukuqlkj Syntax dk iz;ksx dj ldrs gSa% Unload mnuRTMenuOption(2) Unload Statement esa dsoy Runtime Control Names o Elements dks gh Pass fd;k tk ldrk gSA ;fn ge fdlh Design Time Item dks Unload Statement esa Pass djrs gSa] rks gekjs Application esa Error Generate gksrk gSA
  28. 28. 27 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Adding Controls to Form
  29. 29. 28 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Adding Controls To Form Introduction Visual Basic esa fofHkUu izdkj ds Built-In Controls gSa] ftUgsa ge Form vFkok fdlh Hkh vU; Container ij Visually Place dj ldrs gSaA ge ftu Controls dks Form ij Place djuk pkgrs gSa] Visual Basic IDE esa fn[kkbZ nsus okys Toolbox esa ml Control dks Click djrs gSa vkSj Mouse ds Pointer dks Form ij Drag N Drop djds ,d Rectangle cukrs gSaA ,slk djus ij u;k Control Form ij Draw gks tkrk gSA nwljs rjhds esa gesa ftl Control dks Form ij Place djuk gksrk gS] mls Toolbox ij Double Click djrs gSaA Toolbox ij ge ftl Control dks Double Click djrs gSa] og Control viuh Default Properties ds lkFk Form esa Center esa Place gks tkrk gS] ftls ge gekjh t:jr ds vuqlkj lgh Properties ls Set dj ldrs gSaA gesa Toolbox ij fLFkr lHkh Tools dk uke /;ku j[kus dh Hkh t:jr ugha gksrh gSA ge ftl fdlh Hkh Tool ij Mouse ds Pointer dks Place djrs gSa] ml Control dk uke ,d ToolTip Message ds :i esa gesa fn[kkbZ nsus yxrk gSA Container Controls Visual Basic esa dqN Controls ,sls gksrs gSa] tks Lo;a Active :i ls dksbZ dke ugha djrs gSa] cfYd ;s Controls fdlh vU; Control ds fy, ,d Container dh rjg dke djrs gSaA ;s Controls Container Controls dgykrs gSaA Visual Basic esa Form lcls eq[; Container gksrk gS] ftl ij vU; lHkh izdkj ds lkekU; Controls vFkok Container Controls dks Place fd;k tk ldrk gSA blds vykok Frame Control o PictureBox Control Hkh Container dh rjg dke djrs gSaA PictureBox Control o Image Control nksuksa ds T;knkrj Features ,d leku gksrs gSa] ysfdu nksuksa Controls esa ,d eq[; vUrj ;s gksrk gS fd PictureBox Control Container dh rjg dke dj ldrk gS] tcfd Image Control Container dh rjg dke ugha djrk gSA ge fdlh Hkh Container esa fofHkUu izdkj ds Controls dks Add djus ds fy, fofHkUu izdkj ds rjhdksa dk iz;ksx dj ldrs gSaA tc ge Form ds vykok fdlh vU; Container esa fdlh Control dks Place djuk pkgrs gSa] rc gesa gesa”kk ml Control dks Container esa Draw djuk iMrk gSA ;fn ge Control dks Double Click djds Container esa ykuk pkgsa] rks Controls gesa”kk Form Container ij gh Place gksrs gSaA ;fn gesa igys ls cus gq, Controls dks fdlh Container esa Place djuk gks] rks Place fd, tkus okys lHkh Controls dks Select djds Cut djuk gksrk gS vkSj fQj ftl Container esa bu Controls dks Place djuk gS] ml Container dks Select djds mlesa Paste djuk gksrk gSA
  30. 30. 29 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Setting Properties fofHkUu izdkj ds Controls dks Draw djus ds ckn gesa mu Controls dh Properties dks viuh t:jr ds vuqlkj Set djuk gksrk gSA lkekU;r;k lcls T;knk dke esa vkus okys Controls Visual Basic IDE ds Toolbox ij Place fd;k x;k gSA ysfdu fQj Hkh CommandButton, TextBox o Labels Toolbox ij fLFkr lHkh Controls esa ls Hkh lcls T;knk mi;ksx esa vkus okys Controls gksrs gSa] blfy, lcls igys ge bUgha Controls dh Properties ds ckjs esa ckr djsaxsA ge fdlh Hkh Control dh Property dks Design Time vFkok Run Time esa Set dj ldrs gSaA tc ge fdlh Controls dks Select djrs gSa] rks ml Controls dh fofHkUu Properties ,d Properties Window uke ds Window esa fn[kkbZ nsus yxrh gS] ftls ge gekjh t:jr ds vuqlkj Set dj ldrs gSaA ;fn Properties Window fn[kkbZ uk ns jgk gks] rks Function Key F4 dks Press djds bl Window dks Display fd;k tk ldrk gSA fofHkUu izdkj ds Controls dh fofHkUu izdkj dh Properties gksrh gSA gj Property dks fdlh uk fdlh izdkj dh Numerical vFkok String Type dh Value ls Set fd;k tk ldrk gSA tks Properties Boolean Type dh Value ls Set gksrh gSa] mUgsa Set djus ds fy, Mouse ls mu Properties ij Double Click djds mUgsa Toggle fd;k tk ldrk gSA mnkgj.k ds fy, CommandButton Control dh Default o Cancel Properties Boolean Properties gksrh gSa] ftUgsa Double Click djds Toggle fd;k tk ldrk gSA dqN Properties ,slh gksrh gSa] ftuesa dqN Named Enumerated ekuksa esa ls fdlh eku dks Set fd;k tk ldrk gSA bl izdkj dh Properties ,d Drop-Down List ds :i esa fn[kkbZ nsrh gSaA mnkgj.k ds fy, MousePointer Property ,d Drop-Down List iznku djrk gS] ftlesa ls okafNr Enumerated Named eku dks Select fd;k tk ldrk gSA dqN Properties esa Dialog Boxes ds :i esa Sub Components gksrs gSa] tks dqN Special Type ds Properties ds ,d Group dks Represent djrs gSaA bl izdkj dh Property ij Double Click djus ij ,d u;k Property Page Display gksrk gS] ftlds fofHkUu ekuksa dks viuh t:jr ds vuqlkj Set fd;k tk ldrk gSA tc ge fdlh Control dh Property dks Program ds Run Time esa Set djuk pkgrs gSa] rc gesa Control ds uke ds lkFk Dot Operator dk iz;ksx djuk gksrk gS vkSj Dot ds ckn Property dks Specify djds Equal To Symbol dks Use djuk gksrk gS vkSj u, eku dks bl Equal To Symbol ds ckn Specify djuk gksrk gSA tSls ;fn ge CommandButton cmdClose ds Caption dks Change djuk pkgsa] rks ;s dke ge fuEukuqlkj dj ldrs gSa% cmdClose.Caption = “E&xit” Visual Basic esa ftrus Hkh Objects gSa mu lHkh Objects dh Properties, Methods, Visual Basic esa Use fd, tkus okys fofHkUu Constants vkfn dh tkudkjh ge Object Browser ls izkIr dj ldrs gSaA Object Browser dks Visual Basic ds IDE esa Display djus ds fy, gesa Function Key F2 dks Press djuk gksrk gSA
  31. 31. 30 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi tc ge fdlh Complex Object dh Property dks Access djuk pkgrs gSa] rc gesa Dots dk iz;ksx ,d ls T;knk ckj djuk iMrk gSA mnkgj.k ds fy, ;fn ge fdlh TextBox esa fn[kkbZ ns jgs Text ds Font dh Style dks Run Time esa Change djuk pkgsa] rks ;s dke gesa fuEukuqlkj djuk gksxk% txtBox.Font.Bold = True txtBox.Font.Name = “Times New Romans” Visual Basic esa gj Object dh dksbZ uk dksbZ ,d Default Property gksrh gS] ftls fcuk Specify fd, gq, gh Access vFkok Set fd;k tk ldrk gSA 1 CommandButton dh Default Property Value Property gksrh gSA 2 Label dh Default Property Caption Property gksrh gS vkSj 3 TextBox dh Default Property Text Property gksrh gSA fdlh Hkh Control dh Default Property dks Access djus ds fy, ge dsoy Control ds uke dks Use dj ldrs gSaA gesa Control ds uke ds lkFk Property dks Specify djus dh t:jr ugha gksrh gSA tSls fuEu Statements dks nsf[k,% cmdOK = True txtName = “Manmohan” lblName = “Krishna” ge ns[k ldrs gSa fd bu rhuksa gh Controls ds lkFk geus fdlh Property dks Specify ugha fd;k gSA bl fLFkfr esa ;s rhuksa gh Controls viuh Default Property dks Access djrs gSaA Common Properties Visual Basic esa dqN ,slh Properties gksrh gSa] ftUgsa T;knkrj Objects }kjk Common :i ls Common dkeksa ds fy, Share fd;k tkrk gSA buesa ls dqN Most Common o lcls T;knk Use dh tkus okyh Properties fuEukuqlkj gSa% Name Property gj Object dk viuk ,d uke gksrk gS] ftls Name Property }kjk Assign fd;k tkrk gSA ;s uke fdlh Object dks ml le; Refer djrk gS] ftl le; ge Code fy[krs le; ml Control dh Properties o Methods dks Access djuk pkgrs gSaA mnkgj.k ds fy, ;fn ge Command Button dks cmdExit uke nsrs gSa] rks bl Command Button dks Refer djus ds fy, gesa fuEukuqlkj Code }kjk Refer dj ldrs gSa% cmdExit.Caption = “Close” Name Property Design Time esa gh Set dh tk ldrh gSA Run Time esa ;s Property Read-Only gks tkrh gS] blfy, ge Program ds Run Time esa bl Property dks Change ugha dj ldrs gSaA
  32. 32. 31 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Enabled Property ;s ,d True/False Property gksrh gSA tc ;s Property False gksrh gS] rc blls Associated Control Grayed gks tkrk gS vkSj fdlh Hkh Event ij Response ugha djrk gS] ;gka rd fd Grayed Control ij Focus Hkh Move ugha gksrk gSA pwafd Label Control dHkh Hkh Focus izkIr ugha djrk gS] blfy, bldh Enabled Property dk Application Program ij dksbZ izHkko ugha iMrk gSA gkykafd ;fn Label Control dh Enabled Property True gks] rks og ml le; Click o DblClick tSls Events dks Response djrk gS] tc Mouse dk Pointer Label ij gksrk gSA bl Property dks Design Time o Run Time nksuksa le;ksa ij Set fd;k tk ldrk gSA Timer Control dh Enabled Property dks ;fn False dj fn;k tk,] rks Timer Control vU; Controls dh rqyuk esa vyx rjhds ls React djrk gSA tc Timer Control Enabled gksrk gS] rc Specified Time ds Duration esa ;s vius Procedure ds Codes dks Execute djrk jgrk gS] ysfdu tc bls Disable dj fn;k tkrk gS] rc Specified Time Duration esa bldk Code Procedure Execute ugha gksrk gSA lkekU;r;k ;fn Timer Control ds Interval Property esa eku 0 Specify dj fn;k tk,] rks ;s Control Disable Control dh rjg dke djus yxrk gSA Visible Property ;s Property lHkh Controls ds fy, By Default True gksrk gSA bl Property dks False djus ij Associated Control Form ij fn[kkbZ ugha nsrk gSA ;fn Design Time esa bl Property dks False dj fn;k tk,] rks Hkh Programmer dks Design Time esa lEcaf/kr Control fn[kkbZ nsrk gS] ysfdu Run Time esa Control fn[kkbZ ugha nsrkA ge bl Property dks Design Time o Run Time nksuksa fLFkfr;ksa esa Access dj ldrs gSaA Font Property Font Property okLro esa ,d Object gksrk gS] ftlesa bldh Lo;a dh Properties gksrh gSaA ge Font Object dh Properties dks Design Time esa ,d Dialog Box }kjk Manipulate dj ldrs gSaA bl Object dks Call djus ds nks rjhds gksrs gSaA igys rjhds esa ge Control dh Font Property dks Double Click djrs gSa vkSj nwljs rjhds esa ge Font Property ds lkFk esa Associated Ellipsis Button ( … ) dks Click djrs gSaA nksuksa gh fLFkfr;ksa esa gesa ,d Font Dialog Box fn[kkbZ nsrk gSA
  33. 33. 32 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi ;fn ge fdlh Control ds fy, bl Font Object dh Property dks Runtime esa Access djuk pkgsa] rks gesa Double Dotted Syntax dk iz;ksx djuk iMrk gSA mnkgj.k ds fy, ;fn ge pkgrs gSa fd Label dk uke Bold Face esa fn[kkbZ ns] rks bl dke dks ge fuEu Code }kjk dj ldrs gSa% Dim blnOrigBold As Boolean blnOrigBold = lblName.Font.Bold lblName.Font.Bold = True ;fn ge ,d gh Object ds fy, mldh dbZ Properties dks ,d lkFk Set djuk pkgsa] rks ge With … End With Block dk iz;ksx dj ldrs gSaA mnkgj.k ds fy, ;fn ge Label ds fy, Font dh rhu Properties dks ,d lkFk Set djuk pkgsa] rks ;s dke ge fuEukuqlkj dj ldrs gSa% With lblLable.Font .Bold = True .Underline = True .Italic = True .Name = "Times New Romans" End With Size And Position Properties Object dh Height o Width Properties Object dh Size dks Specify djrs gSa] tcfd Top o Left Properties Object dh Container ij Position dks Specify djrs gSaA Size o Position dks ftl Unit esa Measure fd;k tkrk gS] ml Unit dks ge Container dh ScaleMode Property }kjk Set dj ldrs gSaA Container dk Default Unit Twip gksrk gS] tks fd ,d Point dk chloka fgLlk ;kuh 1/20 Point ds cjkcj gksrk gSA ge bu lHkh Properties dks Run Time esa Hkh Change dj ldrs gSa vkSj ge Control ds Move Method dk iz;ksx djds Control dh Size o Position dks Runtime esa Change dj ldrs gSaA TabIndex and TabStop Properties TabIndex Property }kjk ;s r; fd;k tkrk gS fd tc User Tab Key dks Press djsxk] rc dkSulk Control dc Focus izkIr djsxkA Label Control dh Hkh TabIndex Property gksrh gS] ysfdu ,d Label dHkh Hkh Focus izkIr ugha djrk gSA TabStop Property gesa ;s Specify djus dh lqfo/kk iznku djrk gS fd tc User Tab Key dks Press djsxk] rc fdl Control ij Tab Navigation ds nkSjku Move ugha gksxkA bl Property dk Default eku True gksrk gSA ;fn ge fdlh Control dh TabStop Property esa False eku Store dj nsrs gSa] rks User Navigation ds nkSjku ml Control ij Focus dks Tab Key }kjk Transfer djus esa l{ke ugha gks ikrk gSA TabStop Property dsoy mlh le; viuk Effect fn[kkrk gS] tc User Tab Key
  34. 34. 33 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Press djds Navigation djrk gSA TabStop Property dks False Set djus ds ckotwn ge fdlh Hkh vU; rjhds ls lEcaf/kr Control ij Focus dks Set dj ldrs gSaA Assigning Access Key To TextBox Control ge fdlh Text Box ij fdlh Access Key dks Focus ds fy, Set ugha dj ldrs gSaA ysfdu fQj Hkh ;fn ge fdlh Text Box dks Access Key }kjk Control djuk pkgsa] rks ge TextBox Control ds lkFk Associate fd, tkus okys Label Control ij ml Key dks Highlight dj ldrs gSa] ftls Use djds ge Text Box dks Control djuk pkgrs gSa] D;ksafd Label Control dHkh Hkh Focus izkIr ugha djrk gSA Access Key Set djus ds fy, ge Label Control ds Caption Property esa fdlh Key dks ‘&’ dk iz;ksx djds Access Key Define dj ldrs gSaA ysfdu pwafd ,d Label Control dHkh Hkh Focus izkIr ugha djrk gS] blfy, tc ge Label Control ds Access Key dks Use djrs gSa] rks Visual Basic Automatically ml Control ij Focus dks Set dj nsrk gS] tks Label ds TabIndex Property ds vxys Øe ij vkrk gS vkSj lkekU;r;k ;s Label ls Associated Text Box gksrk gS] blfy, Control Text Box ij Transfer gks tkrk gSA fdlh Text Box ij Access Key Set djus ds fy, gesa fuEu Øe dks Follow djuk gksrk gS% 1 lcls igys Text Box ds Left esa ,d Label Control dks Place djsaA 2 lkekU;r;k lHkh Controls dh UserMnemonic Property True gksrh gS] ysfdu ;fn Label Control dh ;s Property False gks] rks lcls igys bls True Set djsaA tc ;s Property True gksrh gS vkSj ge Caption Property esa Specify fd, tkus okys uke ds fdlh Character ds vkxs & dk Symbol yxkrs gSa] rks og Character Access Key cu tkrk gSA ysfdu ;fn ;s Property False gks] rks Caption esa Use fd;k tkus okyk & Hkh Caption ds :i esa fn[kkbZ nsus yxrk gSA 3 vc Label Control dks mlds Right esa Placed Text Box ds TabIndex ds eku ls ,d de eku Label Control dks Set djuk gksrk gSA ,slk djus dk dkj.k ;s gS fd tc ge Access Key dks Use djsaxs] rc Focus Label Control ij tk,xk] ysfdu pwafd Label Control Focus Receive ugha dj ldrk gS] blfy, Focus vyx TabIndex ij Move gksxk] tks fd Text Box dk TabIndex Number gksxkA bl rjg ls Focus Text Box ij igqap tk,xkA CommandButton Control – Important Properties Window Application esa TextBox o Label Controls ds ckn ;fn dksbZ Control lcls T;knk Use fd;k tkrk gS] rks og CommandButton Control gSA Command Button dk eq[; dke ml le; Code Procedure dks Run djuk gksrk gS] tc User Command Button ij Click djrk gSA tc ge Command Button dks Program dj jgs gksrs gSa] rc gesa Command Button dh fuEu eq[; Properties dk /;ku j[kuk gksrk gS%
  35. 35. 34 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Caption Property gesa CommandButton ds Caption Property dks gesa”kk Valid uke Set djuk gksrk gS] D;ksafd Caption Property og Property gksrh gS] tks Run Time esa Object ij fn[kkbZ nsrh gSA bl Property dks Design Time o Run Time nksuksa fLFkfr;ksa esa Access fd;k tk ldrk gSA Cancel Property Command Button dh Cancel Property ,d Boolean Property gksrh gSA ;s Property Form ij fLFkr fdlh ,d Command Button ds Click Event Procedure Codes dks Esc Key }kjk Access djus dh lqfo/kk nsrk gSA ge ftl Button ij Cancel Property dks True Set djrs gSa] ml Button ds Click Event ds fy, fy[ks x, Codes Keyboard ij fLFkr Esc Key dks Press djds Execute fd;k tk ldrk gSA /;ku j[ksa fd Esc Button dks Press djus ij Click Event Fire ugha gksrk gS] dsoy Click Event Handle djus okyk Procedure gh Run gksrk gSA lcls T;knk Notice djus okyh ckr ;s gS fd Esc Key ds Press djus ij Click Event Procedure ds Execute gksus ds ckotwn Focus dh Position ml Command Button ij Change ugha gksrh gS] ftldk Click Event Procedure Run gks jgk gSA Default Property Default Property Hkh Cancel Property dh rjg gh ,d Boolean Property gksrh gS vkSj Form ij fLFkr dsoy ,d gh Control ds fy, Default Property dks True Set fd;k tk ldrk gSA ;s Property Hkh Bhd Cancel Property dh rjg gh dke djrk gS] vUrj dsoy bruk gS fd ftl Button ij Default Property dks Set fd;k tkrk gS] mldk Click Event Handler Procedure ml le; Execute gks tkrk gS] tc User Keyboard ls Enter Key dks Press djrk gSA ge ,d Form ij dsoy ,d gh Button ds fy, Cancel o Default Property dks True Set dj ldrs gSa] Form ij fLFkr “ks’k lHkh Commands ds fy, Automatically ;s Properties False Set gks tkrh gSaA ;fn ge pkgsa rks Form ij fLFkr fdlh ,d gh Button ds fy, ;s nksuksa Properties True Set dj ldrs gSa] bl fLFkfr esa Esc o Enter nksuksa gh Keys dks Press djus ij gj ckj mlh Command Button dk Click Event Procedure Execute gksrk gSA BackColor Style and Picture Property Command Button dh ,d BackColor Property Hkh gksrh gS] ysfdu ;s Property mlh fLFkfr esa Effect fn[kkrh gS] tc ge Command Button dh Style Property dks “1 – vbGraphical” Set djrs gSaA tc ge ;s Style Set djrs gSa] rks mlds ckn ge Command Button dh Picture Property dks Set djds Command Button ij fdlh Graphical Image dks Hkh Display dj ldrs gSaA Value Property Value Property Command Button dh Default Property gksrh gS vkSj ;s dsoy Run Time esa gh Available gksrh gSA ;fn ge bldh Value Property dks True Set dj nsrs gSa] rks Command Button dk Click Event Procedure Execute gks tkrk gSA Command Button
  36. 36. 35 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi ds Click Event Procedure dks Execute djus ds fy, gesa Command Button dh bl Default Property dks True Set djuk gksrk gS] tks fd fuEukuqlkj nks rjhdksa ls fd;k tk ldrk gS% cmdOK = True OR cmdOK.Value = True TextBox Control – Important Properties TextBox Windows Application esa dkQh T;knk Use gksus okyk Control gSA bldk iz;ksx lkekU;r;k User ls Free Form Input izkIr djus ds fy, fd;k tkrk gSA ge TextBox Control esa fd, tkus okys Changes o TextBox Control ds Contents dks dbZ Properties dk iz;ksx djds Manipulate dj ldrs gSaA TextBox Control dh dqN Most Useful Properties fuEukuqlkj gSa% HideSelection Property TextBox dh ;s Property By Default True gksrh gS vkSj ;s bl ckr dks Indicate djrh gS fd User us TextBox esa ftu Texts dks Highlight fd;k gS] os ml le; Highlight ugha jgsaxh] tc User Focus dks vU; Control ij Move djsxkA ;fn ge pkgsa fd Focus fdlh Hkh Control ij gks] ysfdu TextBox dk Selected Text Highlighted gh jgs] rks gesa bl Property dks False Set djuk gksrk gSA MaxLength Property TextBox dh ;s Property bl ckr dks r; djrh gS fd User Text Box esa fdrus Characters Input dj ldrk gSA ;fn ge bl Property esa 0 Set djrs gSa] rks User vf/kdre 32 KB rd ds Characters ,d TextBox esa Input djrk gSA Locked Property TextBox dh bl Property dks True djus dk eryc ;s gksrk gS fd User bl Text Box ij Focus rks Set dj ldsxk] ysfdu Text Box esa fdlh Hkh rjg dk Change ugha dj ldrk gSA gkykafd User ml Text Box ds Contents dks Scroll dj ldrk gSA ge bls ,slh Enabled Property ds :i esa le> ldrs gSa] tks Focus dks izkIr djus esa l{ke gSA MultiLine Property TextBox dh ;s Property dsoy Design Time esa gh miyC/k gksrh gSA lkekU;r;k lHkh Text Box Default :i ls dsoy ,d gh Line ds Text dks Hold djus esa l{ke gksrs gSa] ftlesa vf/kdre 256 Characters Hold gks ldrs gSaA ysfdu tc ge bl Property dks True Set djrs gSa] rc ge ,d Text Box esa ,d ls T;knk Lines esa Texts Enter dj ldrs gSa vkSj Text Box ij Automatically Word-Wrapping dh Property Apply gks tkrh gS] blfy, TextBox esa Input fd, tk jgs Texts tSls gh TextBox dh Boundary dks Touch djrs gSa] Automatically Next Line esa Transfer gks tkrs gSaA
  37. 37. 36 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi PasswordChar Property TextBox dh bl Property esa ge ftl Character dks Set dj nsrs gSa] Run time esa ml Text Box esa Input fd, tkus okys Actual Texts fn[kkbZ ugha nsrs gSa] cfYd og Text fn[kkbZ nsrk gS] ftls geus bl Property esa Set fd;k gksrk gSA Password Input djrs le; ge ftl Text Box esa Password Input dj jgs gksrs gSa] ml Text Box dh bl Property esa lkekU;r;k “*” Set fd;k x;k gksrk gS] blfy, Password dk gj Character gesa ,d “*” ds :i esa gh fn[kkbZ nsrk gSA ScollBars Property TextBox dh bl Property dks Set djds ge Text Box ds lkFk Scroll Bars dks Set dj ldrs gSaA ysfdu ;s Scrollbars Text Box ij rHkh fn[kkbZ nsrs gSa] tc ge MultiLine Property dks True Set djrs gSaA ge eq[;r% rhu rjg ds Scroll Bars dks TextBox ij Set dj ldrs gSa] ftudh tkudkjh Scrollbars Property ds List Box esa fn[kkbZ nsrh gSA SelText Property TextBox esa ge ftl Text dks Select djrs gSa ;k ftl Content dks Return djokuk pkgrs gSa] mls bl Property esa Specify djrs gSaA ge bl Property esa tks Hkh String Type djrs gSa] Currently Highlighted Text bl Text ls Replace gks tkrk gSA SelStart Property bl Property esa ,d Integer eku gksrk gS] tks TextBox ds First Highlighted Character dh Position dks Represent djrk gSA ;s Zero Based gksrk gS blfy, ;fn blesa Zero gks] rks bldk eryc gS fd geus Text Box ds First Character ij Cursor dks Place dj j[kk gSA ;fn Text Box esa Currently fdlh Text dks Select uk fd;k x;k gks] rks ;s Property TextBox esa Cursor dh Current Position dks Represent djrk gSA ;fn ge bl Property dk eku Change djrs gSa] rks geus TextBox esa tks dqN Hkh Select fd;k gksrk gS] og lcdqN Deselect gks tkrk gS vkSj gekjk Cursor ml Position ij igqap tkrk gS] ftls geus SelStart Property esa Set fd;k gSA SelLength Property TextBox dh bl Property esa Hkh ,d Integer eku gksrk gS] tks fd TextBox esa Select fd, x, Characters dh la[;k dks Represent djrk gSA ge bl Property dks Run Time esa Change djds Selected Texts ds Characters dh la[;k dks Change dj ldrs gSaA ;fn ge blesa 0 Set dj nsa] rks Currently Selected lHkh Characters Deselect gks tkrs gSsaA Text Property Text Box dh Caption Property ugha gksrh gS] cfYd Text Property gksrh gS] tks fd TextBox dh Default Property gksrh gSA ge bl Property dks Design Time o Run Time nksuksa fLFkfr;ksa esa bl Property dks Access dj ldrs gSaA Text Property Text Box ds Currently Visible o Editable Text dks Represent djrk gSA pwafd ;s TextBox dh Default Property
  38. 38. 37 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi gksrh gS] blfy, ge bls Specify fd, fcuk Hkh Text Box ds Texts dks Set vFkok Return djok ldrs gSaA tSls % txtName = “Rahul” OR txtName.Text = “Rahul” Label Control – Important Properties Label Control dh dqN eq[; Properties fuEukuqlkj gSa% Alignment Property Label Control dh String dks bl Property }kjk Left, Center vFkok Right esa Align fd;k tkrk gSA Appearance, BackStyle and BorderStyle Properties Label Control dh ;s rhuksa Properties Label dh General Appearance ls lEcaf/kr Properties gSaA mnkgj.k ds fy, Label dh Default Appearance 3D, Default BackColor vbWhite o Default BorderStyle FixedSingle gksrk gS] ftls ge t:jr ds vk/kkj ij Change dj ldrs gSaA ge ,d Label dks TextBox dh rjg dk Look ns ldrs gSaA ge bldh BackStyle tks fd Normally Opaque gksrh gS] mls Transparent cuk ldrs gSa AutoSize and WordWrap Property Label Control dh AutoSize Property dks True djus ij Label vius Caption ds vuqlkj Lo;a gh Adjust gks tkrk gSA tcfd WordWrap Property dks True djus ij blesa Type fd;k tkus okyk Caption Automatically Next Line esa Shift gks tkrk gSA WordWrap Property mlh fLFkfr esa Vertically Text dks Shift djrk gS] tc mldh AutoSize Property dks True Set fd;k x;k gksrk gSA ;fn ge dsoy AutoSize Property dks True Set djsa] rks Caption dsoy Horizontally gh Increase gksrk gSA Caption Property Label Control dh Caption Property Label dh Default Property gksrh gSA ge Caption dks Run Time esa Hkh Change dj ldrs gSaA ge bl Property dks fcuk Specify fd, gq, Directly Access dj ldrs gSaA tSls% lblName = “Rahul” OR lblName.Caption = “Rahul”
  39. 39. 38 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi Events and Event Procedures fofHkUu izdkj ds Controls mlh fLFkfr esa Response djrs gSa] rc ge mu Controls }kjk Generate dh tkus okyh Events dks Handle djus ds fy, Event Procedures fy[krs gSaA Event dksbZ Hkh ,slk User vFkok System Action gks ldrk gS] ftlds Reaction ds :i esa fdlh dke dks iwjk fd;k tk ldsA mnkgj.k ds fy, Command Button ij Click djuk vFkok TextBox ds Text dks Change djuk vkfn fofHkUu izdkj ds Events ds mnkgj.k gSa vkSj bu Events dks Handle djrs gq, Application esa fdlh dke dks iwjk djokus ds fy, ,sls Procedures fy[kuk] tks fd bu Events ds Response esa Execute gks tk,a] Event Procedures ;k Event Handlers ds mnkgj.k gSaA Visual Basic Programming eq[;r% bl Concept ij vk/kkfjr gS fd “fdl Control ds lkFk fdl Action ds Response esa D;k Reaction gksuk pkfg,A” tSls ;fn CommandButton cmdOK Control ij Click Event Generate gks] rks tks&tks dke gksus pkfg,a] mUgsa cmdOK_Click() uke ds Procedure esa Code dj fy;k tkrk gSA ;s Procedure gh Event Handler ;k Event Procedure dgykrk gS] tks ml fLFkfr esa Automatically Execute gks tkrk gS] tc ge cmdOK uke ds Button ij Mouse ls Click djrs gSaA fdlh Hkh Event Procedure dk Header Create djus ds fy, gesa Design Time esa dsoy ml Control ij Double Click djuk gksrk gS] ftlds fy, ge Event Handler Create djuk pkgrs gSaA tc ge ,slk djrs gSa] rc ml Control o mlds Default Event ds lkFk Automatically ,d Event Procedure Header cu tkrk gSA Command Button ds fy, Click Event, TextBox Control ds fy, Change Event o Label Control ds fy, Click Event Default Events gksrs gSaA ;fn ge Default Event ds LFkku ij fdlh vU; Event dks Use djuk pkgsa] rks Code Window esa fn[kkbZ nsus okys Events ds Combo Box esa ls Required Event dks Select djds okafNr Control ds lkFk Associated u;k Event Handler Header Create dj ldrs gSaA The Click Event Click Event rc Generate gksrk gS] tc User fdlh Enabled Control ij Mouse Button dks Press djds Release djrk gSA ;fn Mouse Pointer fdlh Disabled Control ij gks vFkok ;fn Mouse Pointer Form ds fdlh Blank Area ij gks] rks ml fLFkfr esa Form gh Click Event Receive djrk gS] og Control ugha tks fd Disabled gksrk gSA Click Event dsoy mlh fLFkfr esa Generate gksrk gS] tc User Same Control ij Mouse dk Pointer Place j[krs gq, Mouse ds Button dks Press o Release djrk gSA ;fn User Mouse ds Pointer dks ,d Control ij j[krs gq, Mouse ds Button dks Press djrk gS vkSj Mouser ds Button dks fdlh nwljs Control ij Move djrs gq, Release djrk gS] rks Click Event Generate ugha gksrk gSA Click Event ml fLFkfr esa Hkh Fire gksrk gS] tc User Control dh Access Key dks Press djrk gSA
  40. 40. 39 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi CommandButton bl Control ds fy, Mouse dk dsoy Left Button gh Click Event Fire djrk gSA tc fdlh Command Button ij Focus gksrk gS] rc Spacebar vFkok Enter Key dks Press djus ij Hkh Click Event Fire gks tkrk gSA Programmatically blds Value Property dks True Set djds Hkh Click Event Procedure dks Run dj nsrk gS] ysfdu bl izfØ;k ls Click Event Fire ugha gksrk gSA Label bl Control ds fy, Mouse ds nksuksa Buttons Click Event Fire djrs gSaA TextBox bl Control ds fy, Mouse ds nksuksa Buttons Click Event Fire djrs gSaA The DblClick Event ;s Event rc Fire gksrk gS] tc Control Enabled gksrk gS vkSj User rsth ls nks ckj Click djrk gSA Operating System nksuksa Clicks ds chp ds Timing ds vk/kkj ij ;s r; djrk gS fd User us nks ckj Single Click fd;k gS vFkok ,d ckj Double Click fd;k gSA Command Button ds fy, bl Event dks Visual Basic esa Specify ugha fd;k x;k gS] ysfdu ge Label o Textbox Control ds fy, bl Event dks Use dj ldrs gSaA MouseUp and MouseDown Events tc User fdlh Control ij Mouse ds Button dks Press djrk gS] rc MouseDown Event Fire gksrk gS vkSj tc User Control ij Press fd, x, Mouse ds Button dks Release djrk gS] rc MouseUp Event Trigger gksrk gSA ;fn User fdlh Control ij Mouse ds Button dks Press djrk gS] ysfdu Mouse dks Move djds og fdlh vU; Control ij Mouse ds Button dks Release djrk gS] rks bl fLFkfr esa Hkh ogh Control MouseUp Event izkIr djrk gS] ftlus MouseDown Event izkIr fd;k FkkA MouseDown o MouseUp Event ds nkSjku fdl Shift Key dks Press fd;k x;k Fkk vFkok Mouse ds fdl Button ls MouseUp o MouseDown Event dks Generate fd;k x;k Fkk] bl ckr dh tkudkjh gesa Øe”k% Shift o Button Arguments ls izkIr gks ldrh gS] tks fd MouseUp o MouseDown Event Procedure ds Parameters gksrs gSaA Mouse Move ds vykok lHkh vU; Mouse Events Mouse Buttons ds Action ls Directly Related gksrs gSaA tc User fdlh Label vFkok TextBox ij Click djrk gS] rc fuEu Øe esa fofHkUu Events Fire gksrs gSa% MouseDown MouseUp Click
  41. 41. 40 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi tc User Command Button ij Click djrk gS] rc Trigger gksus okys fofHkUu Events fuEu Øekuqlkj gksrs gSa% MouseDown Click MouseUp tc User fdlh TextBox vFkok Label ij Double Click djrk gS] rc fofHkUu Events fuEu Øe esa Fire gksrs gSa% MouseDown MouseUp Click DblClick MouseUp blh rjg ls tc User Command Button ij Double Click djrk gS] rc fuEu Øe esa fofHkUu Events Generate gksrs gSa] D;ksafd Command Button Double Click Event dks Support ugha djrk gS% MouseDown Click MouseUp MouseDown Click MouseUp The MouseMove Event tc Hkh Mouse dks fdlh Control ij Move fd;k tkrk gS] rc MouseMove Event Fire gksrk gSA ;s Events dkQh rsth ls Execute gksrk gSA MouseMove Event esa Hkh ogh lc Parameters gksrs gSa] tks MouseDown o MouseUp Event esa gksrs gSaA The Change Event ;s Event TextBox Control dk Default Event gksrk gSA tc Hkh ge fdlh Text Box ds Text Property dks Change djrs gSa] ;s Event Trigger gks tkrk gSA User Input ds le; Hkh ;s Event Trigger gksrk gS] D;ksafd Input ds le; User bldh Text Property dks gh Change dj jgk gksrk gSA Label Control Hkh ml fLFkfr esa Change Event Trigger djrk gS] tc Run Time esa blds Caption Property dks Change fd;k tkrk gSA gkykafd User dk Input Label ds Change Event dks dHkh Hkh Fire djus esa l{ke ugha gksrk gSA ;s Event dsoy rHkh Fire gksrk gS] tc User Run Time esa Label ds Caption dks Change djrk gSA
  42. 42. 41 Any Question or Suggesion, Just Discuss Here... VB6 in Hindi The KeyPress Event tc User Keyboard ls fdlh Key dks Press djds Release djrk gS] rc ;s Event Trigger gksrk gSA The KeyUp Event tc User Keyboard ls fdlh Key dks Press djds Release djrk gS] rc ;s Event Trigger gksrk gSA The KeyDown Event tc User Keyboard ls fdlh Key dks Press djrk gS] rc ;s Event Trigger gksrk gSA The GotFocus and LostFocus Event tc fdlh Control dk Focus Lost gksdj fdl vU; Control ij Transfer gksrk gS] rc ftl Control dk Focus Lost gksrk gS] mldk LostFocus Event Trigger gksrk gS vkSj ftl Control dks Focus Transfer gksrk gS] mldk GotFocus Event Trigger gksrk gSA
  43. 43. 1 How to Buy from BccFalna.com इस Website पर उपलब् सभी Saleable Hindi EBooks के साथ “ADD TO CART” नाम का एक Button Attached है। आप जो भी पुस् क खर�दना चाहते ह�, उसके साथ Associated ADD TO CART Button को Click करते ह� वह पुस् क आपके Shopping Cart म� Add हो जाती है: य�द आप अपने Shopping Cart म� कई पुस् क� Add करते ह�, तो Extra Discount प्राप होता है, जो �क Discount Amount व Discount Amount घटाने के बाद सभी पुस् क� के Total Payable Amount के रूप म इसी My Shopping Cart म� उपरोक् �चत्रानुसार �दखाई देता ह सभी वां�छत पुस् क� अपने Shopping Cart म� Add करने के बाद अपना Order Place करने हेतु Checkout Button को Click करना होता है। प�रणामस् रप �नम् ननुसार Checkout Page Display होता है, जहां आपको अपनी Billing Details को Specify करके अपना Payment Mode Select करना होता है:
  44. 44. 2 य�द आप इन पुस् क� को खर�दने के �लए Total Payable Amount का भुगतान अपने Debit Card (ATM, Credit Card), Cash Card अथवा Net Banking) द्वारा घर बैठे करना चाहते ह, तो आपको Online Payment Option Select करना होता है। ले�कन य�द आपके पास �कसी प्रकार कCCAvenue Supported Debit Card (ATM, Credit Card) या Cash Card नह�ं है, न ह� आपके पास �कसी Bank क� Internet या Mobile Banking सु�वधा है, तो उस िस्थ�त म अपना Offline Order Place करने के �लए Offline Manual Payment Option को Select कर सकते ह�।
  45. 45. 3 Online Payment using CCAvenue जब आप Online Payment Option को Select करते हुए “Place order” Button पर Click करते ह�, तो आपके सामने �नम् ननुसार Page Display होता है: अपनी सु�वधा अपने Debit Card (ATM, Credit Card), Net Banking, Cash Card या Mobile Payments Option को Select क�िजए और उपरोक् �चत्र म� दशार्ए अनुसार सभी जरPayment Information को Fill करके Make Payment Button पर Click क�िजए तथा आगे आने वाले Payment Security से सम् ब�धत Step (Login/Password/Pin) Follow क�िजए, ता�क आपका Total Payable Amount आपके Bank A/c से हमारे Bank A/c म� Transfer हो सके ।
  46. 46. 4 आपका Payment Transfer होते ह� आप �नम् �चत्रानुस My Account Page पर पहुंच जाते ह�, जहां पर आप द्वार Order क� गई सभी पुस् क� के Download Links होते ह�, साथ ह� आपको Automatically एक Email भी Send कर �दया जाता है, िजसम� आप द्वार खर�द� गई पुस् क� के Download Links होते ह�:
  47. 47. 5 Offline Payment using Manual Ways जब आप Offline Manual Payment Option को Select करते हुए “Place order” Button पर Click करते ह�, तो Click करते ह� आपका Order Place हो जाता है और आपके सामने �नम् ननुसार Page Display होता है: ये Webpage आप द्वारा Place �कए गए Order क� Information के साथ ह� Order क� गई पुस् क� के Download Links प्राप करने के �लए Follow �कए जाने वाले अगले Step क� जानकार� भी देता है, साथ ह� इस Page पर �दखाई देने वाल� सार� Information आपको आपके Email पर भी Send कर द� जाती है, िजन् ह Follow करते हुए आप अपने Total Payable Amount का Offline Manual Payment करके अपनी Order क� गई पुस् क� के Download Links प्राप कर सकते ह�। जब आप इस Offline Manual Payment Option को Select करते हुए Order Place करते ह�, तो आपका Order तब तक On-Hold Status म� रहता है, जब तक �क आप Offline Manual Payment Page पर Specified �कसी भी तर�के का प्रयोग करते हुए अप Total Payable Amount, हमारे Bank A/c म� Transfer/Deposit नह�ं कर देते। अपना Total Payable Amount हमारे Bank A/c म� Transfer/Deposit करने के बाद आपको हमारे Mobile No.: 097994-55505 पर Call/Miss Call करके अपने Payment Transfer/Deposit करने से सम् ब�धत जानकार� देनी होती है। जैसे ह� आपका Call/Miss Call हम� प्राप होता है, हम अपना Bank A/c Check करते ह� और जैसे ह� आपका Payment हमारे Bank A/c म� Transfer/Deposit होता है, हम आप द्वाराOrder क� गई पुस् क� का Download Link Manually Activate कर देते ह�।
  48. 48. 6 प�रणामस् रूप आपकोAutomatically एक EMail प्राप होता है, िजसम� आप द्वाराOrder क� गई सभी पुस् क� के Download Links होते ह�, िजन् ह आप अगले 48 घण् ट के दौरान Download कर सकते ह�। साथ ह� आपके Download Links के Activate होने क� Information हम आपको Call/SMS के माध् म से भी देते ह�। जब�क अपने Order क� Current Status देखने के �लए आप Website के Menubar म� �दखाई देने वाले My Account Menu Option पर Click कर सकते ह�, जहां आपके Order क� Current Status Information �नम् �चत्रानुस �दखाई देती है: चूं�क ये सारा Process हम� व आपको Manually Follow करना होता है, इस�लए इस Offline Manual Payment द्वार Order करने क� िस्थ�त म� पुस्क� का Download Link प्राप होने म� 5 से 10 �मनट का समय लगता है। एक बार Download Link Activate हो जाने के बाद आप अपनी खर�द� गई पुस् क� को अपने My Account Page से भी Download कर सकते ह�, जहां Download Link Activate होने के बाद आपको अपना My Account Page �नम् �चत्रानुसार �दखाई देने लगता ह
  49. 49. 7 इसके अलावा �कसी Particular Order क� Details प्राप करने के �लए आप इस My Account Page पर �दखाई देने वाले View Button को भी Click कर सकते ह�।
  50. 50. 8 Offline Manual Methods to Pay “Total Payable Amount” viuk Total Payable Amount Pay djus ds fy, vki viuh lqfo/kkuqlkj fuEu esa ls fdlh Hkh rjhds dks Use dj ldrs gSa% Fund Transfer Using ATM Machine orZeku le; esa yxHkx lHkh Banks viuh ATM Machine }kjk Fund Transfer djus dh lqfo/kk Provide djrs gSa] tgka vki vius ATM Card }kjk gekjs fdlh Hkh Bank Account esa viuh iqLrdksa dk Total Payable Amount Transfer dj ldrs gSaA vr% ;fn vkids ikl fuEu esa ls fdlh Hkh State Bank dk Debit Card gS% • SBI (State Bank of India) • SBBJ (State Bank of Bikaner and Jaipur) • SBH (State Bank of Bikaner and Hyderabad) • SBP (State Bank of Bikaner and Patiala) • SBM (State Bank of Mysore) • SBT (State Bank of Travancore) vFkok PNB (Punjab National Bank) ;k BOB (Bank of Baroda) dk Debit Card gS] rks vki SBI/PNB/BOB ds ATM Machine ls Hkh viuk Payment gekjs SBI/PNB/BOB Bank A/c esa Transfer dj ldrs gSaA ;fn vki SBI ATM Machine ls gekjs SBI Bank A/c esa Payment Transfer djuk pkgrs gSa] rks vkidks fuEu Steps dks Follow djuk gksrk gS%  SBI ATM Machine esa viuk Debit Card, Swipe dhft,A  ATM Screen ds Bottom Right Corner esa fn[kkbZ nsus okys Transfer uke ds Option dks Select dhft,A  vius Debit Card dk PIN Number Enter dhft,A  vc Card to Card Transfer uke ds Option dks Select dhft,A  vc gekjs SBI Debit Card Number (6220180786800030243) dks Enter dhft,A  vc gekjs SBI Debit Card Number (6220180786800030243) dks nksckjk Enter dhft,A  vc Transferable Amount ds :i esa Total Payable Amount Specify dhft,A  vc vius Account Type (Savings or Checking) dks Select dhft,A  mijksDr lHkh Steps lgh rjhds ls Follow gksus dh fLFkfr esa vkidk Transaction Complete gks pqdk gS vkSj Total Payable Amount yxHkx rqjUr gekjs SBI Bank A/c esa tek gks tkrk gSA
  51. 51. 9 Bhd blh rjg ds Steps vkidks ml le; Hkh Follow djus gksrs gSa] tc vki PNB या BOB ds ATM Machine ds ek/;e ls gekjs PNB Bank A/c esa Total Payable Amount, Card to Card Transfer djrs gSaA gkykafd vki HDFC, IDB, ICICI tSls dbZ vU; ATM Machines }kjk Hkh Card to Card Transfer dj ldrs gSa] ysfdu ;fn nksuksa Debit Cards leku Banks (PNB, SBI or BOB) ds u gksa] rks Transaction Perform gksus esa 24 ls 96 ?k.Vs dk le; yxrk gSA blfy, bl fLFkfr esa csgrj ;gh gksrk gS fd ;fn vkids ikl Net Banking, Mobile Baking, AirTel Money ;k SBI/PNB/BOB Debit Card fdlh Hkh rjg dh lqfo/kk u gks] rks vki Total Payable Amount dk Payment djus ds fy, Cash Deposit rjhds dks gh Use djsa vFkok Bank esa tkdj NEFT Transfer Hkh dj ldrs gSa] ftlesa vkidk Payment vf/kdre 4 ?k.Vs ds njE;ku gekjs Bank A/c esa Deposit gks tkrk gSA Payment Transfer Using Net-Banking ;fn vkids ikl Net-Banking dh lqfo/kk gS] rks vki Payment Transfer djus ds fy, vius Account esa Login djds fuEu esa ls fdlh Hkh Bank A/c esa Payment Deposit dj ldrs gSa%
  52. 52. 10
  53. 53. 11 tc vki Net-Banking ds ek/;e ls Payment djuk pkgrs gSa] rks vkidks yxHkx 8 ls 24 ?k.Vs igys gekjs ml Account dks Beneficiary ds :i esa vius Bank A/c ls Link djuk iMrk gS] ftlesa vki Payment Transfer djuk pkgrs gSaA tc ,d ckj gekjk Bank Account Beneficiary ds :i esa Activate gks tkrk gS] mlds ckn vki ml Bank Account esa viuk Total Payable Amount Transfer dj ldrs gSaA Pay with Mobile-Banking or AirTel Money ;fn vkius vius Mobile Number ij AirTel Money uke dh Service dks Activate fd;k gqvk gS] rks vki vius Mobile }kjk AirTel Money Account ds ek/;e ls Hkh gesa Payment dj ldrs gSaA tcfd ;fn vkius vius Bank ls Mobile Banking dh lqfo/kk dks Activate djok;k gqvk gS] rks vki vius Mobile }kjk gesa Mobile-Banking ds ek/;e ls Hkh Payment Transfer dj ldrs gSaA ;fn vki viuk Total Payable Amount Pay djus ds fy, AirTel Money ;k Mobile Banking Transfer lqfo/kk dks Use djrs gSa] rks vkidk Payment rqjUr gekjs Account esa Transfer gks tkrk gSA blfy, rqjUr EBooks izkIr djus gsrq Payment Transfer djus dk ;s lcls rst rjhdk gSA tcfd blds vykok tks nwljk lcls rst rjhdk gS] og ATM Machine }kjk Fund Transfer lqfo/kk dk mi;ksx djrs gq, Payment Transfer djuk gSA tcfd Internet-Banking ml fLFkfr esa dkQh /khek Process gS] tc vki igyh ckj Payment dj jgs gksrs gSa] D;ksafd First Time Payment djus ls igys vkidks Beneficiary ds :i esa gekjs fdlh ,d Bank Account dks vius Bank Account ls Link djuk iMrk gS vkSj bl Process esa Payment Transfer gsrq gekjk Bank Account Activate gksus esa de ls de 8 ls 24 ?k.Vs dk le; yxrk gSA gkykafd ,d ckj Account Activate gks tkus ds ckn vkidk Transfer rqjUr gks tkrk gSA
  54. 54. 12 tcfd Cash Deposit dk rjhdk lcls /khek rjhdk gS] tgka vki Bank Holidays dks Payment Deposit ugha dj ldrs vkSj Business Days esa Hkh Payment Deposit djus dk ,d fuf”pr le; 10PM to 4AM gksrk gSA Cash Deposit in Bank Brach ;fn vkids ikl Net-Banking ;k Mobile-Banking dh lqfo/kk ugha gS] rks vki gekjs fdlh Hkh Bank A/c esa Total Payable Amount, Cash Deposit Hkh dj ldrs gSa vFkok vki Bank Branch esa tkdj NEFT Transfer ds ek/;e ls Hkh Payment dj ldrs gSa] tks fd Cash Deposit ds leku gh gksrk gSA tc vki Direct Deposit djuk pkgrs gSa] rc vkidks vkids fdlh Hkh utnhdh Bank Branch esa tkdj ,d Payment Deposit Slip Fill-Up djuk gksrk gS] ftlesa vkidks gekjs fdlh Hkh Bank A/c dh Information dks Fill djuk gksrk gS] tcfd Payment Deposit djokus ds fy, mlh Bank esa vkidk Lo;a dk Account gksuk t:jh ugha gSA mnkgj.k ds fy, ;fn vki gekjs SBI Bank A/c esa viuh Selected iqLrdksa dk Total Payable Amount Pay djus ds fy, Bank esa tkdj Direct Deposit djuk pkgrs gSa] rks vki tks Payment Deposit Slip Fill-Up djsaxs] og vxys fp=kuqlkj djuk gksrk gSA

×