Results 1 to 1 of 1

Thread: Control Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2009
    Posts
    123

    Control Problem

    I'm Writing a Silverlight 4 app, the interface has a series of text boxes and check boxes, depending on the combination of check boxes checked the textboxes will enable, problem i'm having is the textboxes dont enable they just remain in their loaded state, unless i choose a combination that will trigger my msg box then the textbox's will enable in the correct manner.

    here's a sample of the code i'm working with

    Code Code:
    1. Private Sub Primer() Handles VariableA.checked, VariableB.Checked, VariableC.Checked
    2. If VariableA.IsChecked = true and VariableC.IsChecked = true then
    3. MessageBox.Show("You Do Not Need Variable C checked")
    4. VariableC.IsChecked = False
    5. ElseIf VariableA.IsChecked = True and Variable.B.IsChecked = True then
    6. TxtCalculation1.IsEnabled = True
    7. TxtCalculation2.IsEnabled = True
    8. TxtCalculation3.IsEnabled = False
    9. End If
    10. End Sub
    Last edited by addntox; May 28th, 2010 at 10:58 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