Group radio buttons in Windows Form

To have multiple groups of radio buttons that should not affect each other, it is necessary to group them as a GroupBox or Panel.

In Visual Studio, open your toolbox, scroll down to “Containers” and choose your box / panel. All radio buttons in this box / panel will now be interconnected.

Group radio buttons

Clear all TextBoxes

This loop function will clear all TextBoxes in your Form, wherever they are placed.
Comes in handy when creating a “Clear fields” button

private void button1_Click(object sender, EventArgs e)

private void RecursiveClearTextBoxes(Control.ControlCollection cc)
foreach (Control ctrl in cc)
TextBox tb = ctrl as TextBox;
if (tb != null)

An error occurred during the parsing of a resource required to service this request

I suddenly got this error in my ASP.NET Web Forms project in Visual Studio. Even after creating a new Web Form without content, I was thrown this error. The solution was very simple. All you have to do is rebuild your project.

Server Error in ‘/’ Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type ‘Listing’.

Source Error:

Line 1: <%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”8-8_Listing.aspx.cs” Inherits=”Listing” %> Line 2:
Line 3: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”

Source File: /8-8_Listing.aspx Line: 1