So, the title may seem confusing so hopefully I am able to explain myself better via the thread body. I am developing an application for a friend that wants to have a blue light reducing effect for his every day browsing. I have been able to accomplish the task by making my form full size, opaque and the back color being orange, like most other filtering apps. The issue with this approach is I am unable to figure out how to enable clicks on other applications and windows below my form. I have attached the code below and would love some assitance on figuring this issue out. I am an undergrade so I am learning as I go so please, understand that I am trying my best and hope that I can find a solution through some good ole fashioned peer-to-peer communication. Thanks guys and happy coding!
Source:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Blue_Light_Reducer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.BackColor = Color.Orange;
this.Opacity = .20;
this.WindowState = FormWindowState.Maximized;
button1.Visible = false;
}
}
}