Results 1 to 5 of 5

Thread: Please Help: VB to C#

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    17

    Question Please Help: VB to C#

    Hi,

    I have recently shifted from VB6 to C#. Please tell me the equivalent in C# of Lost_Focus for a text box in VB6 and how do i define it.

    Thanks & Regards,
    Ashish

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Please Help: VB to C#

    There is a LostFocus event for the TextBox.

    DJ

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Please Help: VB to C#

    Quote Originally Posted by ashish_0311
    Hi,

    I have recently shifted from VB6 to C#. Please tell me the equivalent in C# of Lost_Focus for a text box in VB6 and how do i define it.

    Thanks & Regards,
    Ashish
    TextBox.Leave event (and GotFocus is TextBox.Enter)

    rate my posts
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Please Help: VB to C#

    Quote Originally Posted by MrPolite
    rate my posts
    Please do not ask directly for rep points.

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Re: Please Help: VB to C#

    I realize your question was already answered, but here is a way to discover the answer yourself...

    1. Drag/drop the control onto a form (make sure it's selected)
    2. View the Properties window
    3. Click the Event button in the Prop window (with the Lightning Bolt icon)
    4. Right-click the Properties window and make sure "Description" is checked
    5. Scroll through the events and see if one sounds like what you want
    6. If you're not sure, select the event and read it's description in the bottom of the window


    Hope that helps!
    ~seaweed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width