As far as basic Framework (ListView, TreeView and TabControl) in C# and
DataBase support you can look at
http://www.mj10777.de/NETFramework/Articles/NetDbExplorer/index.htm
or
http://www.codeproject.com/useritems/NetDbExplorer.asp
as a source on "How to do" things.
The DataBase.cs does all the ODBC, OleDb and (for Compact) SqlCe specific
work.
The DataBaseExplorer.cs works with the result of the retrieved Data
(DataSet, DataTable, DataRow, DataView)
Showing the result in a TreeView (structure of the DataBase/DataSet,
DataTable) and the viewing the records in a selected
DataTable in a ListView. Column sorting the ListView is done with a
DataView, since Sorted ListViews are not supported on Compact.
All (non password protected) Access, Excel, dbf (Compact: SqlCe) can be
opened, renamed and saved.
No direct support for Sql-Server (yet) but the DataBase class should work
properly.
The Explorer like "Look and Feel" (TreeView/Splitter/ListView) in the
Desktop Modus and
TabControls in the Compact Modus - when running on a PC (the Compact version
will only support the TabControls).
The goal was to use the same code for both Desktop and Compact, so there is
little Designer support.
Whether the same logic can be used for a Web Application I don't know since
I have never done one.
The Desktop/Compact dependent portion is in FormMainFrame.cs with the
following code :
#region FormMainFrame
/// <summary>
/// <list type="table">
/// <item><description>FormMainFrame</description></item>
/// </list>
/// <remarks>
/// <para>InitializeComponent</para>
/// <para>Initialize mj10777.Forms.DataBaseExplorer</para>
/// </remarks>
/// </summary>
public FormMainFrame()
{
InitializeComponent();
mj10777 = new
mj10777.Forms.DataBaseExplorer(this,mainMenuMainFrame,statusBarMainFrame);
} // public FormMainFrame()
// -- FormMainFrame
#endregion
so mayby this same idea can be used for a Web application (File Open/Save
may be a problem though).
The source is highly Documented, so you can learn how to do that as well
(all source is included).
A lot of comments in the code why thing are done this way, problems (and
solutions) I ran into etc.
Note the comments made by others about the basic starting point, but for the
first Widows Application this should be
a good example to learn from.
Hope this helps,
Mark Johnson, Berlin Germany
(e-mail address removed)
simsimlhr said:
I am new to c#.
I want to do work in C# for data base and web servicing.So where to
start.
Any url containing articles for beginers.
How much time it takes for normal person to learn.
For data base and web services vb net is strong or c#
Where can we learn the frame work of C#( articles).