VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Disable textboxes without graying them out (NO API)

by CD (1 Submission)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

This article will allow you to enable/disable a textbox using a picture box to control it.

Rate Disable textboxes without graying them out (NO API)

1. Start Visual Basic.

2. Then, start a new project.

3. Next, Add a picturebox control to form and make it flat and the same backcolor as the form backcolor.

4. After you have added the picture box you will need to add a textbox and put it in the picture box. (NOTE: NOT OVER IT BUT INSIDE IT)

5. Make the picturebox control disabled to disable typing in the textbox without graying it out, and make it enabled to type in the text box.


If you have read this article, then thanks for reading it.

Carroll Dearstone

Download this snippet    Add to My Saved Code

Disable textboxes without graying them out (NO API) Comments

No comments have been posted about Disable textboxes without graying them out (NO API). Why not be the first to post a comment about Disable textboxes without graying them out (NO API).

Post your comment

Subject:
Message:
0/1000 characters