Learning VB, and have a question about Focus()

I know that the .Focus() allows you to focus on a text input field, or wherever you wish your eye to be directed, but I am wondering, is there a way to use Focus to direct the person’s view to whatever field they left empty?

So in other words, as an example:

Try
            Code to input Field A

            Code to input Field B

            Code to input Field C


       Catch
            'Error Message Box for one or more of the empty Class Ticket Fields.
            MessageBox.Show("One or More of the Fields are empty! Please Enter a Value!")
            txt_ClassA.Focus()
        End Try

Now lets say that someone forgot to enter text into field B, is there a way except to write a try/catch for each individual input field, to have the .Focus() actually focus on B automatically?

I’ll try to answer both the technical part of your question in a bit, but I would to start with pointing out that validating a form in its entirety before providing (limited) feedback about the found issues is a bit outdated.
You can read up on the latest insights in usability (and related field) on the dedicated Stack Exchange site. Note though that any of the newer techniques will probably prevent your current problem from occurring, so it may be wise to read up before continueing with your current solution.
However, you may be stuck with some older code or have specific requirements to implement the form as you did so I will also attempt to answer your question from a technical point of view.

Note that the Focus method is not so only about drawing the attention to a specific control on your form.
It also (or, in my opinion, instead) makes a control the active control. This will allow your program to find out on which control a key press or mouse click should to be executed.

You are looking for a way to check if all required fields have values without creating duplicate code. This is a good attitude!
If I would be asked to do this, I would try to find the commonalities (the parts that are duplicate).
In your example, this would be the check on whether or not a text box contains a value, and the reporting of the problem if a problem is found.
I would then create a method where I would store the common code and ‘inject’ the non-common code, which in you example are the different text boxes.
I have not written any VB since VB 6, so I hope the pseudo VB code below will get the point across.

The method:

Private Function TextBoxContainsValue(textBoxToCheck as TextBox, labelText String) as Boolean
    If textBoxToCheck.Text = "" Then
        textBoxToCheck.Focus()
        MessageBox.Show("The text box labelled " + labelText + " is required. Please enter a valid value.");
        TextBoxContainsValue = False
    Else
        TextBoxContainsValue = True
    End If
End Function

Your current code can then change to something like:

If Not TextBoxContainsValue(txt_ClassA, "Class A") Then
    ' No need to check the other text boxes since we can put the focus on just one control.
    Exit Sub
End If

If Not TextBoxContainsValue(txt_ClassB, "Class B") Then
    Exit Sub
End If

If Not TextBoxContainsValue(txt_ClassC, "Class C") Then
    Exit Sub
End If

Again, this just addresses the technical part of your question (even adds a bit more information about which text box was found empty).
Searching for “form validation” on the User Experience Stack Exchange site (found at: ) resulted in over 50 pages of questions.
Do yourself and your users a big favor a check out at least some of them to get an idea on how to improve your users experience.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật