What are some good WinForms ASP.NET 2.0 interview questions?

Posted on 2008-11-13
Last Modified: 2013-12-17
I will be getting my second and final phone screen tomorrow for a job that's WinForms and C#.  I have been working with both for about 6 years, but can always learn more.  And given that I really need this job, figure there's no time like the present to learn more.

Could you folks think up some questions which might force me to open up my O'Reilly C# book to read it again?

Question by:newbieweb
    LVL 96

    Expert Comment

    by:Bob Learned

    Author Comment

    Hi Bob,

    Those are some pretty tough questions.  Most are for ASP.NET though.

    I guess I asked for that in my question, but this is the WinForms part of the interview.  Have you got a WinForms subset?

    LVL 96

    Accepted Solution

    Hmmm...let's see...

    1) How do you prevent serialization of certain child controls in your Composite Control?

    2) How can you implement a scrollable picture box?

    3) How can you prevent a control from getting a particular keystroke?

    4) How can you tell if an ALT, Shift or CTL key is pressed without catching an event?

    5) How do you add a context menu to a control?

    6) How can you drag a window if it doesn't have a title bar or border?

    7) How do you draw a line in VB7 as there is no Line command as there was in VB6?

    8) How do you print a form?

    9) How do you read embedded resources?

    10) Is there an easy way to Create/Delete/Move files in the Windows File System?

    11) The MessageBox always appears in the center of the screen. How can I change it's location?

    12) How do you beep the computer's speaker in a Windows Form application?

    13) What is the purpose of the [STA Thread] attribute for the Main method of a C# program?

    14) How can you display HTML in a Form?

    15) How do you implement Drag and Drop support between ListBoxes?

    16) How do you bind the values of an enum to a ComboBox?

    17) How do you display checkboxes in the nodes of a TreeView?

    18) How can you put a bitmap or icon on a button face?

    19) How do you programmatically select a Tab Page?

    20) How can you disable the right-click context menu in a TextBox?

    21) How do you change the cursor for a control?

    22) How do you implement a smooth ProgressBar?

    23) How do you prevent users from resizing a form?

    24) How do you change an application's icon?

    25) How can you tell if a form is closed from the control box (system menu) or from a call to Form.Close?

    26) How can you display a form that is always on top?

    27) How do you prevent a user from moving a form at run time?

    28) Can you host Windows Forms control on Internet Explorer?


    Author Comment


    Wow!  These are tough questions!  I thought WinForms was my strength?!

    Do you have the answer page for these too?  I got about three right.

    LVL 96

    Expert Comment

    by:Bob Learned
    Ok, so you need answers, huh?  I could provide that, or I could provide you with the source for my questions, and a great Windows Forms resource:

    Windows Forms FAQ
    LVL 96

    Expert Comment

    by:Bob Learned
    You didn't say what job level, so I thought you wanted tough, senior-level questions.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now