添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
温柔的保温杯  ·  HTML5 ...·  7 月前    · 
力能扛鼎的乌龙茶  ·  React 19 Beta Released!·  7 月前    · 
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Code:
txtVNO.LOCKED = True
The error is : 'Locked' is not a member of 'System.Windows.Forms.Text'
Then how to lock a textbox? Please advise.
Regards.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Locked is a property of controls for the designer, it has nothing to do with the controls at runtime (Locked simply means you can't move or resize a control in the designer with the mouse)
You either disable the TextBox (.Enabled = False) or, since it's a TextBox you use the ReadOnly property of which Hack has already shown an example. Though I wouldn't use static color as that it might not match the user's theme (color scheme) I would set the .BackColor = SystemColors.Window instead:
Code:
txtVNO.ReadOnly = True
txtVNO.Backcolor= SystemColors.Window
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.