Friday, May 7, 2010

Windows Application Introduction.

Develop window application:

- Design user interface.
- Set properties of different objects/control
- Assign coding different events.

Setting properties of objects (controls/components):

- Select object.
- Press F4/view+properties.

window/right click and select
Properties/click related icon.

Properties:

- Object name
- Property name (setting name)
- Property value (settings)

Methods of setting properties:

- Design time settings
                              Settings changed while desining user interface, these are set before execution of program
by using properties windows.

-Run time settings:
                         Settings changed during execution of program, depending on base of same event or on user
input, these are set by coding.

Form Properties:
         
- Name (frm---> naming prefix)
- Accept  button
- Auto scroll
- Back color
- Back ground image
- Back ground image layout
- Cancle button
- Context menu strip
- Content Box
- Cursor
- Enable
- Font
- Fore color
- Form border style
- Icon
- Is medicontainer
- Location
- Locked
- Main Menustrip
- Maximize Box
- Minimize Box
- Opacity
- Show icon
- Show in task bar
- Size
- Start postion
- Text
- Top most
- Window style

Run time settings:
                        object_name.property_name = property_value
me.property_name = property_value

for current user form only

me.text = "have a nice day"
me.text= inputbox("type caption")
me.backcolor=color.dark orange


Form designer window:

- Design user interface.
- Set properties of different objects/controls.

Toolbox:
Contains all necessary control/components to design user interface.

Form:
Each window in a window application.

view+code/or double click object to assign codings

Opps:
Object Oriented Programming.

Class:
Set of veriables and methods (procdures & functions).

Event:
Anything that occurs e.g load,mouse move,click etc.......

Load:
Default event procdures for form.

msgbox("prompt_text",message_box_style,"title_text")

input text("prompt_text","title_text",default_information,x-postion,y-postion)

No comments:

Any query contact us +923214581704 Mehndi Drama Serial