You are not logged in.

j4ckkn1fe

Beginner

  • "j4ckkn1fe" started this thread

Posts: 6

Date of registration: Feb 23rd 2010

  • Send private message

1

Thursday, February 25th 2010, 5:21am

Text box wont change text!

I'm changing a text boxes text with this:

Source code

1
txtOutput.Text = "test?"


But when I run it comes out it displays as Text1. I have gotten rid of the default text so there is no Text1 referenced anywhere in my project.

I am also trying to auto resize the textbox with this code

Source code

1
2
3
4
5
6
7
Public Sub Form_Resize()
   
   'Size txtOutput on Resize
   txtOutput.Width = MainWindow.Width
   txtOutput.Height = MainWindow.Height
   
End Sub


But I get a "Use class name for static methods" error.

Any help on these two questions will help me greatly.

j4ckkn1fe

Beginner

  • "j4ckkn1fe" started this thread

Posts: 6

Date of registration: Feb 23rd 2010

  • Send private message

2

Thursday, February 25th 2010, 5:30am

Ok I solved the won't change text problem. I changed the default name of the form to MainWindow and the module didn't update as well ("Maybe fix this in a later verson?")

I also fixed the resize error with using Me.Width & Me.Height but the text box doesn't fill the form and the auto resize doesn't work very well. Any help on this?

harvey013i

Beginner

Posts: 1

Date of registration: Dec 24th 2010

  • Send private message

3

Tuesday, February 15th 2011, 9:44pm

Solving the text wont show probelm

Well its just that Jabaco default text box type is text1, text2, text3.........therefore try writting



text1.text = "test?" instead of textoutput.text'



or you can change text1 into textoutput in the tool box



Hope it helps :)

Rate this thread
WoltLab Burning Board