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

What is a toolbox in vb?

Toolbox in Visual Basic.net 2008 consist of Controls, Containers, Menu Options, Crystal Report Controls, Data Controls, Dialogs, Components, Printing controls, that are used in a form to design the interfaces of an application.

What is a visual pass in track?

The receiver for the baton runs before he receives the baton and looks back at the person with the baton to receive the baton.

What is the difference between ASP Net and visual studio Net?

Visual Studio is an IDE, whereas DotNet is a framework. A Framework is a set of usable components which can be used to develop some application, hence Visual Studio is a development environment for DotNet based applications.

Vb program to find roots of quadratic equation?

Dim a, b, c, undroot, root, posx, negx, x1, x2 As Single

Private Sub cmdcompute_Click()

a = txta.Text

b = txtb.Text

c = txtc.Text

If txta.Text = "" Then

MsgBox "Please enter the value of A ", 0 + 32

Exit Sub

End If

If txtb.Text = "" Then

MsgBox "Please enter the value of B ", 0 + 32

Exit Sub

End If

If txtc.Text = "" Then

MsgBox "Please enter the value of C ", 0 + 32

Exit Sub

End If

If a = 0 Then

MsgBox "A can't equal 0 ", 0 + 32

Exit Sub

End If

If (b ^ 2) - 4 * a * c < 0 Then

txtx1.Text = ""

txtx2.Text = ""

MsgBox "Imaginary solution : (b^2)-4*a*c < 0", 0 + 48

Exit Sub

End If

'Calcualtions

undroot = (b ^ 2) - 4 * a * c

root = undroot ^ (0.5)

posx = (b * -1) + root

negx = (b * -1) - root

x1 = posx / (2 * a)

x2 = negx / (2 * a)

'Displaying results

txtx1.Text = " " & x1

txtx2.Text = " " & x2

End Sub

How you can generate an random unique number in visual basic studio?

You can use this function:

Function Random(ByVal Lowerbound As Long, ByVal Upperbound As Long)

Randomize()

Random = Int(Rnd * Upperbound) + Lowerbound

End Function

And use it by using:

whatever.Text = Random(1, 1000)

This example gives a number between 1 and 1000.

Basic defferences between general procedures and event procedures in Visual Basic language?

Although these two terms refer to similar processes there is a technical difference. A procedure is a snippit of code that is a specific list on instructions that a program may execute once or twice. Basically a procedure will only run once everytime it's action is called. A function is kind of like a loop. A function mainly concerns variables where the variable is increasing each time delivering different numbers each time the function is repeated. Here are some examples. A program saves your work when you click the save button is a procedure. A video converter convertes 7,000 frames is a function.

What are the difference between vb studio and vbnet?

VB can be run with native support means you don't have to install any framework, library, run time environment etc in order to run an App which is built by VB.

Whereas VB.Net must requires a Dotnet Framework as a prerequisite for VB.Net app.........

VB app is run efficiently as compared to VB.Net......Because there VB app runs directly On OS kernel whereas VB.Net is firstly run on .Net Framework (CLR)* and then this CLR(Common Language Runtime) executes it on Os kernel so For VB.Net there is an extra of one layer for executing......

*CLR is a .Net Framework core component which translates the VB.Net app (or any other app which is built using .Net) into Machine language code.

Write a program that stores vowels in an array When you program is given a character it should indicate whether the character is vowel or not?

That's easy to do!

This script will get the POST data from an HTML form and check if it is a vowel.

$vowels = array('a','e','i','o','u'); // Make variable "vowels" an array with all vowels in it

$_POST['string'] = $string;

if (strlen($string) != 1) { // String is not one character.

echo 'The "character" is not one character!";

} else if (in_array($string, $vowels)) { // Check if string is a vowel based on array

echo $string.' is a vowel!'; // Is a vowel

} else {

echo $string.' is not a vowel.'; // Is not a vowel

}

?>

NOTE: Sorry about horrible looking code, Wiki messed up my indenting.

What are the disadvantages of visual studio?

not much really. The only thing is, is that it costs and takes up alot of room on your pc. if you are downloading, prepare for a long download. Visual Basic is free!

Ifthenstatement visual basic 6.0?

Like most languages Visual basic also uses the 'If' keyword to implement the decision control statement. The syntax of 'If' statement is as follow

If <condition> Then

Statements ...........

.............................

End If

For Example:

Private Sub Form1_click()

Dim marks As Integer

marks= InputBox("Enter Marks : ")

If marks >60 Then

MsgBox "First Devision"

End If

End Sub

What is the difference between C plus plus and MS Visual C plus plus computer programming?

C++ is simply the generic implementation, based upon the version originally developed by Bjarne Storustrup, and which is considered the standard implementation. Visual C++ is Microsoft's implementation of the language, which follows much of the standard, but is not 100% compliant. However, VC++ includes an extensive and exclusive library that is specific to Windows programming. Competitors such as Embarcadero's C++ Builder have similarly extensive Windows libraries but which are not compatible with Microsoft's.

Write a programe to find whether a number is odd or even?

#include
#include

int main(int argc, char *argv[]){
if(argc != 2) {
printf("pass one integer as an argument.\n");
exit(1);

}
if(atoi(argv[1]) % 2){
printf("That is an odd number\n");

}else{
printf("That is an even number\n");

}
return 0;

}

When using a visual signal?

What are appropriate means for leaving evidence of presence

Features of visual basic?

the features of V B is we are creating a programme and it is run in similar window ..... this software powered by a great sintest of amaroka .............and this is

What is the purpose of private sub code in visual basic?

Private is a keyword that tells visual basic what the access level of the variable or procedure it is declaring will be within your application, and as such what code has permission to read it and write to it (or call it).

You would use private on variables and procedures you wish to expose only to the class in which they are actually in, the ability to correctly define public, private and protected (etc.) access levels for code is a primary principle of object oriented programming.

When you declare a variable you can do any of the following, for this example, the following three variables are all declared on one form (Form1):

Dim intVariable1 As Integer

Public intVariable2 As Integer

Private intVariable3 As Integer

All three are integer variables, the difference comes in what can and cannot access them. Dim and Private are equivalent, one and the same, they can only be accessed and manipulated within the form itself.

However, intVariable2 is declared as public, which means that for example, if we created another form (Form2) with the following code behind it declaring a new copy of form 1:

Private oForm1 As New Form1

oForm1.intVariable2 = 87

We can change and access the second variable from another form, however since the other two variables are declared Dim and Private they cannot be accessed from any other location than within form1 itself.

Hope this clarifies it a bit for you.

How can you print prime numbers in basic from 1 to 100?

Two solutions immediately spring to mind:

  1. Run over all the numbers in the range and if the number is even print it;
  2. run over the numbers starting with the first even number in the range using a step of 2 (so that only even numbers are considered) and print the numbers.

What are the three different ways of executing a form in visual basic?

1.Click on Run menu->Start option.

2.Click on Start button>on the Toolbar.

3.The Output window appears.

What is the use of reusability in inheritance?

Inheritance in Java refers to the feature wherein the code/functionality of one class can be used in another class that extends this class. Example:

public class Parent {

...

..

}

public class Child extends Parent {

...

..

.

}

Here the class Child extends the class Parent and hence the methods of Parent are available for Child to use. This way we are re-using the code in the parent class in the child class instead of re-writing the whole thing again.

What are the basic elements of visual basic?

Tha Visual Basic IDE is made up of a number of Elements

  • Menu Bar
  • Tool Bar
  • Project Explorer
  • Properties window
  • Form Layout Window
  • Toolbox
  • Form Designer
  • Object Browser.

What are 3 elements of computer system?

The elements of Artificial Intelligence are:

  • Logic
  • Audio
  • Visual
  • Speech
  • Emotion

The 5 basic components of a computer are:

  • CPU ( Central Processing Unit )
  • Memory ( Random Access Memory )
  • Mass Storage Device ( Hard Drive )
  • Input Device ( Keyboard / Mouse )
  • Output Device ( Monitor / Printers )

What does annotated visual display mean?

An annotated visual display is a combination of visuals and summaries of observations. This information is then used to answer a hypothesis, a question to test with the observation you have made. ... The annotated visual display is a large poster.

What cool things can you make using visual basic?

You program programs like notepad, paint and such. But for sure you can program/create any type of software/application that you want, as long as you know the code. There are many sample/example on the internet. You can search at Google by the keyword 'visual basic sample' or you can go to http://www.planet-source-code.com, the largest programming language/code sample database on the internet.

Draw the data flow diagram of hotel management?

Maybe it does not exist just for hotel management. However, you may want to take a look at the more widespread general DFD design tools such as the free Dia (http://live.gnome.org/Dia) or the commercial Visio (http://en.wikipedia.org/wiki/Microsoft_Visio).