VB.Net Programming Interview Questions and Answers - 2

Question: 6

How would one do a deep copy in .NET?

Implement IClonable.

Question: 7

How can you save the desired properties of Windows Forms application?

.config files in .NET are supported through the API to allow storing and retrieving information.

They are nothing more than simple XML files, sort of like what .ini files were before for Win32 apps.

Question: 8

What is the safest way to deploy a Windows Forms app?

Web deployment: the user always downloads the latest version of the code, the program runs within security sandbox, properly written app will not require additional security privileges.

Question: 9

What is the difference between windows Default Location and windows Default Bounds?

Windows Default Location tells the form to start up at a location selected by OS, but with internally specified size. Windows Default Bounds delegates both size and starting position choices to the OS.

Question: 10

How is anchoring different from docking?

Anchoring treats the component as having the absolute size and adjusts its location relative to the parent form. Docking treats the component location as absolute and disregards the component size. So if a status bar must always be at the bottom no matter what, use docking. If a button should be on the top right, but change its position with the form being resized, use anchoring.

Related Questions