User Interface

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J. Marcelo Barbieri

    #1

    User Interface

    I've sorted many difficulties, but couldn't manage these ones:



    1)I have textboxes in my form with MaxLenth property set. How can I
    configure them to automatically chance focus to the next one when the
    maximum lengh is reached?



    2)How can I use the "Enter" key to tab from one textbox to the other,
    instead of the "Tab" key?



    3)How can I set a background image to a form linked to an external jpg file?
    I mean, when I set the backgroundimage property of the form, VS compiles the
    image to the exe. I need to change the form background by changing the
    picture in the application directory.





    thanks,



  • Michael Mayer

    #2
    Re: User Interface

    for the answer to question #2 see
    http://www.syncfusion.com/FAQ/WinFor...c94c.asp#q915q

    for #3 - have you tried leaving the property in the designer set to
    its default value (whatever that is) and instead initialize it in
    code, something like:

    this.Background Image = new Bitmap (@"C:\WINDOWS\S oap Bubbles.bmp");

    I believe the above will tile the image, have a look at the
    dotnet.framewor k.windowsforms newsgroup as I think there have been
    some posts about that.

    as for #1, you might be able to incorporate functionality into the
    TextChanged event to check for max length, then do as in answer #2
    with a SendKeys call.

    HTH,
    Mike


    "J. Marcelo Barbieri" <mbarbieri@bf.c om.br> wrote in message
    news:%231RaPesV DHA.3404@tk2msf tngp13.phx.gbl. ..[color=blue]
    > I've sorted many difficulties, but couldn't manage these ones:
    > 1)I have textboxes in my form with MaxLenth property set. How can I
    > configure them to automatically chance focus to the next one when[/color]
    the[color=blue]
    > maximum lengh is reached?
    >
    > 2)How can I use the "Enter" key to tab from one textbox to the[/color]
    other,[color=blue]
    > instead of the "Tab" key?[/color]
    [color=blue]
    > 3)How can I set a background image to a form linked to an external[/color]
    jpg file?[color=blue]
    > I mean, when I set the backgroundimage property of the form, VS[/color]
    compiles the[color=blue]
    > image to the exe. I need to change the form background by changing[/color]
    the[color=blue]
    > picture in the application directory.
    >[/color]


    Comment

    Working...