Anda di halaman 1dari 7

==>25/7/17

LIST BOX
properties
-->items
-->selected index
-->selected item
-->selected value
-->size
-->sorted

METHOD
-->contains
-->dispose
-->find string
-->get item text
-->get selected
//list box.cs
//list box1.cs
---------
==> 26/07/2017
COMBO BOX
-->represents a windows combo box control

constructors
-->combobox

properties
-->items
-->selectedindex
-->selecteditem
-->selectedvalue
-->sorted

methods
-->dispose
-->find string
// prgramme//
namespace WindowsFormsApplication4
{
public partial class Form5 : Form
{
public Form5()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
if(comboBox1.Text!="")
{
if(!comboBox1.items.Contains(comboBox1.Text.ToUpper())==true)
{
comboBox1.Items.Add(comboBox1.Text.ToUpper());
MessageBox.Show("added");
}
}
}
private void button2_Click(object sender, EventArgs e)
{
if(comboBox1.SelectedIndex>=0)
{
comboBox1.Items.RemoveAt(comboBox1.SelectedIndex);
MessageBox.Show("Deleted");
}

private void button3_Click(object sender, EventArgs e)


{
Application.Exit();
}
}
}

--------

PICTURE BOX

==>properties
-->image
-->sizemode

==>methods
-->dispose
//picturebox 1....4

28/07/2017
-----------------
TIMER CLASS
-->implements a timer that rises an event at user-dfined intervals

constructors
-->timer
properties
-->interval
-->enabled
methods
-->dispose
-->start
-->stop

H-SCROLL Bar CLASS

represents a standard windows horizontal scroll bar

constuctors
-->hscollbar

properties
-->largechange
-->maximum
-->small change
-->value
method
-->dispose
V-SCROLLBAR CLASS
represents a standard windows vertical scroll bar
construcors
-->vscroll bar
properties
-->large change.
-->max
-->min
-->small change
-->value
method
-->dispose

MESSAGEBOX
Displays a message box that can contain text,button,and symbols that inform and
instruct the user
methods
-->show(string,string,messagebbox buttons,messagebox icon)

29/07/2017
RADIO BUTTON CLASS
enables the user to select a single option from a group of choices when paired with
other radio buttons

constructors
----------------
-->initializes a new instance of the radio button class
-->radio button()

properties
-----------
-->checked
methods
---------
-->dispose

CHECK BOX CLASS


---------------------
represents a window checkbox control

constructors
-------------
-->checkbox
prop
-----
-->checked
method
-------
-->dispose

COLOR DIALOG CLASS


--------------------------
represents a common dialog box that displays available colors along with controls
that enable the user to defined colors

constructors
--------------
colordialog
prop
-----
color

method
--------
dispose
show dialog

FONT DIALOG CLASS


-------------------------
prompts the user to choose a font from among those installed on the local computers

constroctors
--------------
font dialog

prop
------
color
font
show color

methods
---------
dispose
showdialog

o1-08-2017
-------------
oPEN FILE DIALOG CLSS
-----------------------------
prompts the user to open a file

constructors
--------------
-->openfiledialog

prop
-----
-->filename
-->filter
-->initial directory

methods
---------
-->dispose
-->openfile
-->showdialog

SAVEFILEDIALOG CLSS
-----------------------------
prompts the user to select a location for saving a file

constuctors
-------------
savefiledialog
prop
-----
-->filename
-->filter
-->initial directory

methods
---------
-->dispose
-->openfile
-->show dialog

RICHTEXTBOX CLASS
--------------------------
represnts a window richtextbox control

constructors
---------------
richtext box

prop
-----
-->multiline
-->selectedrtf
-->selectedtext
size

methods
---------
-->clear
-->copy
-->cut
-->delete
-->dispose.
-->paste
-->savefile
-->select
-->show

03-08-17

DATE TIME STRUCTURE


------------------------------
represents an instant in time,typically expressed as a date and time of the day

constructors
----------------
datetime

prop
------

-->date
-->day
-->day of week
-->day of year
-->hour
-->milliseconds
-->minute
-->month
-->now
-->second
-->today
-->UTCnow
-->year

method
---------
--->addmonths
--->add seconds
--->add years
--->ISleapyear
--->parse
--->substract
--->tolocaltime
--->tolong date string
--->to shortdate string
--->to shorttime string
--->tolongtimestring

CREATING MENUS
----------------------
place a main menu on the form 2003 or menustrip 2005
creating context menu or popup menu

SYSTEM.IO NAMESPACE
--------------------------------
contains types that allow reading and writing to files and data streams and types
that provide basic file and directory support

DIRECTORY CLASS
----------------------
exposes static methods for creating,moving and enumerating through directories and
subdirectories

methods
---------

create directory
delete
exists
getcurrentdirectory
getdirectories
getfiles
getlastaccesstime
getlogicaldrives
set current directory

//directory1

DIRECTORU INFO CLASS


------------------------------
exposes instance methods for creating,moving,and enumerating through directories
and sub directories

constructors
--------------
directoryinfo(path)

prop
----
exists
lastaccesstime

methods
---------
delete
getdirectories
getfiles

Anda mungkin juga menyukai