Massage box

>> Nov 30, 2010



You can see picture in right side, how to disply massage box in project, here you can see below simple code you have to enter in source code windows as under:




Private Sub Command1_Click()

MsgBox "Hey! you can see massage box", vbInformation,"Massage"

End Sub




Now, run the project and click on command button you can see the massage on screen



Type of massage


  • VbAbortRetryIgnore
  • VBapplicationmodule
  • VbCritical
  • VBdefaultbutton
  • VbExclamation
  • vbInformation
  • vbMsgBoxHelpButton
  • vbMsgBoxRight
  • vbMsgBoxRtlReading
  • vbMsgBoxSetForeground
  • vbOKCancel
  • vbOKOnly
  • vbQuestion
  • vbRetryCancel
  • vbSystemModal
  • vbYesNo
  • vbYesNoCancel

To better understand download sample source code CLICK HERE

Read more...

File Extension

It is very important to understand file extension, most beginners having a truble for file extension, so here i am giving some extention of visual basic concern files. Each file type has 3 letter extension designated as under:

  • Visual basic project - .vbp
  • Form - .frm
  • Module - .mod
  • Class - .cls
  • Visual basic group - .vbg
  • Desiner file - .dsr
  • Basic file - .bsr
  • Executable file - .Exe ( Application)
  • User defined control - .ctl
  • Resource file - .res

Read more...

Calculation

>> Nov 28, 2010


Let's start little project, how to calculate of two text box, put the two text box on the form and also insert one label under two text boxes, command button too.
right click on command button, now you can see properties of command button,click on last option"properties", now you can see control properies of command button, might it can be open as defult when you open first time visual basic. Go to control properies and type in forth option "caption"- "calculate" now you can see there command button caption will be cange.
you can see top of right side picture, you can set like that.
Now, you can change some text box's value by control properties, click on text box1 and go to text, type there 10 or any numner value and same follow in text box2. make any name of label, here i will given name of label is "total" and against text i put value = "0" , you can also give any instruction on top of form like " Please input numberic value in text boxes", change the colour and font bold for atraction.
Now, double click on command button, now you can see like this
Private Sub Command1_Click()

End Sub

- Enter the code

Private Sub Command1_Click()
Total = Val(Text1.Text) + Val(Text2.Text)

End Sub

Mark there TOTAL is label name means - label(total) caption will be (equal to) value text box 1 plus text box 2
Now, RUN the program -- You can run button in toolbar as like play button like ">"this.
enter numbric values in both textbox an click on calcuate button, you can see label valued will be automatically change there.
Cang! you almost done!

Read more...

My first Visual Basic Project

>> Nov 26, 2010

VISUAL BASIC


is a high level programming language which evolved from the earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction Code. It is a very easy programming language to learn. The code look a lot like English Language. Different software companies produced different versions of BASIC, such as Microsoft QBASIC, QUICKBASIC, GWBASIC ,IBM BASICA and so on. However, people prefer to use Microsoft Visual Basic today, as it is a well developed programming language and supporting resources are available everywhere. Now, there are many versions of VB exist in the market, the most popular one and still widely used by many VB programmers is none other than Visual Basic 6. We also have VB.net, VB2005, VB2008 and the latest VB2010. Both Vb2008 and VB2010 are fully object oriented programming (OOP) language

For your referance download simple project = DOWNLOAD


Read more...