write a VB.net program to swap two numbers

Answer Posted / biswasmit lenka

Private sub command1_click()
dim a,b,c as integer
a=Val(Text1.Text)
b=Val(Text1.Text)
c=a
a=b
b=c
Text1.text=b
text2.text=a
End sub
Private sub command2_click
end
End sub

Is This Answer Correct ?    38 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain managed code?

704


What are the different types of a stream?

743


What is the difference between static or dynamic assemblies?

767


What are the difference between dispose(), close(), exit(), end()? When do we use them?

786


Explain the difference between value and reference types?

662


What are the advantages of an assembly?

824


What is late binding and early binding?

761


Explain the difference between namespace and assembly?

684


What are the differences between vb.net and c#, related to oops concepts

770


Why do we use ansi keyword?

734


Explain how to achieve polymorphism in vb.net?

712


What are option strict and option explicit?

1108


How to store decimal data in .net?

830


What is the difference between system.applicationexception class and system.systemexception?

897


Explain the services provided by common language infrastructure.

927