Search results

  1. G

    Resolved Textbox problem - Cannot Understand Text="						"

    <TextBlock HorizontalAlignment="Left" Height="355" Margin="94,13,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="1811"><Run Text="Herstellerseriennummer:" /><Run Text="&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;" /><LineBreak /><Run...
  2. G

    Answered Combine multiple lines into a single line in a textbox

    Ok thanks, I just started learning about custom controls and thats when I got the idea and posted the above. Ok I still have a lot to learn before I am good in creating a custom textbox.
  3. G

    Answered Combine multiple lines into a single line in a textbox

    Ok let me get this right. I must have understood custom controls completely. Is this how it it works. I create a different user control with a textbox and place that new textbox with the added functionalities in place of the existing control. Is this how it works.
  4. G

    Answered Combine multiple lines into a single line in a textbox

    I do know inheritance and I understood that from your pseudo code that the custom textbox is inheriting actual textbox control. But I dont know stuff like how does it work. Because in c++ and java when u inherit from a class, u still need to call the new class with a object of its own. But here...
  5. G

    Answered Combine multiple lines into a single line in a textbox

    Hi, I am trying to implement this. But my knowledge in C# is limited to the basic programming that is present in c++, java etc. So these topics are new to me. So i have to learn them to implement them. Can you suggest me what all I have to know or what all I have to learn to implement this. I...
  6. G

    Answered Combine multiple lines into a single line in a textbox

    Thank You. I will try to implement this and get back in case of any queries which I am sure I will have since I am just a beginner in C# and WPF.
  7. G

    Answered Combine multiple lines into a single line in a textbox

    I have created a simple program that has a texbox which accepts text from scanning a qr code. This is the textbox. <TextBox x:Name="LearnTextBox" HorizontalAlignment="Left" Height="23" Margin="83,173,0,0" VerticalAlignment="Top" Width="620" Cursor="Pen" MaxLength="39" AcceptsReturn="True"...
  8. G

    Answered Combine multiple lines into a single line in a textbox

    I also want to say the above problem is when I set AcceptsReturn ="False". When I set it to True then multiline is allowed. Then the key down event handler is not working as I can just see the multiple line in the textbox and nothing else is happening.
  9. G

    Answered Combine multiple lines into a single line in a textbox

    string[] lines = unio_mod2.Text.Split('\n'); MessageBox.Show(lines[0]); I just used this code inside the keydown event handler. So remember I told you the output from scanning the qr code is SAR41-d1A3 5701/014 Cpa 01.04.2020. So I expect this to happen lines[0] = SAR41-d1A3 lines[1] =...
  10. G

    Answered Combine multiple lines into a single line in a textbox

    private void Unio_mod2_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { string mod1_ctrl; mod1_ctrl = unio_mod2.Text; var ctrl = new Kontrolle_Scan(); // as you can...
  11. G

    Answered Combine multiple lines into a single line in a textbox

    Also I want to tell you that I am using key down event for the textbox and when I scan the QR code, I am getting different lines one at a time and not all together and that is causing problems with key down handler because i think it is getting executed when each line is inserted.
  12. G

    Answered Combine multiple lines into a single line in a textbox

    No, still I am not getting it. I scan the QR code and this is what I get in the textbox. SAR41-d1A3 5701/014 Cpa 01.04.2020 But what I want is SAR41-d1A35701/014Cpa01.04.2020 in the textbox. Unfortunately I cannot get it, till now. Kindly do help me.
  13. G

    Answered Combine multiple lines into a single line in a textbox

    Hi, I have a wpf application that has a textbox to which value is inserted using a scanner. At one time when I scan a single data, multiple lines comes into textbox which can be scrolled down to see. But I dont want them as multiple lines. I want to combine all lines into a single line and see...
  14. G

    Resolved Manuel_Eingabe is a namespace but it is used as a type

    Thank You. I corrected it, I created a folder in the project in Visual Studio and called it also Manuel Eingabe and that is why the namespace was Datenbank Interface. Manuel Eingabe. I completely redid it by creating a new folder called Manuel and then the namespace is DatenbankInterface.Manuel...
  15. G

    Resolved Manuel_Eingabe is a namespace but it is used as a type

    I tried removing the manuel eingabe part and just use datenbank interface as the namespace but when I do that it is showing an error for the functions below like Intialize Component. So how can i correct this.
  16. G

    Resolved Manuel_Eingabe is a namespace but it is used as a type

    Hi, I have a big application with a main window. The application is in wpf. I need to enter some values. So I created a second window called Manuel_Eingabe to enter the values. Now in the main window I made a button and created an eventhandler as click. Now when we click on the button, I need...
  17. G

    Textbox not filling with last letter of the entered string

    Hi, I have created an application for learning purposes. Its a wpf application. The application works like this. First is the main window. It has a button called open and a textbox. When I click on open a new window will open up. This new window has 3 textboxes and 1 button ok. The three...
  18. G

    Find count of certain elements in the dataset

    Hi, I have a database and a dataset in C# application. The dataset has the list of my friends with phone number, address and a id. This is for learning purposes. I need to find the count of certain elements , say for example the total count of all the friends with ID > 3. How can I do that?
Top Bottom