title: If Statement inside Case Statement (VB.Net)
body: <p>Hi I am new in coding at Visual studio.
  I'm Using Visual Studio 2012
  I Have a Question.
  I want to Connect combobox and textbox31 to textbox1
  ex. if the combobox is 100 and textbox31 is 1 so the textbox1 will be 100</p>
  
  <p>I End Up With This Code:</p>
  
  <pre><code>Dim c As String
  
      c = ComboBox1.Text
  
  
      Select Case "c"
  
          Case 100
              If TextBox31.Text &gt;= 2.25 Then
                  TextBox1.Text = 100
              ElseIf TextBox31.Text &gt;= 2.5 Then
                  TextBox1.Text = 75
              ElseIf TextBox31.Text &gt;= 2.75 Then
                  TextBox1.Text = 50
              ElseIf TextBox31.Text &gt;= 3 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 3.25 Then
                  TextBox1.Text = 0
  
              End If
  
          Case 75
              If TextBox31.Text &gt;= 2.25 Then
                  TextBox31.Text = 75
              ElseIf TextBox1.Text &gt;= 2.5 Then
                  TextBox1.Text = 75
              ElseIf TextBox31.Text &gt;= 2.75 Then
                  TextBox1.Text = 50
              ElseIf TextBox31.Text &gt;= 3 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 3.25 Then
                  TextBox1.Text = 0
  
              End If
  
          Case 50
              If TextBox31.Text &gt;= 2.25 Then
                  TextBox1.Text = 50
              ElseIf TextBox31.Text &gt;= 2.5 Then
                  TextBox1.Text = 50
              ElseIf TextBox31.Text &gt;= 2.75 Then
                  TextBox1.Text = 50
              ElseIf TextBox31.Text &gt;= 3 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 3.25 Then
                  TextBox1.Text = 0
  
              End If
  
  
          Case 25
              If TextBox31.Text &gt;= 2.25 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 2.5 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 2.75 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 3 Then
                  TextBox1.Text = 25
              ElseIf TextBox31.Text &gt;= 3.25 Then
                  TextBox1.Text = 0
  
              End If
  
      End Select
  </code></pre>
  
  <p>but when i iput in combobox and textbox 31 the textbox1 didnt respond or what i want to get.</p>