From 15efa3f5aeb7185b3aacab2a89f569b4e8a8c373 Mon Sep 17 00:00:00 2001 From: Peer Date: Thu, 3 Feb 2022 10:54:59 +0100 Subject: [PATCH 1/2] added IsPlaceholder property to swutch a placeholder textbox into a normal one --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6837e41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/.vs/CustomControls/v16/.suo From ebec3dd00f4e07f52c3dc77a61d9a35ed730db62 Mon Sep 17 00:00:00 2001 From: Peer Date: Thu, 3 Feb 2022 11:14:38 +0100 Subject: [PATCH 2/2] added IsPlaceholder property to switch a placeholder textbox into a normal one: Texts property stays empty, when Textbox was a placeholder and user does some input --- .gitignore | 5 +++++ CustomControls/RJControls/RJTextBox.cs | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 6837e41..b80d965 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,8 @@ ################################################################################ /.vs/CustomControls/v16/.suo +/.vs/RJControls/v16/.suo +/.vs/slnx.sqlite +/.vs/VSWorkspaceState.json +/CustomControls/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs +/CustomControls/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs diff --git a/CustomControls/RJControls/RJTextBox.cs b/CustomControls/RJControls/RJTextBox.cs index a6e34be..1a0fbb8 100644 --- a/CustomControls/RJControls/RJTextBox.cs +++ b/CustomControls/RJControls/RJTextBox.cs @@ -73,6 +73,13 @@ public int BorderSize } } + [Category("RJ Code Advance")] + public bool IsPlaceHolder + { + get { return this.isPlaceholder; } + set { this.isPlaceholder = value; } + } + [Category("RJ Code Advance")] public bool UnderlinedStyle {