© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
11 replies
✿ ♡ 𝓦𝓲𝓵𝓭𝓒𝓪𝓻𝓭 ♡ ✿

✅ .NET 9.0 | CSharp - WinForms | Encryption & Button Function Issue

Having a minor issue when trying to encrypt a file.

This is my exception error that was thrown:
Error: Method or operation is not implemented
Error: Method or operation is not implemented


Here is my button call code:

private async void ButtonEncrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;

        await fileEncrypterHelper.EncryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}

private async void ButtonDecrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;


        await fileEncrypterHelper.DecryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}
private async void ButtonEncrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;

        await fileEncrypterHelper.EncryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}

private async void ButtonDecrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;


        await fileEncrypterHelper.DecryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}


Here is the code for everything in my
FileEncrypterHelper.cs
FileEncrypterHelper.cs
:
ifbr6SgT3us7UoMd.txt11.79KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ .NET 9.0 - CSharp WinForms (Closed Case)
C#CC# / help
16mo ago
Button color-fading issue | WinForms
C#CC# / help
3y ago
❔ Encryption issue
C#CC# / help
3y ago
Not avialible in CSharp 9.0 use 10.0 or greater
C#CC# / help
4y ago