none
Enter botton (from keyboard) RRS feed

  • Question

  • hi,

    how to assign to a textbox such property that it will react at the botton "Enter" and user will be able after hiting "Enter" to get to the second line in my form.

    Thank you.

    Olga.


    Olga
    • Changed type OlgaNayda Saturday, December 17, 2011 1:02 AM Did not receive the answer
    • Edited by OlgaNayda Saturday, December 17, 2011 2:58 AM
    • Moved by Cindy Meister MVPModerator Sunday, December 18, 2011 4:59 PM VBA, not VSTO-related (From:Visual Studio Tools for Office)
    Friday, December 16, 2011 11:29 PM

Answers

  • Hello Olga,

    Look for the Multiline property.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 7:46 AM
  • I'm sorry, in addition to Multiline = True, you also need to set EnterKeyBehavior = true. BTW, I assume you are talking about a TextBox on a UserForm, correct?
    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 8:06 AM
  • Hi Andrei,

    Thank you very much for your answer and for your "Regards from Belarus".

    I lived in Chernigov, Ukraine. This city is very close to Belarus (to Gomel).

     

    Have a great weekend,

    Olga.


    Olga
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 10:26 PM

All replies

  • Hello Olga,

    Look for the Multiline property.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 7:46 AM
  • I'm sorry, in addition to Multiline = True, you also need to set EnterKeyBehavior = true. BTW, I assume you are talking about a TextBox on a UserForm, correct?
    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 8:06 AM
  • Hi Olga

    Please provide additional information:

    1. Office application involved in your question

    2. Version of the Office application

    3. Program language you're using

    4. What kind of form this is. Is this a VBA UserForm? A .NET Windows Form? A Word document form? An Excel document form?


    Cindy Meister, VSTO/Word MVP
    Saturday, December 17, 2011 9:33 AM
    Moderator
  • Hi Andrei,

    Thank you very much for your answer and for your "Regards from Belarus".

    I lived in Chernigov, Ukraine. This city is very close to Belarus (to Gomel).

     

    Have a great weekend,

    Olga.


    Olga
    • Marked as answer by OlgaNayda Saturday, December 17, 2011 10:26 PM
    Saturday, December 17, 2011 10:26 PM