Results 1 to 33 of 33

Thread: [RESOLVED]Q about Locking combobox

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    156

    [RESOLVED]Q about Locking combobox

    Ok, There are 7 textboxes, named A-G and a combobox(combo1)
    I'm trying to block user's accesss to the combobox if the 7 textboxes are still empty,
    so the user has to fill in all 7 texboxes with any number to be able to access the combobox.
    So i lock the combobox at the start of the program :

    Code:
    Private Sub Form_Load()
    
    combo1.locked = true
    
    End Sub
    then i put this code in each textbox (A.text until G.text) :

    Code:
    If Not Len(A.Text) And Not Len(B.Text) And Not Len(C.Text) And Not Len(D.Text) And Not Len(E.Text) And Not Len(F.Text) And Not Len(G.Text) = 0 Then
    combo1.locked = false
    Now the problem is :
    If i put the numbers in order from A to G, the combobox would be unlocked.
    OK, at first I thought there was no problem...
    but if i put a number only in G a(the last textbox, the other textboxes are still empty) the combobox would be unlocked as well,
    now i don't want this to happen because the user has to fill in all textboxes before he could access the combobox,
    So how do make it work like that?
    Last edited by Deny Winarto; May 16th, 2005 at 06:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width