Lutrius
Lutrius
CC#
Created by Lutrius on 8/2/2024 in #help
To-Do List Application
Hey guys this is my script for a to do list application: private async void rjButtonAddNew_Click(object sender, EventArgs e) { // Expand the panel to allow user input panelAdd.Height = 190; } private void rjButtonSave_Click(object sender, EventArgs e) { // Create a new instance of UC_Penson UC_Penson person = new UC_Penson(); // Assign the text from the input fields to the new UC_Penson instance person.rjTextBoxTitle.Text = rjTextBoxTitle.Text; person.rjTextBoxDescription.Text = rjTextBoxDescription.Text; // Add the new UC_Penson instance to the FlowLayoutPanel (FLP) FLP.Controls.Add(person); // Collapse the panel after saving panelAdd.Height = 0; // Clear the input fields for the next entry rjTextBoxTitle.Text = string.Empty; rjTextBoxDescription.Text = string.Empty; } private void rjButtonCancel_Click(object sender, EventArgs e) { // Collapse the panel without saving panelAdd.Height = 0; // Clear the input fields rjTextBoxTitle.Text = string.Empty; rjTextBoxDescription.Text = string.Empty; } I want users to edit panelAdd then once they click save the version of panelAdd they edited appears as a new panel. Currently, users click save and only the default UC_Penson design appears without their modifications.
9 replies
CC#
Created by Lutrius on 7/31/2024 in #help
TextBox Difficulties
Hello, I am new to programming in C# and I use visual studio 2022. What I was trying to do was to make a rounded textbox that can have place holder text that doesn't disappear when the user clears the text box however, the placeholder text only appears when the text box is empty. I watched a youtube tutorial and I copied the code but now some properties are not working such as the rounded text box property and the placeholder text property, also initially the placeholder text would never re appear when the text box was empty. Can any body help ? My code (attatched and below): The youtuber I watched was RJ advanced btw.
3 replies