Computer problems,Computer help
*AX SOFT>>>Programming & Design

Visual Basic???


When I want to click the Button "Help" I want it to say "Unable to Peform Function" in a message box that pops up with the title Error.

I have done this so far....
MsgBox("Unable to Perform Function.",0,"Error")

However, when I click the Button Help in the Debug, nothing popups up?

I am putting it in the Help Button Section, but do i need to put 'declare local variables or 'display results for it?or do i just type in that code?

Where are you inserting the code that you just showed us >
MsgBox("Unable to Perform Function.",0,"Error")

IT has to be in the OnClick Event of the Button on the form.

In design view you will have to click on the button to select it and then write this Code in the OnClick Event of this button.

hi,
u want msg and title alone,use this coding..
MsgBox "Unable to perform Function", , "Error"

or, u want to mention the button symbol like exclamation,info like and buttons u want (ok only,yes no and so on.....),now u can this coding:

MsgBox "Unable to perform function", vbInformation + vbOKOnly, "Error"

MsgBox is a function that return a certain value such as a string, so you have to assign it to a string then only the MsgBox can popup, like this

Private Sub Command1_Click()
Dim mgMsg As String
myMsg = MsgBox("Unable to Perform Function.", 0, "Error")
End Sub

For more info and tutorial on Visual Basic, visit this popular Visual Basic tutorial Website at

http://www.vbtutor.net

for quality lessons and tons of sample programs.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • What is a .reg file?

    hi, try this link to download .reg file.. ...

  • CSS: link code help!?

    You forgot to close your <a> tag. <a href= "aboutme-mock-up-CSS.html"> about me </a></div>

    ...
  • How can i put an affilite choice in my website?

    You need a website with database support. Normally these kind of websites uses PHP and MySQL so you can go for Linux hosting. Try www.hostgator.com its a good one.. I am using the same service...

  • Complicated document.write question in javascript?

    The problem occurs with how you are using the variable "sld". When the link is written out, it actually writes out "id2" so Javascript thinks that it is a variable; which doesn...

  • Which code represents character data boxes and graphical symbols?

    Most English-only programs get by fine with ASCII but if you need to support non-English text you will want to take a look at Unicode. I don't think EBCDIC is used anywhere anymore. Progra...

  • VbScript - Help Me!?

    hi, use this coding: <script language="vbscript"> dim n(2) for i=0 to 2 n(i)=cint(inputbox("Enter 3 numbers")) next if n(0)<n(1) and n(0)<n(2) then if n(0...

  • Can we move files accross a unix filesystem?explain ur answer .?

    Yes, you can move files across UNIX file systems - If you move files with in a file system, the same inode number is maintained and works more as a rename - When you move files across file syst...

  • Inheritance and polymorphism help pleaseeeeee!!!!!!!!!?

    I don't think this is an inheritance problem I think the problem is in your constructor definition. I can't tell for sure without seeing your code but you most-likely passing your para...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster