Fibonacci series program in vb.net?
This is not a homework board. I will give you a rough algorithm in C#
int firstnum= 1;
int finalnum = 1;
int nextNumber;
System.Console.Write(finalnum + " ");
while (finalnum < 50)
{
System.Console.Write(finalnum + " ");
nextNumber = finalnum + firstnum;
firstnum= finalnum ;
finalnum = nextNumber;
}
Use of Interlocked class in vb. net?
The Interlocked methods protect against errors that can occur when the scheduler switches contexts while a thread is updating a variable that can be accessed by other threads. The members of this class do not throw exceptions.
[Note: The System.Threading.Interlocked.Increment(System.Int32@) method and its counterpart, System.Threading.Interlocked.Decrement(System.Int32@), increment or decrement a variable and store the resulting value, as an atomic operation.
The System.Threading.Interlocked.Exchange(System.Int32@,System.Int32) method atomically exchanges the values of the specified variables. The System.Threading.Interlocked.CompareExchange(System.Int32@,System.Int32,System.Int32) method provides an atomic operation that compares two values and stores a third value in one of the variables, based on the outcome of the comparison.
Which of these is used to open an database?
Depends on what kind of database you are opening. I only know of OLEDB (Access) database.
Dim conn as New System.Data.OledbConnection
conn.ConnectionString="C:\a.mdb"
conn.Cpen()
'code goes here
conn.Close()
That's how you open an database.
How do you insert image in menu using net?
Select the picturebox and look in the properties window. Browse in the "image" property.
How can you make a button not to work after it has performed it's duty in visual basics?
Button1.Enabled = false
Button1.Visible = false
If you mean in computer technology it's a term used to describe an older and largely unused format of Floppy disks "Single sided, double density" disks.
It could also mean "Same sh*t, different day" depending on whom you ask.
Where can you get the script Purlie Victorious 1963?
I found it on the site "any script in the world" thank you.
What are the visual symptoms of tabes dorsalis?
Visual symptoms are quite common and include double vision, blurred vision, narrowed field of vision and finally blindness. The pupils are characteristically small and non-reactive to light.
Write a program to print odd numbers In vbnet between 51 to 100?
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=51;i<100;i=i+2)
{
printf("%d", i);
}
getch();
}
An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.
Difference between adodb and adodc?
Very simple difference between adodc and adodb is "C" and "B".. he he he kidding... adodc is a data control and adodb is a class library, adodc good to use but some time it produce error for "multiple operation". With adodb can data bound dynamically, other hand can say if u r making big software so use ADODB and use ADODC is suitable for small projects.
Explain why naming encapsulation are important for developing large?
The ability to make changes in your code without breaking the code of all others who use your code is a key benefit of encapsulation. You should always hide implementation details. To elaborate, you must always have your variables as private and then have a set of public methods that others can use to access your variables. Since the methods are public anyone can access them, but since they are in your class you can ensure that the code works the way that is best for you. So in a situation that you want to alter your code, all you have to do is modify your methods. No one gets hurt because i am just using your method names in my code and the code inside your method doesnt bother me much.
If you want maintainability, flexibility, and extensibility (and I guess, you do), your design must include encapsulation. How do you do that?
• Keep instance variables protected (with an access modifier, mostly private).
• Make public accessor methods, and force calling code to use those methods rather than directly accessing the instance variable.
• For the methods, use the JavaBeans naming convention of set and get.
What is relationship between process and thread?
Process --1------------m-- Threads
1 process to many threads
Bring up your Task Manager (if you are using a windows), Performance tap, you can see the number of process and the number of threads, usually the number of threads is a lot higher than the number of processes.
What is the purpose of documentation?
Merged documents can be very useful ! Suppose you were running a sports club of 200 people, and you wanted to send them all the same letter... You could use a merge document to print the letter out, with each persons details merged into it.
How do you tell your program you are using a VARIABLE?
You have to declare it. The simplest way to do so is by using the Dim keyword.
For example if you want a string variable called someString you would declare it thus:
Dim someString as string
What do you mean by visual in .net?
The c# language is a member of the .net framework of languages. Every windows based computer has the .net framework installed as part of the operating system package. The best way to think of the .net framework is as an interpreter that can understand many different languages and then convert them into instructions that a computer can understand.
The .NET framework is a software framework developed by Microsoft; the framework is essentially like lego blocks that can be used to easily build windows programs. So let's say you want to write a program for a machine running windows operating system, what you can do if you are using a .net language(such as c#, c++, visual basics etc) is write the program using the .net framework, the advantage of using an api(application programming interface) such as .net is that you can focus on solving problems instead of doing tedious tasks like trying to create a button from scratch or a window(such as the one your web browser is in). Instead of creating these "objects"(i.e. the button or the window) from scratch you can simply write one line of code and you have a button, therefore you can focus on what happens when you press the button or what to display in the window rather than trying spending your time and effort trying to write lines of code to create a button or form.
What is a double in visual basic?
A double essentially is an int but with a decimal. For example, 4.5 is a double. But the int value of that would be 4