Friday, May 7, 2010

Arrays, Goto, Errors.....

Arrays:
           To declare group of variables of same type but referenced/accessed by a common use.

Dim array_name(number of subscripts/indexs) as data_type


Dynamic Memory Allocation:
                                           Redius Array_name (number of subscripts)
Redim preserve Array_name(number of subscripts).

Errors:
          Types of errors.

1. Syntax error:
                       These error occurs or not following programming language rules these errors are indicated by the compilers.

2. Logical errors:
                        Programmers mistakes, these errors are removed by executing program and matching result with expected result.

3. Runtime error:
                         These error occur during program execution, different reasons e.g memory, hardware failure.

Logical Operation.....

Logical Operation:
                                  To check more then one relutional experession at same time.

- And
- Or                                           Multiple program use
- Not

Truth tables:
                   Rel.exp1              operator                 Rel.exp2
                    True                      and                         true

Goto statement:
                              To transfer flow of exceutue of program.

                            (discourged in structred programmin/oops)

Goto location:
                          Any area in the program defined by a name followed by : colon sign.

Loops:
              Reapeting of statements.
              These are two types of loops.

1. Finite loops.

2. Infinite loops.

VBCRLF:
                 To write command use one line syntax.

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)

Relational/Comparison operators & Relational/Comparison Experssion...

Relational/Comparison operators:


= ---->  equal to
< ----> less then
> ----> greater than
<= ----> less than or equal to
>= -----> greater than or equal to
<> -----> not equal to

Relational/Comparison Experssion:

(iif) (immedite if) function:

iif ( relational_expression,expression1,expression2,)

Nested iif: / iif with in if:

iif(relational_experssion,experssion1,iif(relational_experssion,experssion2,........))))

How much brackets are open thats are closed.

Thursday, May 6, 2010

Intializing variables

variable_name = informaion ( string must be enclosed in double quotes " "


= equalto  mean ----> assignment operator


& ----> concadidate operator to join group of expressions.


Accepting user input in console application. (console.readline)


console.writeline("type P_name")
P_name = console.readline()


: colon sign  to write more than one statement on same line.

Mathematical or Arithmatical operator:

+   Additional
-    Subtractor
/    Division
\    Division
^   Raising Power
Mod---> Modulus/Remander operator


Dim a,b,c as integer

a = 100 : b = 500 

c = a+b

console.writeline(a & "+" & b & " = " & c)


Plz suscribe my blog for more detail.

Variables & Data types

Variables:
              Space in memory with specfic to store data information. Declaring variable in vb dot net.
Scope:
           Dim---> variable_name  as data_types.
- Alphabatic
- First character must be a alpha

Variable name must be small and desprictive.

Data Type:

- Numeric.
- String.
- Data.
- Boolean.
- Object.

Type Identifier character.
% integer
& long integer
! single
# double
& string

Naming convation:

bln
byt
cur
dtm
dbl
int
ing
sng
str

Developing console application.

Q: How to develop console application?

A: Create a new project just goto file-new-project. (ctrl+shift+N)

- select visual basic
- select console application from project template
- specific location name and project
- solution name: group of related projects

Now open coding window.
        
- Non structured programming.
- Structured programming.
- Module.
- Procedure.
- Main.
- Syntax.

Structured Programming.
                                      Division of programming into divide and rule.(procedure and function)
Module:
              Group of related procedure and function.
Producer:
               Set of related instructions stored in the program with specfic names but these insuruction return
some information for later use.

Main:
         Default procedure use instruction in these procedure are executed automatically whenever consoule
application is run.
Syntax:
           Rules of programming any language.
- resrve words.

Console.writeline(----)


String literal:
                  Alaphabetic/Alpha numeric must be closed double quotes.
Debbuging:
                shortcut key-----F5

console.readkey:
                         use this commend to wait application.

Commenting statements:
       
- Programme commets
- To skip statement during program excuting.

( ' ) This command use to comment out all syntax. Shortcut key this command.
ctrl+c ----- Enable
ctrl+u -----Disable
This command available is Edit---Advance----comment out all

Microsoft Visual Basic dot net introduction

Microsoft visual basic based on three types of application thats bulid your program.

1. Console Application.


2. Desktop Application.


3. Web Application.


Firstly i tell you console application.


Plz suscribe my blog for a new & latest information.

Monday, May 3, 2010

nokia 5130 Xpress Music

Blackberry bold 9700 phone

wii fit plus

Port Forwarding in torrent.......

Q: How to use port forwarding in utorrent?

A: Port forwarding is now simple. Just use following these steps.

1. Open utorrent and goto option.


2. Goto speedguide or (ctrl+G)


3. Click test port. If result is OK your port is open
4.If port open just like.....
If massage are display your port is not open then use following these steps...

1. Goto option then click speedguide or (ctrl+G) and copy port adress....


2. Open your router interface such as linksys,motorola etc.... I'll tell you linksys interface. but all routers port forwarding method are same.... paste port adress in following text box shown as below
3. Click test port again. Now your port is open
Enjoy inbound downloading

Toshiba Satellite

Kingston Data Traveler USB

Sunday, May 2, 2010

now using netsending on windows Xp......

Q: How to use net sending in Win_Xp?

A: Let i tell u…


1. Goto —-> My Computer —-> right click —-> & goto manage then computer managment (local) then services & application then services then
massenger & open properties then goto genral tab then startup then select automatic nd click apply then click start service & then click ok.
2. Goto run or shortcut key ctrl+r then type cmd & press enter.
3. write this command ( net send space “computer name/ip” space “type massage” & then enter.

Add/Remove_Programs end of Dummies Enteries

Q: How to remove Dummies entries in Add/Remove Program?

A: When you uninstall or delete file to Add/Remove Program.But doesn't delete entry file.
These Enteries should remove following steps….
1. Click start —–> then Run or shortcut key (Ctrl+R)
2. Type “regedit” & press Enter
3. Goto —-> HKEY_LOCAL_MACHINE —–>SOFTWARE —–>Microsoft ——> Windows ——> CurrentVerison ——->Uninstall
4. Delete following Entries in this place.
Any query contact us +923214581704 Mehndi Drama Serial