Create a windows application similar to Microsoft Outlook

HI,
Im trying to develop an application similar to Microsoft Outlook. If you open the contacts in Outllook using category view. There is a listing of contacts. Do I need to use a Datagrid for that. And if we click on any of the rows the full details of the record is displayed as a windows form. Can anyone suggest me or provide links as how to do that opening a windows form on clicking a row from a datagrid. I was planning to do like this. Use the datagrid and check for the datagrid double click event and pop up the new form with the respective primary key of the row being set to the form. And once the new form pops up try to bind the data using the primary key and retrieving it from the database. I hope im approaching it the right way.Can someone tell me which event to handle. Is it the double-click event that needs to be handled. I will send the row information to the new form that pops up. I am just not sure which event corresponds to the row clicked in the datagrid. And also how do I get the current row column value (mainly primary key value). I would appreciate ur help
THanx a lot


Answer this question

Create a windows application similar to Microsoft Outlook

  • Etienne Team System MVP

    Hi,
    thanx for ur  reply.....I dont want to develop the whole system. I was just playin around with it for my school project. I can't afford to buy it now.  Waiting for more replies

    Thanx a lot.

  • ondrejsv

    Then just download an eval version. They often work completely without a few querky extra splash screens. Probably good enough for a school project and free.

    Have fun!

  • JeffWard

    To make your application look like Outlook, which I'm doing with one project right now, I found it easiest not to re-invent to wheel. Since there are so many controls in Outlook that I needed to re-create and have the same feel, I choose to purcahse the Infragistics .NET package. You can get a single developer license for less than $500 with all the controls you need. There are also other controls out there but I shopped around and think Infragistics is the best bang for the buck. I think they'll be around for quite a while.

    Good luck in whatever you do!

  • hazz

    Hi there, here's a few bits of info for ya:

    First, here is a walkthrough on how to create an Outlook style user interface:
    <A href=http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbtskcreatingintricateuserinterfacewithwindowsapplicationobjects.asp>Walkthrough: Creating a Multipane User Interface with Windows Forms</A>

    Don't use the double click event.  It does not fire as you might expect on the DataGrid control.  I would suggest using the DataGrid.MouseUp event.  The following line of code will get the value in the specified column (iColumnIndedx) from the current row (user selected):

    DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, iColumnIndex)

    Much of how you accomplish your goal depends on where you are getting your data.  If your DataGrid is bound to a DataSet, then you should get your info from the current position in the dataset's BindingManager.  If the DataSet is availble to both Forms, and you bind Form1 datagrid to the dataset and all of Form2 detail controls to the dataset, then moving the postion in the grid on Form 1 would automatically update all of the detail controls in Form 2 via databindings; you will not have to implement any code of your own.

    What is the source of data for your datagrid


  • Tera_Dragon

    if I were you, I'll use listview. Listview contains ListViewItem controls, you can assign you data (key, for example) by inheriting the ListViewItem control, or assign to Tag's value.

    You're right, when double click, catch this, handle by DoublickEvent, ListView has a property that show current selected item, you can then pass the current item's key to create new instance of your detail form, from the constructor of this detail form, get the key and retrieve required data (from database, for example) ... I hope this helps.

  • Create a windows application similar to Microsoft Outlook