Advertisement
ASP_Volume2 VB function enhancement #25923

Disable textboxes without graying them out! (NO API)

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

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
1. Start Visual Basic.<BR>
2. Then, start a new project.<BR>
3. Next, Add a picturebox control to form and make it flat and the same backcolor as the form backcolor.
<BR>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)<BR>
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.
<BR>
If you have read this article, then thanks for reading it.<BR>
Carroll Dearstone
Original Comments (3)
Recovered from Wayback Machine