Search results for query: *

  1. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    Well I don't really know how to use StringBuilder, as I never used it before and especially in this case
  2. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    I'am comparing current RTB ( oldRTB ) with new (whatever they enter ) then take the new value and append it too the string.
  3. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    private void Space_Pressed(object sender, KeyPressEventArgs e) { if(e.KeyChar == (char)Keys.Space) { string newNums; newRTB = richTextBox1.Text; List<string> diff; IEnumerable<string> oldStr =...
  4. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    Okay, but how do I "Append" stuff that we write into the string? Cause as far as I know it will just copy everything in that RTB, or I'am just too stupid?
  5. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    Not that it matters, I already failed the assignment ( as I had to deliver it 2 hours after he gave it to me )
  6. Wowywow

    Question How do I update a specific line of text in richtextbox and then sort it every time spacebar is pressed?

    So this was part of another exercise and professor just randomly came up with this extra part just for me ( others got different ones, and much easier ones... ). What I need to do is when he enters extra numbers into the last line of richtextbox ( where the numbers sorted in descending order are...
  7. Wowywow

    Question Best way to stop exception when you delete a file that was supposed to be read?

    namespace WindowsFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } class readFile { public string readData(Label lbl) { string file =...
  8. Wowywow

    Question Best way to stop exception when you delete a file that was supposed to be read?

    Hello, first step of many in this exercise is that I need to check if file exist and just display that in label element, which is easy enough. The problem appears when I try to read that file, as long as the file exist there is works, but when I delete it "StreamReader" throws an exception (...
  9. Wowywow

    Question How do I make a program that would load data from comboBox selection?

    Maybe, I just dislike showing people that I can do something more than basics, so they don't out expectations on me. ( Seriously proffesor is already talking about internship and creating our portfolio for it, even thought only 3 months have passed in college )
  10. Wowywow

    Question How do I make a program that would load data from comboBox selection?

    That question was just for self education and future reference, if I would have applied that to code proffesor would know right away that I just copied something of the internet without proper knowledge how it works. Also he said to play around with new events that come from combobox and...
  11. Wowywow

    Question How do I make a program that would load data from comboBox selection?

    Right, so I've been trying to figure out this exercise for a few days now and I really can't come up with anything, just the pure basics. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text...
  12. Wowywow

    Question How do you read data from file once and then use it with different button events?

    Oh no, I'am only a first year and we are just covering the very basics of c#. We won't take up on anything very difficult this semester, so the text file will keep the same format always.
  13. Wowywow

    Question How do you read data from file once and then use it with different button events?

    Right, sorry. Won't be able to do that till afternoon
  14. Wowywow

    Question How do you read data from file once and then use it with different button events?

    Name, Surname, Gender, Email, Address, Date of birth That's pretty much the format, I have filled the file out with: Name1, Surname1, Female, Name1@Email.com, Street1, 2000-01-01 Name2, Surname2, Male, Name2@Email.com, Street2, 1988-01-06 And etc... For how long you want it ( for testing...
  15. Wowywow

    Question How do you read data from file once and then use it with different button events?

    Hi, so I had to make this app that would take data from text file ( Name, Gender, bDay, etc...) and would load it into dataGridView table. Also to add to that there needs to be 3 buttons to load only (females, males or anyone older than *set age*. I pretty much did what I needed, but each button...
Back
Top Bottom