answersLogoWhite

0

📱

Visual Basic Programming

Visual Basic programming involves the use of a language that allows programmers to create simple and complex applications. It is a combination of visually organizing components or controls, specifying their attributes and actions, and writing additional codes for better functionality.

903 Questions

E R Diagram Of Restaurant Management System?

Need the E-R diagram for hostel managment system

hostel management is one of the best mini project for engineering students.

so we need an er diagram to enhance the database projects

Why reading is a largely visual process?

normally, good eyesight is required in good reading.

What is the procedure to built a class and object in visual basic?

whate is the procedure to built a class and object in visual basic.?

How to use Copyfile option in Visual Basic 6.0 to create a backup of database?

First of all, gross, Visual Basic. If you are trying to write a script to do db backup, then you are going to either need to look for something open source or write it yourself. You can also just use MySQL command line using the mysqldump command.

mysqldump name_of_database > name_of_file.sql

How do you get the output like 1 23 456 in vbscript?

you want to output "1 23 456" in VB

If you are making a console application then do the following:

console.writeline("1 23 456")

console.read() 'This command makes the console pause until a button is clicked

If you are using a windows form application, open the form.load sub ( by double clicking on it ) and add the following code:

msgbox("1 23 456")

Anyways theres another way, by adding a label and either changing its Text property in the properties bar or adding the following code into form.load sub:

label1.text = "1 23 456"

I hope that helped.

Why does engaging visual communication come with responsibility?

Engaging visual communication carries the responsibility of accurately representing information and respecting diverse perspectives. Misleading or manipulative visuals can distort understanding and perpetuate stereotypes, potentially leading to harmful consequences. Additionally, creators must consider the ethical implications of their visuals, ensuring they do not exploit vulnerable audiences or contribute to misinformation. Ultimately, responsible visual communication fosters trust and promotes informed dialogue.

What is a doc file?

A document file format is a text or binary file format for storing documents on a storage media, especially for use by computers. There currently exist a multitude of incompatible document file formats.

A rough consensus has been established that XML is to be the basis for future document file formats. Examples of XML-based open standards are DocBook, XHTML, and, more recently, the ISO/IEC standards OpenDocument (ISO 26300:2006) and Office Open XML (ISO 29500:2008).

In 1993, the ITU-T tried to establish a standard for document file formats, known as the Open Document Architecture (ODA) which was supposed to replace all competing document file formats. It is described in ITU-T documents T.411 through T.421, which are equivalent to ISO 8613. It did not succeed.

Page description languages such as PostScript and PDF have become the de facto standard for documents that a typical user should only be able to create and read, not edit. In 2001, PDF became an international ISO/IEC standard (ISO 15930-1:2001, ISO 19005-1:2005, ISO 32000-1:2008).

HTML is the most used and open international standard and it is also used as document file format. It has also become ISO/IEC standard (ISO 15445:2000).

The default binary file format used by Microsoft Word (.doc) has become widespread de facto standard for office documents, but it is a proprietary format and is not always fully supported by other word processors.

A program to find the sum of n numbers in visual basic?

//Script by aakash30jan

<script type="text/vbscript">

For count = 1 to 10

sum=sum+count

document.write("<br />" & sum)

Next

</script>

Which Compiler is used in visual basic?

visual basic has it's own compiler that Microsoft developed for it I think it was called vbcomp

VB Script program to display multiplication of two matrices?

<html>

<head>

</head>

<script language="VBscript">

sub fact(n)

dim f,i

f=1

i=1

do while(i<=cint(n))

f=cint(f)*cint(i)

i=i+1

loop

document.write("<br>Factorial of"&n&"is"&f)

end sub

</script>

<body>

<form name="form1" method="post" action=" ">

<input name="n" type="text" id="n">

<input name="Button" type="button" onClick="fact(form1.n.value)" value="Factorial">

</form>

</body>

</html>

How do you make a quiz in visual basic?

there could be many ways to make a quiz in vb before you do anything you have to become advanced at buttons like literally advanced

RECE


My own Edit:
you could use
Form.show

also you could use
form.hide

How do you differentiate visual basic and basic?

Visual Basic includes some object orientated aspects, basic was strictly procedural.

Why does graphical user interface programming often use event driven programming paradigm?

It's not a case of often, but always. Whenever your application is idle the application's idle loop is executed. By default, the idle loop simply processes system messages which may result in your application becoming active. For instance, as you pass the mouse over your application window, the operating system generates and posts hundreds of mouse movement messages which are passed to the message queue. The application's idle loop will process these messages and call the appropriate event handlers. Mouse movements may not be relevant to your application but they must be processed nonetheless. When the message queue is empty, the idle loop begins background processing. By default this does nothing except peak at the message queue looking for new messages for your application, but it can be overridden to perform any tasks that take your fancy (such as housekeeping tasks).

However, when the user clicks an object in your window (such as a command button), you would rightly expect your application to respond to that particular event. Thus the appropriate event handler is executed and control eventually returns to the idle loop again.

Problems occur when the event handler executes a highly-intensive task and therefore cannot yield control to the idle loop. This isn't a major problem if the task would only take a few seconds at most to complete, but if it takes any appreciable time this presents a serious problem. If your application does not process messages that are intended for it, then those messages will prevent other programs from gaining access to their messages. And as the message queue fills up, the system, grinds to a halt. Higher priority messages will still get through but the system will quickly become unresponsive.

To address this problem, your application must provide a user-defined message handler that can be periodically called by your intensive tasks, preferably two or more times every second to keep the system as responsive as possible. This message handler needn't be complex, but it must return a value to the caller to signal if the caller should abort or continue processing. For instance, if the user chooses to shut down the system mid-process, your intensive task must be able abort gracefully before the application itself can exit gracefully. This means your message handler must save and remove the message from the queue and signal the process to abort. The message handler may be called several times before the process finally aborts, but when it does control can pass to the idle loop which will finally deal with the message that caused the abort, thus permitting a graceful exit.

Tools used in visual basic and their meaning?

Given the fact there are around 50 default controls provided within the toolbox of visual studio, each with a highly in depth range of properties, events, methods and parameters you should probably focus your question on which individual tool you wish to know about.

It is probably possible to write an eight page laymans description for each control and it's uses accross the vb spectrum, and that would be without delving into the newer WPF uses of, say, a ListBox.

What is the Difference between combo box and list box in visual basic?

  • LISTBOX CONTROL

    COMBOX CONTROL

    A LISTBOX CONTROL displays a list of items from which theuser can select one or more. If the number of items exceeds the number that can be displayed, a scroll bar is automatically added to the List Box control.

    a list box is appropriate when you want to limit input to what is on the list

    choices not on the list can be typed in this field.

    A COMBOX CONTROL combines the features of a text box and a list box. This control allows the user to select an item either by typing text into the combo box, or by selecting it from the list.

    a combo box is appropriate when there is a list of suggested choices

    A combo box contains an edit field.

Write a VB program for binary search?

The optimal binary search algorithm uses a sorted array as the data container. Define the range to be searched using a half-closed range of indices [begin:end). Initially, this will be the half-closed range of the whole array.

The algorithm is as follows:

If begin>=end, this would indicate the range is empty or invalid, thus the value cannot exist. We return the end iterator to indicate value not found.

If the range has one or more elements, then we calculate the middle index of the range:

middle = begin + (end - begin) / 2

Note: division takes precedence over addition.

We then compare the value in the middle of the range with the value being searched. If they are equal, we are done, we simply return the middle index.

Otherwise, if the value being searched is less than the middle value, we adjust the upper bound of the array so the next iteration only searches the lower half of the original range:

new_end = middle

Otherwise we adjust the lower bound of the array so the next iteration only searches the upper half of the range:

new_begin = middle + 1

We then repeat the algorithm using the adjusted half-closed range.

The algorithm can be implemented in Visual Basic as follows. Note the array, a, is passed by reference (ByRef) to prevent making an unnecessary copy of the array. The function does not make any changes to the array itself so there's no need to copy it.

Function bin_search (ByRef a As Integer(), ByVal begin As Integer, ByVal end As Integer, ByVal value As Integer) As Integer

' save the end iterator (it may change later)

Dim not_found As Integer = end

' while the range is valid...

While begin < end

' calculate middle index

Dim middle As Integer = begin + (end - begin) / 2

' compare the middle element for equality

If value = A[middle] Then

' value found!

Return middle

End If

' value not found, so determine which half of array to eliminate

If value < A[middle] Then

' eliminate upper half (if value exists, it must be in the lower half)

end = middle

Else

' eliminate lower half (if value exists, it must be in upper half)

begin = middle + 1

End If

' repeat algorithm...

End While

' if we get this far, the range is either empty or invalid (begin>=end), so the value does not exist

Return not_found

End Function

What is combo box?

A combo box is a list of multiple values a user can select. Sometimes we refer to them as dropdown lists. When you click on it a list of value pops down and you can choose an option. They are very commonly seen on computers. To create them you use the Combo Box control in Visual BASIC.

What are the steps involved in creating visual basic programs?

The traditional way to learn any programming language is to start by writing a "Hello, World" program; this program should write "Hello, World" to the screen. To write such a program, you have to work out how to edit text, and run it through the compiler. Visual Basic, is almost like that, but window environment programs are event driven - they consist of routines that react to events - a button being clicked, a timer expering and so on. Visual Basic is also object orientated. Windows, buttons, every component of a program are objects or part of objects. With this in mind, its useful to read up on events and objects to see how to approach Visual programming. With a little knowledge, think of a project and try and write a program. Writing programs is by far the quickest way to become proficient in a language.

Write a VB program in to find number is Armstrong or not?

Private Sub Check_Click()

Dim d As Integer

Dim num As Integer

Dim s As Integer

Dim old As Integer

num = Val(Text1.Text)

old = num

s = 0

While num > 0

d = num Mod 10

s = s + (d * d * d)

num = num \ 10

Wend

If old = s Then

Label1.Caption = "Armstrong"

Else

Label1.Caption = "Not armstrong"

End If

End Sub

What are the advantages of a computerised library system?

So that the information can be managed easily, and retrieval, storage and modification can be done easily and in a faster way .

The redundancy can also be reduced ........