Skip to main content

Windows.Net Forms Interview Questions

  1. What is Syntax of a simple Windows Forms MessageBox statement

    System.Windows.Forms.MessageBox.Show("Hello World") 

  2. Can you write a class without specifying namespace? Which namespace does it belong to by default?

    Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn't want global namespace

  3. 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.

  4. What's 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.

  5. What's the difference between Move and LocationChanged? Resize and SizeChanged?

    Both methods do the same, Move and Resize are the names adopted from VB to ease migration to C#.

  6. How's 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.

  1. ow do you create a separator in the Menu Designer?

    A hyphen '-' would do it. Also, an ampersand '&\' would underline the next letter.

  2. what are the diffrences between windows application and windows service?

    Windows service is used for back end processing like printing,creating setup of CD.it is not used for Gui application.

Comments

Popular posts from this blog

Top Open Source Web-Based Project Management Software

This is an user contributed article. Project management software is not just for managing software based project. It can be used for variety of other tasks too. The web-based software must provide tools for planning, organizing and managing resources to achieve project goals and objectives. A web-based project management software can be accessed through an intranet or WAN / LAN using a web browser. You don't have to install any other software on the system. The software can be easy of use with access control features (multi-user). I use project management software for all of our projects (for e.g. building a new cluster farm) for issue / bug-tracking, calender, gantt charts, email notification and much more. Obviously I'm not the only user, the following open source software is used by some of the biggest research organizations and companies world wild. For example, NASA's Jet Propulsion Laboratory uses track software or open source project such as lighttpd / phpbb use re

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all...

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all over again for the .NET Framework 3.0? Do I need to do any application compatibility testing for my .NET Framework 2.0 applications? Because the .NET Framework 3.0 only adds new components to the .NET Framework 2.0 without changing any of the components released in the .NET Framework 2.0, the applications you've built on the .NET Framework 2.0 will not be affected. You don’t need to do any additional testing for your .NET Framework 2.0 applications when you install the .NET Framework 3.0.

Google products for your Nokia phone

Stay connected with Gmail, Search, Maps and other Google products. Check products are available for your Nokia phone Featured Free Products Search - Find the information you need quickly and easily Maps - Locate nearby businesses and get driving directions Gmail - Stay connected with Gmail on the go YouTube - Watch videos from anywhere Sync - Synchronize your contacts with Google