Radial/Circular Progressbar Control For VB.NET


hey guys , after you may have seen this post circular progressbar but it's just drawing graphics on the form , now i have got something that's really a progressbar control :) so you can see a GIF image that i have recorded to show you all how the progressbar works . this is not a DLL this is just a class so when you are on a project add a class and put the codes you see below and build your program and you will see this in the toolbox


Matrix Effect In C/C++

matrix
First open your c++ IDE. after that create a new project and put these codes inside.
#include 
#include 
#include 
#include 
using namespace MatrixC;

int main()
{
   system("color 0a");
   srand(time(0));
   char random_char = ((rand() % 127));
   bool going = true, checking = true;

   while (going = true)
   {
   
      for (int x = 0; x < 38; x++)
      {
                  random_char = ((rand() % 127) + 50);
         checking = true;
         while (checking)
         {
            if  ( 
               
                  (random_char == 32) || (random_char == 39) || (random_char == 46) ||
                  (random_char == 44) || (random_char == 34) || (random_char == 45) ||
                  (random_char == 58) || (random_char == 59) || (random_char == 94) ||
                  (random_char == 95) || (random_char == 96) || (random_char == 126)
               
                )
            random_char = ((rand() % 127) + 50);
                                 else break;
         }
                 cout << random_char << " ";
      }
          cout << endl;
        
         Sleep(20);
   }
   cin.get();
   return 0;
}
The includes are the namespaces in c++ , the code system("color 0a"); is the green color text of our Matrix effect (color oa is the system name for green) ,  srand(time(0)); is the random speed , for (int x = 0; x < 38; x++) draws the rows of characters , random_char = ((rand() % 127) + 50); checking = true; while (checking) generates the first character ,

 this (random_char == 32) || (random_char == 39) || (random_char == 46) || (random_char == 44) || (random_char == 34) || (random_char == 45) || (random_char == 58) || (random_char == 59) || (random_char == 94) || (random_char == 95) || (random_char == 96) || (random_char == 126) checks for bad characters ,

this random_char = ((rand() % 127) + 50); generates random characters if bad characters generated , this else break; will continue to print if good characters generated , this cout << random_char << " "; prints character , this  cout << endl; if full characters were printed will continue to next row , this delays Sleep(20); .

You can see a preview of the matrix on top of this post.

How To Use Advanced Encryption Standard(AES) In C#


hey everyone , i got something interesting now :) ok now what is Advanced Encryption Standard(AES)
The Advanced Encryption Standard (AES) is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology (NIST) in 2001.Based on the Rijndael cipher developed by two Belgian cryptographers, Joan Daemen and Vincent Rijmen, who submitted a proposal which was evaluated by the NIST during the AES selection process.-Wikipedia
ok now you know AES lets try it in visual c# . create a console application and name it :) now here is my codes

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;

//Author : Mohamed Shimran
//Blog : http://www.ultimateprogrammingtutorials.blogspot.com

namespace AES
{
    class Program
    {
        static void Main(string[] args)
        {
            UTF8Encoding UTF8 = new UTF8Encoding();

            Console.WriteLine("Shims Encryption UPT");

            string text = "Ultimate programming tutorials";
            byte[] txt = UTF8.GetBytes(text);
            Console.WriteLine("Text: " + text);

            AesCryptoServiceProvider aes = new AesCryptoServiceProvider();
            byte[] key = aes.Key;
            byte[] iv = aes.IV;
            
            byte[] n;

            ICryptoTransform ict = aes.CreateEncryptor(key, iv);

            MemoryStream ms = new MemoryStream();

            CryptoStream cs = new CryptoStream(ms, ict, CryptoStreamMode.Write);

            StreamWriter sw = new StreamWriter(cs);
            sw.Write(text);
            sw.Close();

            n = ms.ToArray();

            Console.WriteLine("Encrypted : " + Convert.ToBase64String(n));

            ICryptoTransform icrt = aes.CreateDecryptor(key, iv);

            MemoryStream mms = new MemoryStream(n);

            CryptoStream cts = new CryptoStream(mms, icrt, CryptoStreamMode.Read);

            StreamReader sr = new StreamReader(cts);

            Console.WriteLine("Decrypted : " + sr.ReadToEnd());

            sr.Close();

            aes.Clear();
            Array.Clear(key, 0, key.Length);
            Array.Clear(iv, 0, iv.Length);

            Console.Read();
        }
    }
}

now string text is your text that is going to be encrypted using the program so replace Ultimate programming tutorials and now debug the program and you will the text encrypted and the text decrypted . how awesome :)

How To Make A Simple Magnifier In C#

Today we are going to make a simple magnifier in visual c# so let's continue. If you don't know what is a magnifier?.
A screen magnifier is software that interfaces with a computer's graphical output to present enlarged screen content. It is a type of assistive technology suitable for visually impaired people with some functional vision; visually impaired people with little or no functional vision usually use a screen reader. Wikipedia
Actually we are going to make a screen magnifier not just a magnifier the word magnifier refers to a scientific instrument.


How To End Process Using C#

end process

This is a very nice tutorial and very useful in the same time and i am not going to make it so hard since you should learn the basics first ok now you need to create a new project and name the project and after creating the project you should set up the normal things you do and after that i am using a button and a text box so just go ahead and add a button and text box and change the text property of button to "end process" or whatever now when you put the process name in the text box and press the button that process will be ended .

here is the codes

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

//Author : Mohamed Shimran
//Blog : Http://www.ultimateprogrammingtutorials.blogspot.com

namespace EndProcess
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
       
        private void button1_Click(object sender, EventArgs e)
        {

            Process[] ps = Process.GetProcesses();
            foreach (Process p in ps)
            {
                if (p.ProcessName.ToLower() == textBox1.Text )
                {
                    p.Kill();
                }

            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        
    }
}


enjoy and try to make it more stable since its not stable

How To Empty Recycle Bin Using C#


hey everyone , we going to learn how to empty the recycle bin using c# this pretty an easy way out . you just need to a button or lets say click event or anything that can do something now you just have to add this codes into your form1 code , i will put whole of my codes here so i am using a button to do the work

here is the codes


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

//Author : Mohamed Shimran
//Blog : http://www.ultimateprogrammingtutorials.blogspot.com

namespace RecycleBin
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        enum RecycleFlags : uint
        {
            SHERB_NOCONFIRMATION = 0x00000001,
            SHERB_NOPROGRESSUI = 0x00000001,
            SHERB_NOSOUND = 0x00000004
        }

        [DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
        static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath,
        RecycleFlags dwFlags);
               private void button1_Click(object sender, EventArgs e)
        {
            uint result = SHEmptyRecycleBin(IntPtr.Zero, null, 0);
        }
    }
}
enjoy

How To Make A Sound Recorder In C#

sound recorder

hey ,today i will let you know how to create a sound recorder in c# by the way this is just a simple tutorial but this will let you know about the recording so you can make a  advanced recording application ok now first create a new project and name it and you need three buttons and one label so drag and and drop them from tool box into your form and now change the text of the each button as below

Button 1 - Record
Button2 - Stop And Save
Button3 - Play

now just keep the label 1 text empty now just double click your form and erase everything and add the whole code there

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

//Author : Mohamed Shimran
//Blog : http://www.ultimateprogrammingtutorials.blogspot.com

namespace soundrecorder
{
    public partial class Form1 : Form
    {
        [DllImport("winmm.dll")]
        private static extern int mciSendString(string MciComando, string MciRetorno, int MciRetornoLeng, int CallBack);

        string musica = "";
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            label1.Visible = true;
            mciSendString("open new type waveaudio alias Som", null, 0, 0);
            mciSendString("record Som", null, 0, 0);
        
        }

        private void button2_Click(object sender, EventArgs e)
        {
            label1.Visible = false;
            mciSendString("pause Som", null, 0, 0);

          

            SaveFileDialog save = new SaveFileDialog();

            save.Filter = "wave|*.wav";


            if (save.ShowDialog() == DialogResult.OK)
            {

                mciSendString("save Som " + save.FileName, null, 0, 0);
                mciSendString("close Som", null, 0, 0);
            }
            
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (musica == "")
            {
                OpenFileDialog open = new OpenFileDialog();
                open.Filter = "Wave|*.wav";
                if (open.ShowDialog() == DialogResult.OK) { musica = open.FileName; }
            }
            mciSendString("play " + musica, null, 0, 0);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            label1.Visible = false;
        }


    }
}


now debug and enjoy .

How To Make A Header Marquee Effect in HTML

A Header Marquee Effect

hey guys finally i am up to a simple HTML tutorial but i hope this will be useful to you ok now you don't need to waste time just some lines of codes and your done . you can see how this works in the image what you could see in the top but i'd say it's a GIF i mean a recorded one so it can't show you how actually this works naturally . so to begin making this open your most favorite text editor or just use the notepad and add the usual tags



now just this is code of the recorded GIF



so you have the codes now you can edit everything

How To Make A Simple Custom Google Search Engine Using Basic HTML


Hello everybody. So, today I will teach how to make a google search box in HTML. you can see some google search embed on websites even our website has one but we are going to make a simple one i meant very simple one

So, lets get started. Open your html editor (I will be using notepad for quick and easy editing.) and now add this codes