Gυαɾԃιαɳ
Gυαɾԃιαɳ
CC#
Created by Gυαɾԃιαɳ on 11/7/2024 in #help
✅ .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 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:
12 replies
CC#
Created by Gυαɾԃιαɳ on 11/6/2024 in #help
✅ Help 2.0
Color accentColor = Properties.Settings.Default.accentColor;
string color = accentColor.ToString();
Color accentColor = Properties.Settings.Default.accentColor;
string color = accentColor.ToString();
This returns "Color [Red]" How do I make it return "Red"?
12 replies
CC#
Created by Gυαɾԃιαɳ on 11/6/2024 in #help
✅ Help?
So my code here anything with a self-reference it deletes itself. I don't know why.
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
Titlebar = new Panel();
ButtonMinimize = new Button();
ButtonExit = new Button();
Title = new Label();
TitlebarIcon = new PictureBox();
TitlebarAccent = new Panel();
ButtonTextEncrypter = new Button();
ButtonFileEncrypter = new Button();
ButtonFileReader = new Button();
ButtonMemeForge = new Button();
ButtonSettings = new Button();
SidePanelTitle = new Label();
SidePanelSlogan = new Label();
HFSCChkBox = new CheckBox();
showPasswords = new CheckBox();
TextboxUsername = new TextBox();
TextboxPassword = new TextBox();
TextboxEPAS = new TextBox();
UsernameTitle = new Label();
PasswordTitle = new Label();
DefaultEncryptionPassTitle = new Label();
AccentColors = new ComboBox();
AccentColorTitle = new Label();
AlwaysOnTop = new CheckBox();
DiscordFormatChkBox = new CheckBox();
TextboxASFLocation = new TextBox();
AutoSaveFilesChkBox = new CheckBox();
ButtonBrowse = new Button();
MFAPI = new Label();
TextboxMFAPI = new TextBox();
sidePanel2 = new Panel();
ButtonMods = new Button();
button1 = new Button();
panel1 = new Panel();
ReaderPage = new FileReader();
TextEncrypterPage = new TextEncrypter(this);
FileEncrypterPage = new FileEncrypter(this);
MemeForgePage = new MemeForge(this);
TerminalPage = new terminal(this);
Titlebar.SuspendLayout();
((System.ComponentModel.ISupportInitialize)TitlebarIcon).BeginInit();
sidePanel2.SuspendLayout();
panel1.SuspendLayout();
SuspendLayout();
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
Titlebar = new Panel();
ButtonMinimize = new Button();
ButtonExit = new Button();
Title = new Label();
TitlebarIcon = new PictureBox();
TitlebarAccent = new Panel();
ButtonTextEncrypter = new Button();
ButtonFileEncrypter = new Button();
ButtonFileReader = new Button();
ButtonMemeForge = new Button();
ButtonSettings = new Button();
SidePanelTitle = new Label();
SidePanelSlogan = new Label();
HFSCChkBox = new CheckBox();
showPasswords = new CheckBox();
TextboxUsername = new TextBox();
TextboxPassword = new TextBox();
TextboxEPAS = new TextBox();
UsernameTitle = new Label();
PasswordTitle = new Label();
DefaultEncryptionPassTitle = new Label();
AccentColors = new ComboBox();
AccentColorTitle = new Label();
AlwaysOnTop = new CheckBox();
DiscordFormatChkBox = new CheckBox();
TextboxASFLocation = new TextBox();
AutoSaveFilesChkBox = new CheckBox();
ButtonBrowse = new Button();
MFAPI = new Label();
TextboxMFAPI = new TextBox();
sidePanel2 = new Panel();
ButtonMods = new Button();
button1 = new Button();
panel1 = new Panel();
ReaderPage = new FileReader();
TextEncrypterPage = new TextEncrypter(this);
FileEncrypterPage = new FileEncrypter(this);
MemeForgePage = new MemeForge(this);
TerminalPage = new terminal(this);
Titlebar.SuspendLayout();
((System.ComponentModel.ISupportInitialize)TitlebarIcon).BeginInit();
sidePanel2.SuspendLayout();
panel1.SuspendLayout();
SuspendLayout();
10 replies
CC#
Created by Gυαɾԃιαɳ on 11/6/2024 in #help
✅ .NET 9.0 - CSharp WinForms (Closed Case)
In order to get the best help I need I shall provide a little background to my application I have been working on for the past year. Encryption Forge is my application name with many features. Recently I reached to this point where I received an error that is unrelated and I don't understand. This error prevents the application from running and thows a object reference error. However the object reference error is not the main problem. It is something within the InitializeComponents or in the loading of public Main(). I tried to narrow it down but if I remove everything or bits from the Loading of public Main() it works and then if I do the same it doesn't. Im confused so much. Something you may need to know is that I am not a professional. I use hand made code, code snippets and a bit of help from ChatGPT (Not often though). So my code is wack and disorganized if I do say so for myself. I want to hand off the project by files but It's supposed to be a secure software no one can have other than me and my friends. This software can not be seen by others (The public). If I could get a private person it would be helpful.
39 replies