VB.NET Interview Questions and Answers


 

Interview Question in VB.NET

1)I want to know how to create VB.NET application EXE

(actually i created one application in VB.net 2003. but the application is not working in others pc where the visual studio is not installed.) that is why i want to create an exe of that application which runs on every windows platform.)

Why VB6 Not Support MSDN 2003

msdn 2003 and visual studio.net 2003 installed in my computer. And now i install microsoft visual studio 6.0 for my college project. I want to work in Visual Basic 6.0. But when i click help in vb 6.0 then it say msdn not installed, but i have the msdn in my computer.

In a forum i read that after 2001 msdn version not compactible with vb6. Is there any solution. I want to work in both(VB6, VB.NET 2003). Is there any patch or update available that help me to work msdn october 2003 in visual studio 6.0. Please help i realy need help. Because i not found msdn 2001.

Plz help me with solution as soon as posible.

Could comeone please help me with this please and yes i spent hours reading and trying it (really need help)

It is a visual basic application , i am unsure how to start it that is my problem i know what has to be done but cant think of a proper way to write the code could some please help me though it.

here it is:
Write a VB.NET console application to calculate the volume (v) of a sphere given its radius (r). Name the solution Volume. Use the following formula: v = 4/3 p r3.
Have the program read in the radius from the user. The output screen should look as follows:

Volume Program
**************
By your name

Please enter the radius: 9.9

For a radius of 9.9, the volume is 99.9

Program Specifications:
• Use s value of PI (create as a constant in your program)
• The radius and volume can have decimal places (use data type double)

note using Microsoft Visual Studio 2005

Please help me....question about VB.NET Windows application.......please help me

hai friends,i installed visual studio 2005,now i developing one project in VB.NET windows application,,,i have a problem in dialogs,,,,,in my projects i placed a OPENFILEDIALOG control,in this control i give the filter optins for JPG files,after that showdialog is placed,,,,but the filtered content not displayed in the dialog box(that is ther is no JPG file shown,but in the particular folder there is a lot of JPG images are available)what is the problem here please help me to solve my bug.......thank you friends

Asynchronous Response in VB.NET

How would I convert this code into an asynchronous response. I know you use BeginGetResponse() but am unclear, even after reading the MSDN, as to how to specifically use it. Code examples are what I am looking for. Thank you

(I am using Visual Studio 2005)

CODE:
Try

Dim wrp As HttpWebResponse = _
DirectCast(myHttpWebRequest.GetResponse, HttpWebResponse)

Dim sr As New StreamReader(wrp.GetResponseStream)

Call surf()

Dim text As String = sr.ReadToEnd
RichTextBox2.Text = text.ToString
sr.Close()
wrp.Close()

Catch ex As Exception

ListBox4.Items.Add(ListBox3.Text + " : " + ex.Message)
ListBox3.Items.Remove(prox)

End Try

VB.NET Single Dimension Array

I need to find a code example demonstrating an effective way to populate an array (Single()) with values from a sequential access file (example.txt). This is in VB.NET compiled in Visual Studio 2005

Scraping Text from web pages in VB.NET

I need a specific code example of how to load a website, copy the text and then write it to a text file in VB.NET using Visual Studio 2005.

Sequence

1:) Load webpage from list
2:) download text
3:) write text to file

Also, if you happened to know of a way, within VB.NET, to do this asynchronously - I would appreciate some example code of that.

THIS IS NOT HOMEWORK

Should I learn C Sharp

I am a trader who programs to get by, I am not a programmer by trade. I am very familiar with Visual Basic Version 6 and VBA. I have just installed Visual Studio 2005. Should I start leaning and coding in C# instead or should I stick to VB.NET? I need a good reason why for 10 points.

Timer in VB.NET

Your all legends in answering my quesitons so far so thanks in advance... here we go!

Right, I've got this app and I want a 20 second timer followed by which an integer variable is reset to zero. I'm using Visual Studio 2005 Visual Basic.

Thanks loads. I'd appreciate it if you could give me the code. Thanks.

Casting String value to other Data Type

Okay, I am working on proxy browser (ie a browser to surf the web while using proxies). These proxies are obtained either through a daily download of proxies from partner pages or a weekly download of a specific text file (the code shown in the example below is an example of the latter). The problem I have, is that when I test the program I get the following "CAST EXCEPTION" error. I suppose it indicates that I cannot use my proxy value (a string) for WebProxy. Does anyone know of a way to cast that string value to a data type suited for WebProxy? This is in VB.NET

BTW, I am using Visual Studio 2005

DETAILS:

CAST EXCEPTION UNHANDLED

Unable to cast object of type 'System.String' to type 'System.Net.IWebProxy'.

Place more than one graph on one aspx page

Hi Guys once again

Hey, I am doing an application that requires about 5 graphs on one aspx page. I have tried to play with screen coordinates but I seem to be getting nowhere. Can anyone suggest the easiest way to do this? I am using Visual Studio 2005, .Net 2.0 and VB.NET.

Thanks in advance.

Zabron.

I want to set screen reslotuon in VB.NET to avoid disturb webiste pages in differnet screen relolution.thanks

TABLE with absolute position.which properties i can set to show pages in centre on different screen resolution.where should change the setting or which property should set to show website in centere.
Pls reply.

Visual Studio 2005 , VB.NET.

I want to download the Visual Studio .NET for running VB.NET code. I heard they have the trial version

They have a lot of links and I'm confused which one to download. All I need is to run VB.NET Code. Can I do that using Visual Basic 2005(I tried to download that, but i'm unable to find the download link)or should I download something else.It's very confusing. Someone help me out quickly.

P.S.: Please give me the exact download link. It's hard to find in Microsoft's Website

Please help me Use Microsoft Visual Studio 2005 (VB.NET)

Build a program that has three labels that initially say “Which came first?”, “the chicken”, “the egg”, and a command button that says “Change”. Write code for the click event procedure of the command button that exchanges the locations of the words “the chicken” and “the egg” each time the button is clicked.

I am using Visual Studio 2005 and find myself sloughing through lots of complexity.Is BorlandC a better choice

VB.NET, C#, C++ CLR MANAGED, C++ CLI, C++ UNMANAGED, endless lists of properties and methods. Microsoft brags about supporting all these different languages but I find myself getting nostolgic for the old days when BorlandC provided an easy to use, intuitive, high performance, all-in-one product. Why should I switch? Is BorlandC a better way to go?

CAn someone help me regarding this VB.NET amp; C++ (ANSI C++ Or C++/CLI) problem

Can you tell me how to write a program using VB.NET or C++ to delete a specific OR user defined folder/file in the computer?

I would really appriciate if you can provide me sample coding as well.

I would be better if it is in C++ but I also like to that using VB.NET as well.

I'm using MS VISUAL STUDIO 2008

Microsoft, Wow, Help

Hello, I'm Jacob Zee. and i'm very intrested at microsoft programs aspecialy Visual Studio 2008. I've been wondering if someone knows a lot about Visual Studio 2008, and could help me to create cool programs. (I use VB.NET).

Visual Basic 2005/2008 (VB.NET) OR cSharp.NET

I am looking to get into programming. I am proficient with HTML, PHP, and Flash. Which of these languages should I choose, VB.NET OR C#.NET? I need a language with a .NET framework, I will be using Visual Studio as my IDE. I am a beginner and do not know much, but I do have access to video tutorials.

Which of these languages is easier to learn? (VB.NET?)
Which is more flexible and used more often? (C#.NET?)
Which has more demand for and growing?

Thanks for any helpful advice! Happy Holidays!
123