Jump to content


Check out our Community Blogs

CommittedC0der

Member Since 13 Nov 2009
Offline Last Active Apr 07 2016 04:17 PM
-----

#587389 my website need a cruel review

Posted by CommittedC0der on 12 January 2011 - 12:46 PM

First off, all those game sections at the top should be under a couple major category links with drop down menu's. Also the home page seems to go on and on. Maybe try less games and alil more description about the games.
  • 1


#587382 HELP!!!!

Posted by CommittedC0der on 12 January 2011 - 12:11 PM

Interesting code. I haven't worked with console for a while but try this code:
static void Main(string[] args)
        {
            Console.WriteLine("Clear | Clears console");
            Console.WriteLine("About | Shows information");
            Console.WriteLine("Game | Play Guess the Number");
            while (true)
            {
                


                String CommandsTrigger = Console.ReadLine();
                
                if ((CommandsTrigger == "HELP") || (CommandsTrigger == "help") || (CommandsTrigger == "Help"))
                {
                    Console.WriteLine("Clear | Clears console");
                    Console.WriteLine("About | Shows information");
                    Console.WriteLine("Game | Play Guess the Number");

                }
                else if (CommandsTrigger == "Clear")
                {
                    Console.Clear();
                    //goto case Commands;
                }
                else if (CommandsTrigger == "About")
                {
                    Console.WriteLine("Operating system: Nova 1 Black Viper");
                    Console.WriteLine("Created by Austin DeLauney");
                    Console.WriteLine("Uses COSMOS boot kernel");
                    //goto case Commands;
                }

            }
        }

  • 1


#587379 What am i doing wrong???????

Posted by CommittedC0der on 12 January 2011 - 11:39 AM

Try adding braces to your code:

private void cbSearch_CheckedChanged(object sender, EventArgs e)
        {
            if (cbSearch.Checked == true)
            {
                MainForm.hdSearchdd.Visible = false;
                MainForm.hdSearchtxt.Visible = false;
            }
            else 
            {
                MainForm.hdSearchdd.Visible = true; 
                MainForm.hdSearchtxt.Visible = true;
            }
        }
Also please encase your code like this: [CODE*]code here[/CODE*] just remove the '*' symbol.

~ Committed.
  • 1


#587240 Bypassing Windows XP Professional Login.

Posted by CommittedC0der on 11 January 2011 - 03:30 PM

Hey everybody! Today where going to go over how to bypass Windows XP Professional Login.

*DISCLAIMER* I am not responsible for what you do with this tutorial. I am making this tutorial only to educate people on how to get onto there computers of which, they have forgotten the password, or where given, without login details. This tutorial is NOT for people to abuse for hacking other people computers and/or accounts. The images used, are also not mine, I got them off the web.

Recently me and my dad where given a computer, with windows XP pro on it, from his friend at work.(who got it from a company, going out of business) Of course we couldn't get into the computer because we didnt have any idea what the username or password was. After searching around the net for a while I finally got in and was able to change the passwords, and username's. These are several ways I've learned, to bypass the windows XP Pro login system.

With that being said, lets begin! :)

Attempt 1.
Well lets start with the most simple possible way. First, of course, turn on your computer and wait until you come to this screen:
WindowXpalt.png

Now this may seem silly, but try pressing alt+crtl then the 'delete' key twice. If your lucky and this works a login screen should appear, when its does try logging in with:

username: Administrator
password: blank (if it doesn't work try 'password')

Attempt 2.
Now for me that last attempt didnt work. If it didnt work for you either, we can go ahead and hit "alt+crtl+del" and proceed to the login screen which should appear like this:
Windows-XP-ctrl-alt-delete-logon.jpg
Alright now were going to try and login to the administrator account. For the first attempt at this, you can simply try logging in with the details:
username: Administrator
password: blank field(or 'password' if a pass is required)
If you have no luck with that, dont worry we still have a couple more things to try.

Attempt 3.
Ok, now this is the method that worked for me! First your going to have to power down the computer your trying to gain access to. Once its off, start it back up, when you see the boot screen press and hold the 'F8' key on your keyboard until a new screen appears. This screen should ask you, how you would like to run windows, select 'Safe Mode' at the top.(Move with arrow keys, and select with the 'enter' key) Once you reach the login screen in 'Safe Mode', which may look a little weird, we will once again, try logging in with the following details:
username: Administrator
password: blank (if it doesn't work try 'password')

Hopefully you just got access to the administrator account!

If you managed to get into the Administrator account you will be able to change the password and username of any account on the computer, via the control panel > user accounts.

If you did not manage to get access to the Administrator account, sadly the only thing left to do is either get a new OS(old xp disk, or Linux) or try a windows password breaker.

And that's the tutorial, hope you where able to get into your computer! As always, questions, comments, and +rep welcome. Good Luck ~ Committed. :)

  • 1


#586803 How far does HTML go?

Posted by CommittedC0der on 08 January 2011 - 05:28 PM

Probably, HTML is very easy to grasp. I say start learning some CSS, thats where you can really start to add some life to your HTML, then if you want some more power go for JS. :)

~Committed
  • -1


#586043 Facial detection - Facial Recognition

Posted by CommittedC0der on 03 January 2011 - 12:28 PM

C++ is a hard language, but since you've been programing in VB for a while hopefully it won't be to hard for you to pick up the syntax.

As for tutorials this is a good video website: XoaX.net Console C++ Video Tutorials

And these looked ok: C++ Language Tutorial

Anyway Good Luck ~ Committed. :)
  • -1


#585907 Working With Information Across Forms.

Posted by CommittedC0der on 02 January 2011 - 07:37 PM

Thank you, John. :)
  • 1


#585744 Working With Information Across Forms.

Posted by CommittedC0der on 01 January 2011 - 12:27 PM

Hey everyone, welcome to what I believe is the first tutorial of 2011! :c-cool:

In this Tutorial we'll be tackling a very common question amongst new .NET programmers, which is how to work with information across forms. What do I mean by "work across forms"? I mean using methods, variables, and control properties, from Form2 on Form1 or vise versus.

So lets get started!

#1 Setting up our forms for this tutorial.
Ok, to start, open up your C# IDE (I have Micrsoft Visual C# Express 2010), create a new form application, File > New Project > Windows Form Application. Now we need a second form to work with, so right click the solution and goto Add > Windows Form and leave the name as Form2.
(Tip: dont know what the solution is? Goto Project > Add Windows Form, at the top of the compiler)

Ok now that we have our forms setup lets add a button to each one. Form1 button should say "Not Clicked", Form2 button should say "Form1 Button Not Clicked". Alright now time for a little bit of code! So we need to show Form2 when we start the program. So lets create an instance of Form2 and call in subForm, then show it. To do this we add this code in Form1:
public Form1()
        {
            InitializeComponent(); 
            subForm.Show();[COLOR=green]//This shows our form on start up.[/COLOR]
        }
        Form2 subForm = new Form2();[COLOR=green]//This creates a instance of Form2 so we may show it.[/COLOR]


#2 Calling a variable from Form2 on Form1.

Alright now that we have Form2 up and running when we start the program lets declare a variable in Form2, which im sure you know how to do.
public Form2()
        {
            InitializeComponent();
        }
        
        public int Num = 1;
Now lets call this variable in Form1 on button click. Double Click the button on Form1 and add this code:
MessageBox.Show(Convert.ToString(subForm.Num));[COLOR=green]//subForm is the instance of Form2 we created and 'Num' is variable we wanted to access.[/COLOR]
You can also change the 'Num' variable from Form1 like this:
subForm.Num = 5;
Now debug you application and see if it works.


#3 Calling a method from Form1 thats coded in Form2.
First lets add a method to Form2 that we can call from Form1. Add this code two lines below where we created the variable in Form2:
public void ChangeText()
        {
            button1.Text = "Form1 Button Clicked";
        }
Ok now we have a method that changes the text of the button, but we need to call it soooo back to Form1's button click event.

Now in Form1's button click we need to call the method like so:
subForm.ChangeText();[COLOR=green]//Once again 'subForm' is the Form2 instance we made, and 'ChangeText();' is that method we want to call.[/COLOR]
Run your program and Form2's button text should change.

#4 Accessing information in Form1 from Form2.
Alright now we know how to access code in Form2 from Form1 lets do the opposite and learn how to access properties of controls, eg we'll change the button text in Form1 from Form2.

Now this is where it starts to get a little more complicated, but dont worry im sure you'll under stand. First lets goto the code of Form2, and declare an instance of Form1. So add this code directly under where we declared the 'int' variable earlier.
public Form1 mainForm;[COLOR=green]//Notice how this code is a little different? Its because where not creating a new instance of Form1, we just creating an instance or variable that needs to be assigned to Form1.[/COLOR]
Now lets head back to Form1 and add some code. Ok so just above where we show Form2 were going to assign this 'mainForm' to Form1:
public Form1()
        {
            InitializeComponent();
            subForm.mainForm = this;[COLOR=green]//Now we declare the 'mainForm' instance to 'this' which refers to the form your coding in, which in this case is Form1.[/COLOR]
            subForm.Show();          
        }
Now that we can access information on Form1 from Form2, lets change Form1's button text via Form2's method.

In Form2's 'ChangeText' method lets add this code:
mainForm.button1.Text = "This Button Was Clicked";[COLOR=green]//We refer to 'mainForm' which is Form1, then to Form1's button text and change it.[/COLOR]
Now you probably thinking what am i doing wrong?!? I have an error:
'WorkingAcrossForms.Form1.button1' is inaccessible due to its protection level'

This is because Form1's button properties are set to private. To fix this click the button on Form1 and open the properties window, scroll down until you see Modifiers and change it from 'Private' to 'Public'. Now run your application, and Form1's button text should change!

Well thats my tutorial, I hope you enjoyed it, and learned how to work across form, while still being able to understand clearly what was going on! +rep, comments, and questions welcome, I also attached the working project.

Good Day ~ Committed. :)

[ATTACH]3606[/ATTACH]

Attached Files


  • 3


#559562 Silver Water Effect.

Posted by CommittedC0der on 16 June 2010 - 02:46 PM

Thanks tunde! Glad you liked it. :)

@Master99, happy to see you banned! ^^
  • 1


#558691 Sheva Software Inc

Posted by CommittedC0der on 12 June 2010 - 05:15 PM

Here's is my new software site, just want to get some feed back on how it works, and if it looks good, any suggestion, criticism or praise (:P) are welcome. Every thing works to my knowledge except for the RSS feed at the bottom of the page because I haven't set it up yet. :)

Any Feed back appreciated, thanks!

Home - Sheva Software: creating powerfull, useful, and creative software for the future!
  • -1


#556181 Javascript: Where do I begin?

Posted by CommittedC0der on 19 May 2010 - 04:29 PM

These video tutorials should be a good start! :thumbup1:

Coderisland.com View topic - Javascript Basics Tutorial - By Ray Tawil
  • 1


#554927 VB.net list view

Posted by CommittedC0der on 06 May 2010 - 05:23 PM

Try this:
ListView1.Items.Item(0).SubItems.Add("Subitem 1 text")

  • -1


#554450 C# Tutorial: Creating A Auto-Completing RichTextBox.

Posted by CommittedC0der on 02 May 2010 - 12:38 PM

Hello everyone! In this tutorial Im going to show you how to create a auto completing richtextbox yes a richtextbox, I know there's plenty of tutorials for auto completing texboxes, but its almost impossible to find one for richtextbox's, so I decided I would just have to make one. :)

OK lets get started! Where going to make a HTML auto-completer!(you can can change the language to what ever you want though(I'll explain later)) First drag a richtextbox and listbox to the form. Now the first thing we need to do is declare these three variables:
bool listShow = false;
        string keyword = "<";
        int count = 0;
The first one is to tell if the listbox is showing, the second variable is so we can automatically scroll to the closest word in the auto-complete box, say if I type "<im" it will automatically scroll to the closest thing like "<img>", so we can select it. The third is to tell how long the string is so we can go back and erase it to add the selected auto-complete word(you'll understand once we use it)


OK so now go ahead a click the richtextbox and go into it's properties, then click the lighting bolt on the top bar.(this gives you a list of functions you can create for the richtextbox) Find the "KeyPress" function and double click it, and it should create this:
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
}
OK so now that we have a keypress function lets add this code inside:
if (listShow == true) [COLOR=#000080]/*Section 1*/[/COLOR]
            {
                keyword += e.KeyChar;
                count++;
                Point point = this.richTextBox1.GetPositionFromCharIndex(richTextBox1.SelectionStart);
                point.Y += (int)Math.Ceiling(this.richTextBox1.Font.GetHeight()) + 13; //13 is the .y postion of the richtectbox
                point.X += 105; //105 is the .x postion of the richtectbox
                listBox1.Location = point;
                listBox1.Show();
                listBox1.SelectedIndex = 0;
                listBox1.SelectedIndex = listBox1.FindString(keyword);
                richTextBox1.Focus();
            }
           
 if (e.KeyChar == '<') [COLOR=#000080]/*Section 2*/[/COLOR]
            {
                
                listShow = true;
                Point point = this.richTextBox1.GetPositionFromCharIndex(richTextBox1.SelectionStart);
                point.Y += (int)Math.Ceiling(this.richTextBox1.Font.GetHeight()) + 13; //13 is the .y postion of the richtectbox
                point.X += 105; //105 is the .x postion of the richtectbox
                listBox1.Location = point;
                count++;
                listBox1.Show();
                listBox1.SelectedIndex = 0;
                listBox1.SelectedIndex = listBox1.FindString(keyword);
                richTextBox1.Focus();
 
            }
OK, I know that looks kinda complicated, but it not that bad. OK first see how I labeled the code //Section 1, //Section 2 ect...? thats so I can refer to it.

Section 1: OK so now see what section 1 does is, checks to see if the auto complete box is open then its open keyword += to the key pressed, so we can scroll to the closest word(like a explained above) So if I typed < then p keyword equal "<p" and it would scroll to "<p>". Count++ just adds 1 to count that way we know how many spaces to go back.(once again we'll get to that part) OK now the next four lines show the listbox, decide where the listbox should be at, then move it to the given position, as you can see by the comments 13 is the .y positions of my richtextbox so change it to the Y position of your richtextbox, then do the same for the X value.(so if your richtextbox's Y location is 23, the code should read " point.Y += (int)Math.Ceiling(this.richTextBox1.Font.GetHeight()) + 23;") OK the next two lines, just set the selected index of the listbox to 0 then scrolls to the word closest to the keyword. The last line sets the focus back to the richtextbox so we can type more if we would like.
Section 2: Does exactly the same thing except it sets listshow equal to true.


OK, one last large section of code and a small section and where done, 1/3 the way. :)


OK so now go ahead a click the richtextbox and go into it's properties, then click the lighting bolt on the top bar again,
Now find the "KeyDown" function and double click it, it should create this code:
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
        {
}
OK now we need to add this code inside those brasses:
 if (e.KeyCode == Keys.Enter) [COLOR=red]/*Section 1*/[/COLOR]
            {
                count = 0;
                keyword = "<";
                listShow = false;
                listBox1.Hide();
               
            }
            if (e.KeyCode == Keys.Space)
            {
                count = 0;
                keyword = "<";
                listShow = false;
                listBox1.Hide();
            }
 
            if (listShow == true) [COLOR=#ff0000]/*Section 2*/[/COLOR]
            {
                if (e.KeyCode == Keys.Up)
                {
                    listBox1.Focus();
                    if (listBox1.SelectedIndex != 0)
                    {
                        listBox1.SelectedIndex -= 1;
                    }
                    else
                    {
                        listBox1.SelectedIndex = 0;
                    }
                    richTextBox1.Focus();
 
                }
                else if (e.KeyCode == Keys.Down)
                {
                    listBox1.Focus();
                    try
                    {
                        listBox1.SelectedIndex += 1;
                    }
                    catch
                    {
                    }
                    richTextBox1.Focus();
                }
 
                if (e.KeyCode == Keys.Tab) [COLOR=#ff0000]/*Section 3*/[/COLOR]
                {
 
                    string autoText = listBox1.SelectedItem.ToString();
                  
                    int beginPlace = richTextBox1.SelectionStart - count;
                    richTextBox1.Select(beginPlace, count);
                    richTextBox1.SelectedText = "";
                    richTextBox1.Text += autoText;
                    richTextBox1.Focus();
                    listShow = false;
                    listBox1.Hide();
                    int endPlace = autoText.Length + beginPlace;
                    richTextBox1.SelectionStart = endPlace;
                    count = 0;
 
                }
            }
OK, I know that looks long AND complicated, but Ill go over it. OK first I labeled to code with Section 1....again.

Section 1: Just says if the user presses the enter or space key set our count back to 0, are keyword equal to "<" and hide the listbox.

Section 2: This says, if the autocomplete box is showing and the user presses the down or up key move the listbox selection down or up one.(so if you pressed down it would move from the current selection to the one below it)

Section 3:First says, if the user presses the tab key get the text of the current selected item in the listbox. Then we need to get the current position in the richtextbox(that flashing letter bar thing :P) then move it back equal to how long are keyword is, so if are key word was "<ht" it would move back three spaces. OK so why do we do this? well because the next 3 lines of code selects the text from the current position to the value a count, then deletes it, and adds the listbox's selected text there instead. OK so be a little more clear if I have the string "<ht" then it will move backward(the letter bar thing) equal to count or 3 because "<ht" is three characters long, then select the text from your current position to the the end of the the string("<ht"), delete it and replace with listbox's selected item text. I Know I know confusing, but hopefully you kinda understand. OK the rest of the code is pretty strait forward: set the focus back the richtextbox hide the listbox, then find the end of the string we just added(the listbox selected item text) and move are letter bar there, then reset count to 0.

OK one last small piece of code and where pretty much done.

OK so now go ahead a click the listbox this time and go into it's properties, then click the lighting bolt on the top bar,
Now find the "Double click function" function and double click it, it should create this code:
private void listBox1_DoubleClick(object sender, EventArgs e)
        {
}
Now add this last bit of code:
            string autoText = listBox1.SelectedItem.ToString();
            int beginPlace = richTextBox1.SelectionStart - count;
            richTextBox1.Select(beginPlace, count);
            richTextBox1.SelectedText = "";
            richTextBox1.Text += autoText;
            richTextBox1.Focus();
            listShow = false;
            listBox1.Hide();
            int endPlace = autoText.Length + beginPlace;
            richTextBox1.SelectionStart = endPlace;
count = 0;
Which does exactly what we just did in section 3 of the previous code, except for a double click instead of the tab key being pressed.

OK we are %99 done just a few properties to change! First set the richtextbox and listbox's TabStop property to False, then set the listbox's visible property to false, and the last thing to do is edit the collection of the listbox.(that would be the auto-completing words)

Congratulations! you have a fully working auto completing richtextbox! Sorry I know this tutorial may have been kind of confusing but I hope it helped some one. :)

As always +rep, comments, and questions welcome. +rep is very welcome especially since there are almost no tutorials on autocompleting richtextboxes that don't need a custom control or huge classes.
  • 0


#543126 C# Tutorial: Arrays

Posted by CommittedC0der on 15 February 2010 - 09:04 AM

NOTICE:
AFTER THE CURRENT CONTEST THIS TUTORIAL WILL BE COMPLETELY REDONE. :)

Hello, to all.

Today I'm going to show you how to use arrays in C#.

OK so to get started we need to know, what is an array? Well the best way I can explain it is: An array is a variable that can hold multiple values without the need to assign multiple variables. So for instance we could turn these three variables: 'number1', 'number2', 'number3' into one variable(an array) 'numbers' and just access the value we want from it.

To use an array we declare it like this:
int[] Numbers;
Then assign how many values it will hold like this:
Numbers = new int[9];
Now we have an array that will hold nine values, we can set the values like this:
Numbers[0] = 1;
Numbers[1] = 2;
Numbers[2] = 3;
Numbers[3] = 4;
Numbers[4] = 5;
Numbers[5] = 6;
Numbers[6] = 7;
Numbers[7] = 8;
Numbers[8] = 9;
Important note: an array starts at 0 not 1 so be sure to remember that because if you assigning your array values like this:
Numbers[[COLOR=red]1[/COLOR]] = 1;
Numbers[[COLOR=red]2[/COLOR]] = 2;
Numbers[[COLOR=red]3[/COLOR]] = 3;
Numbers[[COLOR=red]4[/COLOR]] = 4;
Numbers[[COLOR=red]5[/COLOR]] = 5;
Numbers[[COLOR=red]6[/COLOR]] = 6;
Numbers[[COLOR=red]7[/COLOR]] = 7;
Numbers[[COLOR=red]8[/COLOR]] = 8;
Numbers[[COLOR=red]9[/COLOR]] = 9;
Your going to get an error.

We can also make an array like this:
int[] Numbers = new int[6]{9,1,3,7,8,4};
So what that did was make a new int array named Numbers with "[6]" values and assigned the values in one line of code here "{9,1,3,7,8,4}" but for now we will use the first way as it is easy to understand.

OK so if your wandering how to make a string or double array we can make it the same as the int array just change the names.

[COLOR=red]string[/COLOR][] lowletter;
            lowletter = new [COLOR=red]string[/COLOR][26];
            lowletter[0] = [COLOR=red]"[/COLOR]a[COLOR=red]"[/COLOR];// don't forget the [ " ] at the beginning and end of you string.
            lowletter[1] = "b";
            lowletter[2] = "c";
            lowletter[3] = "d";
            lowletter[4] = "e";
            lowletter[5] = "f";
            lowletter[6] = "g";
            lowletter[7] = "h";
            lowletter[8] = "i";
            lowletter[9] = "j";
            lowletter[10] = "k";
            lowletter[11] = "l";
            lowletter[12] = "m";
            lowletter[13] = "n";
            lowletter[14] = "o";
            lowletter[15] = "p";
            lowletter[16] = "q";
            lowletter[17] = "r";
            lowletter[18] = "s";
            lowletter[19] = "t";
            lowletter[20] = "u";
            lowletter[21] = "v";
            lowletter[22] = "w";
            lowletter[23] = "x";
            lowletter[24] = "y";
            lowletter[25] = "z";
For a double we just change it to:
[COLOR=red]double[/COLOR][] Numbers;

Numbers = new [COLOR=red]double[/COLOR][6];
Numbers[0] = 1.9;
Numbers[1] = 1.7;
Numbers[2] = 1.2;
Numbers[3] = 3.3;
Numbers[4] = 3.7;
Numbers[5] = 7.9;
OK now that we now how to declare an array lets print it out in a text box.

So if you haven't already, create a new windows form app from File->New Project->Windows Form Application, and drag a button and text box to the form.

OK so now double click the button and put in this code:
  string[] lowcase;
            lowcase = new string[10];
            lowcase[0] = "a";
            lowcase[1] = "b";
            lowcase[2] = "c";
            lowcase[3] = "d";
            lowcase[4] = "e";
            lowcase[5] = "f";
            lowcase[6] = "g";
            lowcase[7] = "h";
            lowcase[8] = "i";
            lowcase[9] = "j";

 textBox1.Text += lowcase[0];
 textBox1.Text += lowcase[1];
 textBox1.Text += lowcase[2];
 textBox1.Text += lowcase[3];
 textBox1.Text += lowcase[4];
 textBox1.Text += lowcase[5];
 textBox1.Text += lowcase[6];
 textBox1.Text += lowcase[7];
 textBox1.Text += lowcase[8];
 textBox1.Text += lowcase[9];

Now this will print out the values of the array, but you probably don't want to say " textBox1.Text += lowcase[0];" over and over again so we can replace it with a loop like this:
for (int i = 0; i != (lowcase.Length); i++)
            {

                textBox1.Text += (lowcase[i]);

            }
Which runs a loop and prints the array values until "i" is equal to "lowcase.Length" which is how many values there are in the array which in this case would be 10.

OK so now you know how to declare an array set its values and print it in a loop, I hope you understood every thing clearly if you have any questions/problems tell me.

As always +rep and comments welcome.:)
  • 1


#539919 Idea's

Posted by CommittedC0der on 02 February 2010 - 10:45 AM

Or a bit 3d graphic programming maybe opengl or direct x games

Well if your going to try 3D games I would try the XNA engine witch allows you to make Xbox360 and computer games but that sounds a little to advanced for you, so I would just make a simple program maybe like a notepad or a something.
  • 1




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download