- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hey. As the topic states i want to use a streamwriter to write the listbox from form1, but the streamwriter is in form2. How do i get the data from form1 to form2? I have the code to write everything out etc, all I need is help to get the … |
|
Re:
How to do this? I read that it is done in event. |
|
Re:
Hi, I have develop a program in C# windows Application & now The problem is My Login form is designed on form4 I want to run form4 first after that i want to run the other forms but when i run the program form1 is run automatically. acually in coding … |
|
Re:
I was wondering if anyone knows how to print out the contents of an array into a text file(i.e myfile.txt) What i have is an array full of strings and my goal is to print each of them onto a seperate line in a text file. I kno how to … |
|
Re:
Hi i use this code for hide form but when i run project form is shown !!! where is probleam ??? thanks [CODE] private void Form1_Load(object sender, EventArgs e) { this.Visible = false; }[/CODE] |
|
Hey. I would like to save a txt file from the listbox into a folder that the user chooses. I've got the writing to work, but so far it only saves the file to the debug folder (since I haven't specified another folder) This is what I have so far: … |
|
Re:
I need to be able to check one textbox and another one on keypress. If both textbox characters are over 4 characters then a button will become enabled. So far... I have.... [code] private void txtUser_KeyPress(object sender, KeyPressEventArgs e) { if (txtUser.Text.Length >= 4 && txtUser.Text.Length < 20) { btnLogin.Enabled … |
|
Re:
I need to be able to count the textbox characters on a keypress, how would I do that? |
|
Hey. I'm making a Hangman and I have this code to retrieve a random word from a txt file: [CODE] private void ord() { Random random = new Random(); StreamReader read = new StreamReader("sweord.txt"); ArrayList lines = new ArrayList(); string line; while ((line = read.ReadLine()) != null) lines.Add(line); read.Close(); int … |
|
Hey. I'm pretty new to C# and programming overall. I'm trying to make a Hangman game. Let's say the user want to make a guess at the letter "t". Then he should just have to press "t" on his keyboard and the form should recognize it. I currently can't even … |