C sharp Text flooder

Auto Text Scroller  a C# application by which you can flood text to any user online on any social network or any chat client such as Yahoo, G talk , Beyluxe , imesh, Bearshare, IRC etc.Even you can check it  in note pad open a note pad document and run your application and click on start button you may have same result as follow.




This application is Developed in C# now i you want to you it or wish to have your own application like this then  i  am gonna share source code its application and will show you how you can have your own application like this   but only for educational purpose make sure don't use this for annoying online users of any social Network or any Chat client.

                                                           Source Code  :

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;
namespace text_scrller
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
  private ContextMenu menu;
  public int scroll_value;
  private bool Down_Mouse;

  private Point MouseFirstPoint;

  private void start_Click(object sender, EventArgs e)
        
  {
      msgTimer.Enabled = true;

      Clipboard.SetText(Msg.Text);
  }

  private void timer1_Tick(object sender, EventArgs e)
  {
    SendKeys.Send("^v");
    SendKeys.Send("{Enter}");
  }

  private void Stop_Click(object sender, EventArgs e)
  {
   msgTimer.Enabled = false;
  }

  private void Form1_Load(object sender, EventArgs e)
  {
    trackBar1.Maximum = 10;
     trackBar1.Value = 5;
     lableSpeed.Text = trackBar1.Value.ToString();
  }

  private void close_Click(object sender, EventArgs e)
  {
    this.Close();
  }

  private void Min_Click(object sender, EventArgs e)
 {
   this.WindowState = FormWindowState.Minimized;
 }

  private void Form1_MouseDown(object sender, MouseEventArgs e)
 {
     Down_Mouse = true;
     Cursor.Hide();
  }
  private void Form1_MouseMove(object sender, MouseEventArgs e)
{
  if (Down_Mouse)
 {
int x = MouseFirstPoint.X - e.Location.X;
int y = MouseFirstPoint.Y - e.Location.Y;
int NewPointx = this.Location.X-x;
int NewPointy = this.Location.Y - y;
this.Location = new Point(NewPointx, NewPointy);
 }
}
private void Form1_MouseUp(object sender, MouseEventArgs e)
        {
            Down_Mouse = false;
            Cursor.Show();
        }
private void min_Click_1(object sender, EventArgs e)
{
   this.WindowState = FormWindowState.Minimized;
}
 private void msgTimer_Tick(object sender, EventArgs e)
 {
    SendKeys.Send("^v");
    SendKeys.Send("{Enter}");
  }
      
 private void trackBar1_Scroll(object sender, EventArgs e)
 {
            lableSpeed.Text = trackBar1.Value.ToString() ;

             if(trackBar1.Value==1)
                 scroll_value=2000;

             if (trackBar1.Value == 2)
                 scroll_value = 1800;


             if (trackBar1.Value == 3)
                 scroll_value = 1600;

             if (trackBar1.Value == 4)
                 scroll_value = 1400;

             if (trackBar1.Value == 5)
                 scroll_value = 1200;

             if (trackBar1.Value == 6)
                 scroll_value = 1000;

             if (trackBar1.Value == 7)
                 scroll_value = 500;

             if (trackBar1.Value == 8)
                 scroll_value = 400;

             if (trackBar1.Value == 9)
                 scroll_value = 300;

             if (trackBar1.Value == 10)
                 scroll_value = 100;

             msgTimer.Interval = scroll_value;
        }
       }
private void START_Click_1(object sender, EventArgs e)
        {
            if (Msg.Text != "")
            {
                Clipboard.SetText(Msg.Text);
                msgTimer.Enabled = true;
                statuslabel.Text = "Runing....";
            }
            else
            {
                Msg.BackColor = Color.Yellow;

           }
        }
    
    private void STOP_Click_1(object sender, EventArgs e)
        {
            msgTimer.Enabled = false;
            statuslabel.Text = "Stoped.";
        }
 private void Rebyc_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Rebyc.LinkVisited = true;
            Process.Start("https://www.facebook.com/ziabse");
        }

  private void Form1_Resize(object sender, EventArgs e)
        {
            if (FormWindowState.Minimized == this.WindowState)
            {

                TryIcon.Visible = true;
                this.Hide();
            }  else if  (FormWindowState.Normal==this.WindowState)
            
            {
                   TryIcon.Visible = true;
            }
}
 private void TryIcon_MouseDoubleClick(object sender, MouseEventArgs e)
        
{
            this.Show();
            this.WindowState = FormWindowState.Normal;
 }

  private void TryIcon_Click(object sender, EventArgs e)
  {
            this.Show();
            this.WindowState = FormWindowState.Normal;        
  }

    }
} 


c sharp Group Box

Group Box Control :

Group box control in C# windows form Application Group the similer controls and apply same properties on all control inside group box . using a Group box  is very time saving  , you dont have to set font  , size color  properties of all control you have to just set it once and  will be applied to all control in that group Box.

As you can see in above example the font size property is set once  of group box and all control in the group box are  having the same property (font size) same Date&Time Picker is placed under the group box which have default properties.  
Date and Time Picker 
in C# windows Form application Date & time picker control provide the current date in time in C# windows form applications. the date and time is picked by the users system on which  your program will run .  used to keep time and date of operations performed in  Database applications.

c sharp Web Browser

C# windows form application allow you to browse any webpage in windows form application.  for doing so just add webbrowser Control to your form and set a text box  for URL where user will enter there URL. Drop a button when user click that button so that your form's web Browser should navigate to the  URL in text box in form.

 Now  to navigate to a web page use the following Program . Web Browser navigation works as  follow:

Go to onclick Event of the button used in your program to start navigation now use the following code

  webbrowser1.navigate(textbox1.text);
and this how your  URL from Textbox1 will be navigated in Browser.

NOTE :  You can also add Go back and go Forward  Buttons to your new web Browser for that purpose  use the following code.

if(webbrowser1.CanGoBack)
{
    webbrowser1.GoBack();

}

if(webbroswer1.CanGoForward)
{
   webbroswer1.GoForward();

}

c sharp Progress Bar

C# using Progress bar in windows form application  show the progress of Downloading or uploading file from C# windows application or other operations which performs behind the scenes of program execution

Progress Bar can be drop form tool box  in order to use it in C# windows form applications
inside click event of button from where you want start your progress set some of the following values. let say your progress bar is progressbar1.

progressbar1.Maximum=100;
progressbar1.minimum=0;

for(int x =0 ; <100 ; x++)
{
       progressbar1.value=x++;
 }

when user clicks on that button your progress bar will be start automatically and will goes up to your maximum value set in progress bar 's Maximum.

c sharp tab control

C# windows form application allow  you to create multi tabs in a single  windows form appllications.
Tab control is  simple just drag it out of or click on tab control in tool box inside Visual studio . you can add other controls too .  each tab in tab Control.
 As shown in above pic  you can add separate controls to tab 1 and same in tab 2.  when a user runs your program and he clicks on tab 1 the tab 1 contents will be show to him or if he click  on tab 2 then  the tab1 will hide its content and tab 2 's contents will be show to him .

c sharp Open File Dialog Box

OpenFileDialog allows users to browse folders and select files. It is available in Windows Forms and can be used with C# code. It displays the standard Windows dialog box. The results of the selection can be read in your C# code.

You can open the OpenFileDialog that is in your Windows Forms program. The dialog will not open automatically and it must be invoked in your custom code. You will want to use an event handler to open the dialog in your C# code.
Here: We will use a button in this tutorial, which when clicked will open the dialog.
You can add a Button control—this can be clicked on to call into the OpenFileDialog window. To add a Button, find the Button icon in the Toolbox and drag it to an area in your Windows Forms window.

c sharp print Dialog Box

A Print Dialog control is used to open the Windows Print Dialog and let user select the printer, set printer and paper properties and print a file. A typical Open File Dialog looks like Figure 1 where you select a printer from available printers, set printer properties, set print range, number of pages and copies and so on. Clicking on OK button sends the document to the printer. 
 
PrintDlgImg1.jpg
Figure 1
Creating a PrintDialog
We can create a PrintDialog at design-time as well as at run-time.
Design-time
To create a PrintDialog control at design-time, you simply drag and drop a PrintDialog control from Toolbox to a Form in Visual Studio. After you drag and drop a PrintDialog on a Form, the PrintDialog looks like Figure 2. 



Creating a PrintDialog control at run-time is simple. First step is to create an instance of PrintDialog class and then call the ShowDialog method. The following code snippet creates a PrintDialog control.
PrintDialog PrintDialog1 = new PrintDialog();
PrintDialog1.ShowDialog();

Printing Documents


PrintDocument object represents a document to be printed. Once a PrintDocument is created, we can set the Document property of PrintDialog as this document. After that we can also set other properties.  The following code snippet creates a PrintDialog and sends some text to a printer.
private void PrintButton_Click(object sender, EventArgs e)
{
    PrintDialog printDlg = new PrintDialog();
    PrintDocument printDoc = new PrintDocument();
    printDoc.DocumentName = "Print Document";
    printDlg.Document = printDoc;
    printDlg.AllowSelection = true;
    printDlg.AllowSomePages = true;
    if (printDlg.ShowDialog() == DialogResult.OK)
        printDoc.Print();
 
}

c sharp panel control

The Panel Control is a container control to host a group of similar child controls. One of the major uses I have found for a Panel Control is when you need to show and hide a group of controls. Instead of show and hide individual controls, you can simply hide and show a single Panel and all child controls. so for this purpose you have two panel on the following form .

 if you want to hide panel one  you can do as follow on any button click event or   on form load .

 to show panel 1    use  Panel1.show(); method or to show panel 2 Use panel2.show() on any button's click event

c sharp menu strip

MenuStrip adds a menu bar to your Windows Forms program. With this control, we add a menu area and then add the default menus or create custom menus directly in Visual Studio. We demonstrate the MenuStrip and provide some usage tips.


To begin, please open the Toolbox window in Visual Studio in a Windows Forms project. Then, locate the MenuStrip entry and double-click it or drag it to the window of your form.
Insert standard items. This is an optional step but one that may help speed up the development of many programs. Select the "Insert Standard Items" link in the popup that appears in Visual Studio. This will add the File, Edit, Tools and Help menus with standard sub-menu items.
Note: Please be aware that none of these entries will actually have any effect if you click on them. This will be fixed in the next step.

Click handlers

To add actions to the items in your MenuStrip, double click them and then a Click event handler for that ToolStripMenuItem will be inserted. Then, you can add your custom C# code to that method's body.

c sharp labels c sharp link labels

labels are you used For naming other Control in C# windows form applications . For example if you have a text.box in your project and you named it user name now when ever user run the  your program he will never know  what you call user name and where to Enter user name .

labels can be added as normal control from tool box in Visual studio.

In above form Text box 1 is named  as student name which  guide the user to enter his student and  textbox2 is named password same case tell user to enter their Password.

Link label this will provide a hyperlink to a webpage may be for more information about the software he is using or  some time used for developer own web site or company to details about  his software.

Using Link Label : In order to use link label first  use a name space called.

using System.Diagnostics;

Now go to the link label's click on click event and do as follow,

   private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
              process.start(" here provide your website link") ;
        }


this will open your system Default browser with the link you provided in Parameters.

c sharp picture box

Picture box control is used in C# Form applications to display A  Picture in C# windows Form Application. Like all controls To use Picture in C# Windows Form just click on Picture box in control box .
Now by giving to its properties select a source picture or logo .


PictureBox class represents a PictureBox control. The following code snippet creates a PictureBox, sets its width and height and adds control to the Form by calling Controls.Add() method. 

SizeMode
SizeMode property is used to position an image within a PictureBox. It can be Normal, StretchImage, AutoSize, CenterImage, and Zoom. The following code snippet sets SizeMode property of a PictureBox control.

c sharp list box c sharp combo box

A ComboBox control is a combination of a TextBox and a ListBox control. Only one list item is displayed at one time in a ComboBox and other available items are loaded in a drop down list.
Creating a Combo Box:
We can create a ComboBox control using a Forms designer at design-time or using the ComboBox class in code at run-time.
To create a ComboBox control at design-time, you simply drag and drop a ComboBox control from Toolbox to a Form in Visual Studio. After you drag and drop a ComboBox on a Form, the ComboBox looks like Figure 1. Once a ComboBox is on the Form, you can move it around and resize it using mouse and set its properties and events. 
A list box is a GUI widget that allows the user to select one or more items from a list contained within a static, multiple line text box. The user clicks inside the box on an item to select it, sometimes in combination with the Shift key or Control key[1] in order to make multiple selections. "Control-clicking" an item that has already been selected, unselects it.

Setting ComboBox Properties:
After you place a Combo Box control on a Form, the next step is to set properties.
The easiest way to set properties is from the Properties Window. You can open Properties window by pressing F4 or right click on a control and select Properties menu item. The Properties window looks like Figure 2. 



Using List box In your Project will let User to select a Value from give list which is whole visible to user.  Combobox is same but used for Design Purpose all other values will be hide on form will be visible when a user clicks on Combo box.
 

c sharp Check boxes chsarp list Check boxes

Check boxes is used in C# Windows Form applications to select multiple choices form a group of choice. this allow a user the he/she can select more then one choice in all choices.



The ListBox has the capability to show checkboxes for each item in a list. Each item can be checked and unchecked by clicking the checkbox or by using the ‘checkIndex’ and ‘uncheckIndex’ methods. Users are allowed to check any number of items, including none.

check box is a stand alone check box  You have to set each and every property of  every check box when you are using more 1 check boxes in your project.

while on other hand checklist box  is a  collection of check box in list. In the  Check box  list you can set property of all list at once.

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...