I have used all types of coding to remove the textbox but no use. I found few posts on Google search but the textboxes are associated with either a button control or checkbox control, using which, the deletion happens. I want the textbox to be deleted, if it is selected (meaning, the cursor is blinking in the text input area). I also tried setting textBox.Enabled=false; but no use as a statement textBox.Enabled=true; doesn't bring the textbox to life at all.
//if (virtTxtBox.BorderStyle == BorderStyle.FixedSingle)
//Determine the Index of the Button.
int index = int.Parse(TxtBox.Name.Split('_'));
label1.Text = index.ToString();
//Find the TextBox using Index and remove it.
TextBox txbx = (TextBox) pictureBox1.Controls.Find("txt_" + index, true);
label1.Text = txbx.Name;
pictureBox1.Controls.Remove(pictureBox1.Controls.Find("txt_" + index, true));
Hi, I said I experimented in various ways. Even after you commented about me using so many remove codes, i ensured they were not involved in the process and yet I could not achieve my objective of getting the textbox control(s) off my big picture box.
I searched online for 3 speech pronunciation libraries: "System.Speech.dll, Microsoft.Speech.dll and Interop.SpeechLib.dll". I want to know their time and origin, in which 3 libraries easy to use to write code ? Which library supports many countries' voices ? Which library is the most popular with programmers ? In the future, which 3 of the libraries will drop out ? et... ?
I found a speech pronunciation example that uses these libraries, I haven't found the source materials and the documentation for them, if someone who has programmed on this issue will answer it quickly, every time I don't know, thanks to you answers, I would say google search so what was the forum set up for ?
It was set up to answer specific technical questions; see How to get an answer to your question - C# Discussion Boards[^]. You are asking us to tell you which library of three is the best, which supports multiple languages, which may disappear in the future, etc. Apply the same question to any consumer product you care to think of and see why it is impossible to provide a definitive answer.
I have found out. SpeechLib is interop com version of Microsoft Speech
The short answer is that Microsoft.Speech.Recognition uses the Server version of SAPI, while System.Speech.Recognition uses the Desktop version of SAPI. The APIs are mostly the same, but the underlying engines are different. Typically, the Server engine is designed to accept telephone-quality audio for command & control applications; the Desktop engine is designed to accept higher-quality audio for both command & control and dictation applications.You can use System.Speech.Recognition on a server OS, but it's not designed to scale nearly as well as Microsoft.Speech.Recognition.The differences are that the Server engine won't need training, and will work with lower-quality audio, but will have a lower recognition quality than the Desktop engine
I have a file that I want to delete everytime I build or execute my c# code i.e without running the code.Do I have to write some command line in project properties?
I searched out everywhere but all in vain.
Anticipating urgent response.
Depending on whether you want to do it before or after compilation it's easy to do in VS: Look under the project properties and you will see a "Build events" tab on the right hand side.
You can enter any CMD or Powershell commands in there and they will be executed (I use them to timestamp assemblies: Timestamping assemblies with Build date and time.[^] but you can do pretty much anything in there)
You can't cause a file to be deleted each time you execute your app though - not unless your app actually does the delete itself (which is easy enough to do) - because VS isn't necessarily involved in each execution: you can double click any exe file, even debug ones and they will run on their own.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
Last Visit: 13-Dec-19 0:10 Last Update: 13-Dec-19 0:10