Alright, I made a form, but I don't want just anyone to be able to use it. So I was wondering if it was possible for the page to check if they were logged into my forum. Any suggestions would be great =].

Well the code isn't quite like that. It's in an if statement that checks a field in a form, if it comes up false, then it inserts a PUSH, then goes to the next if. And at the end if the array > 0, then it's supposed to spit out the array as a string.

But the fact is that the code stops immediately at the push instance.

Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here.

I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for errors, listed errors, then spewed them out in the end.

I am sure there is source code for something like this, but I wanted to just do this out of practice, as I have done this before in PHP.

I am basically making a function with a bunch of if statements and if any of them pop up I try to PUSH a string into the array. Now, it has worked, somewhat and sometimes. But then it just plain stopped working.

I played with the code for a while, placing alerts in parts of the function and found that it WAS the push code that stopped it from running completely. Can anyone help? I honestly don't think posting my code will help. Can a Push not exist in an If statement?

[Yes, I have tried to old LENGTH fashion way of doing it. NO my software is not outdated]

Okay probably a newb question, but what value is it returning? A bool?

Also, the instance I want to happen is when enter is pressed a message box pops up.

There is no Button on the form. Just the textbox.

Alright, I have been struggling with this for a while. I just sort of want to grasp and test out everything I have learned, but that's hard to do when they don't seem to work.

Basically all I want to do is cause an event [MessageBox] when I hit a key. In this case, Enter. I think the event will be very helpful with a lot of the apps I plan on making. I have searched all over and on here and used all the examples, but nothing works.

Here is what I got:
(Tester is the TEXTBOX)
[code=c] private void TESTER_KeyDown(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
MessageBox.Show("Test Complete");
}

    }[/code]

I can build and run fine, but that instance never takes. I put the code in both Form.cs and Designer.cs. Nothing. I am not sure what I am doing wrong. Everytime I read on a forum when they attempt this code and ask for help, they get the above as a solution and it works for them.

Notes:
-I have KeyPreview set to True.
-I have tried KeyDown.
-I have tried (char)Keys.Enter.
-I have tried other ASCII keys.

Ah alright, I'll give it a try.
And I don't think I will be needing anything as advanced as a txtbox with accounted line numbers.
I'll probably just do it so that each textbox entered in the app writes to it's own line.
But if anyone has examples, I'd appreciate it. Because I can't wrap my head around from turning some of the syntax commands from mirc into .net.

Okay, I've been trying to figure this out forever. And I've been avoiding asking for the longest, but I want to make an app that can remember personal information and retrieve it.

I am used to mIRC's language where you can create, edit, and retrieve data from .txt files.

I basically want to use it for everything. To remember anything and place it on existing or (create) notepad's, placing data on lines of the notepad and retrieving by the line number.

I want to use notepad because I don't need it to be used online or in a SQL database.

Any suggestions would be great. I am completely lost in how to even take the first step in figuring this out.

I've been trying over and over with multiple tutorials including those here and others and including provided f1 help to try and read/create/write/find-line commands (button pressing) from a Notepad file using VB 2008.
Granted all these tutorials are VB 6 and lower, but I didn't think that would be this big of a problem. So my question is, do these VB 6 tutorials for what I said above able to work with VB 2008? I tried some out and I always get debug errors
(Like streamwriter/reader aren't recognized).