Two questions about textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

1. I've created a dataform with the wizard. There is textbox that is bounded to a field, if I make this textbox invisible, I'm not able to read is value.
I' ve other projects thaT I´m able to do it. It doesn´t seem to be very consistent. So, my first question is - How to read the value of a textbox bounded to a field if I make this textbox invisilbe ?

2. How to set the size, Bold and Italic of a Label in 'Run Time' ?

Thanks in advance

Luis
 
Hi Luis,

This sounds strange to me,
did you try

Me.Label1.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0,
Byte))

(What I did, was copying this from the designer created code, little trick
but very usefull)

me.textbox1.visible = false
me.textbox1.text ="Luis"
messagebox.show(me.textbox1.text)
///

I am curious what you see?

Cor

1. I've created a dataform with the wizard. There is textbox that is
bounded to a field, if I make this textbox invisible, I'm not able to read
is value.
I' ve other projects thaT I´m able to do it. It doesn´t seem to be very
consistent. So, my first question is - How to read the value of a textbox
bounded to a field if I make this textbox invisilbe ?
 
Hi,

Here is how to change the font and size

TextBox1.Size = New Size(200, 10)

TextBox1.Font = New Font(TextBox1.Font, FontStyle.Bold)


Ken
 
Back
Top