2 Replies - 220 Views - Last Post: 06 August 2018 - 08:32 AM Rate Topic: -----

#1 sumitsarkar   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-August 18

Basic text control

Posted 04 August 2018 - 01:04 AM

Text placed on lable1.

Private sub text1_lostfocus()
lable1=text1
text.visible=false.
End sub


My problem is data placed in lable1 but it's not visible!!!
Is This A Good Question/Topic? 0
  • +

Replies To: Basic text control

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14685
  • View blog
  • Posts: 58,688
  • Joined: 12-June 08

Re: Basic text control

Posted 04 August 2018 - 09:41 AM

Typically you would want to use the '.text' property of both the textbox and the label.

Also - if you want a label to visible (assuming it was invisible) then you would want to set the .visible property to true.
Was This Post Helpful? 0
  • +
  • -

#3 maj3091   User is offline

  • D.I.C Lover
  • member icon

Reputation: 331
  • View blog
  • Posts: 2,005
  • Joined: 26-March 09

Re: Basic text control

Posted 06 August 2018 - 08:32 AM

Assuming this is VB6, then you would use the caption property of the label.

 myLabel.Caption = "I'm a Label" 

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1