User Interface

  • Thread starter Thread starter J. Marcelo Barbieri
  • Start date Start date
J

J. Marcelo Barbieri

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,
 
for the answer to question #2 see
http://www.syncfusion.com/FAQ/WinForms/FAQ_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.BackgroundImage = new Bitmap (@"C:\WINDOWS\Soap Bubbles.bmp");

I believe the above will tile the image, have a look at the
dotnet.framework.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
 
Back
Top