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

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?

newbiewebSr. Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
newbiewebSr. Software EngineerAuthor Commented:
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?

Bob LearnedCommented:
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?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

newbiewebSr. Software EngineerAuthor Commented:

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.

Bob LearnedCommented:
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
Bob LearnedCommented:
You didn't say what job level, so I thought you wanted tough, senior-level questions.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.