dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: event 'GotFocus'

  1. #1
    Join Date
    Nov 2006
    Posts
    13

    event 'GotFocus'

    hi,

    How do i access the event 'GotFocus' in VB 6.0?


    Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    In the top of your IDE [In the Code view] , there is two combo boxes .. the left one contains controls name , functions and the right one contains all subevents ..

    for example to access the event "GotFocus" from the control "Combo1" :
    In the left choose your "Combo1" and then from right "GotFocus"

    Write cooding for this could be "Private Sub Combo1_GotFocus()" but preferable to let the IDE generate it because some problems of missing parammeters ..
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    From the code window, you select the control from the drop down list on the left and then select the GotFocus event from the drop down list on the right. This will create the GotFocus event subroutine where you would then insert your code. Be forwarned that whatever the default event for that control, usually the click event, will get it's event sub created automatically when you select the control from the list on the left.
    After you select the GotFocus event from the list on the right you should go back and delete the empty event sub for the default event. If you already have code in the controls default event then it won't create another one, it will just take you to that code. Which is great because then you don't have to go back later and delete the empty sub.

Similar Threads

  1. DataAdapter RowUpdated Event Problem (C# 2.0)
    By me_code2004 in forum .NET
    Replies: 1
    Last Post: 06-07-2006, 08:52 PM
  2. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 10:40 PM
  3. Re: App Object (fixes)
    By Rob Teixeira in forum .NET
    Replies: 129
    Last Post: 06-06-2002, 05:23 AM
  4. REPOST-from VB.dotnet.technical
    By Sachin in forum VB Classic
    Replies: 8
    Last Post: 09-09-2001, 11:29 AM
  5. Com+ Event Again
    By Arger in forum VB Classic
    Replies: 0
    Last Post: 09-29-2000, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center