title: How to Style @Html.BeginForm() using Razor and VB.NET
body: <p>I have done plenty of searching the web for an answer and cant seem to break through. I am trying to set the maximum height for the message box text area at the bottom of the form. I am using VB.Net, MVC and Razor to try and accomplish this. If I was in C# I would know how to write it out but I guess I dont have enough of an understanding of that to translate to VB. The company I work for uses VB but no one uses MVC so I am on my own here. </p>
  
  <p>The Code:</p>
  
  <pre><code>@Using (Html.BeginForm())
                  @Html.AntiForgeryToken()
  
              @&lt;div class="form-horizontal"&gt;
                  &lt;h4&gt;Notification&lt;/h4&gt;
                  &lt;hr /&gt;
                  @Html.ValidationSummary(True, "", New With {.class = "text-danger"})
  
                  @*&lt;div class="form-group"&gt;
                      @Html.LabelFor(Function(model) model.DateStart, htmlAttributes:=New With {.class = "control-label col-md-2"})
                      &lt;div class="col-md-10"&gt;
                          @Html.EditorFor(Function(model) model.DateStart, New With {.htmlAttributes = New With {.class = "form-control"}})
                          @Html.ValidationMessageFor(Function(model) model.DateStart, "", New With {.class = "text-danger"})
                      &lt;/div&gt;
                  &lt;/div&gt;*@
  
                  &lt;div class="form-group"&gt;
                      @Html.LabelFor(Function(model) model.DateEnd, htmlAttributes:=New With {.class = "control-label col-md-2"})
                      &lt;div class="col-md-10"&gt;
                          @Html.EditorFor(Function(model) model.DateEnd, New With {.htmlAttributes = New With {.class = "form-control"}})
                          @Html.ValidationMessageFor(Function(model) model.DateEnd, "", New With {.class = "text-danger"})
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group"&gt;
                      @Html.LabelFor(Function(model) model.Title, htmlAttributes:=New With {.class = "control-label col-md-2"})
                      &lt;div class="col-md-10"&gt;
                          @Html.EditorFor(Function(model) model.Title, New With {.htmlAttributes = New With {.Class = "form-control datepicker"}})
                          @Html.ValidationMessageFor(Function(model) model.Title, "", New With {.class = "text-danger"})
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group"&gt;
                      @Html.LabelFor(Function(model) model.Message, htmlAttributes:=New With {.class = "control-label col-md-2"})
                      &lt;div class="col-md-10"&gt;
                          @Html.EditorFor(Function(model) model.Message, New With {.htmlAttributes = New With {.class = "form-control"}})
                          @Html.ValidationMessageFor(Function(model) model.Message, "", New With {.class = "text-danger"})
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group"&gt;
                      &lt;div class="col-md-offset-2 col-md-10"&gt;
                          &lt;input type="submit" value="Create" class="btn btn-default" /&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          End Using
  </code></pre>
  
  <p>atempt at adding a class and styling</p>
  
  <pre><code>&lt;div class="form-group"&gt;
                          @Html.LabelFor(Function(model) model.Message, htmlAttributes:=New With {.class = "control-label col-md-2"})
                          &lt;div class="col-md-10"&gt;
                              @Html.EditorFor(Function(model) model.Message, New With {.htmlAttributes = New With {.class = "form-control newClass"}})
                              @Html.ValidationMessageFor(Function(model) model.Message, "", New With {.class = "text-danger"})
                          &lt;/div&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.newClass {
      min-height: 250px;
  }
  </code></pre>