DirectorySoftwareBlog Details for "Learn C sharp"

Learn C sharp

Learn C sharp
A blog which helps novice programmers learn c sharp 2005
Articles: 1, 2, 3, 4

Articles

Create your own Auto Complete Textbox
2007-05-24 09:53:00
Well, this snippet will add a little bit of AI to your textbox, suppose you are searching and enter the query in a regular text box, how about the text box suggesting you the words from your database?The answer is here...im using a text box and enable its Auto Complete Source property to custom and programatically add the custom text. But now here is the catch the text im adding is not that simple im using fields from database and adding them into the textBox's custom word list.//traverse each record and store the value for the FirstName field.foreach (DataRow dr in ds.Tables["Contacts"].Rows) { textBox1.AutoCompleteCustomSource.Add(dr[ "FirstName"].ToString());}
More About: Create
Using wild cards while searching...
2007-05-24 09:52:00
After surfing for hours and reading a lot i found out how to use wildcards in SQL using c# 2005.The basic idea is to use % ( percent sign ) as a wild card which is similar to * (as in DOS).The % returns all values that fit the criteria.e.g. if we write '%a' it returns all values starting from the alphabet a. Similarly, if we write '%a%'- returns all the values which contain the alphabet a. But the question is how to use wildcards as parameters in sql statements in c# 2005.public static DataSet search(string name) { string conString = "Data Source=XPSSQLExpress;Initial Catalog= AddressBook;Integrated Security= True;"; SqlConnection con = new SqlConnection(conString); con.Open(); string query = "SELECT FirstName,Phone,Mobile FROM Contacts WHERE FirstName LIKE @Name"; SqlDataAdapter sda = new SqlDataAdapter(query, con);//the parameter value is cancatenated with % sda.SelectCommand.Parameters.AddWithValue ("@Name", "%" + name + "%...
More About: Wild , Archi , Searching , Cards , While
Yahoo Smiley!
2007-05-24 09:52:00
Just a simple application for Yahoo hidden emoticons,features:always on topcopy to clipboardsmiley buttonsScreen shots:|Download Here|
More About: Yahoo! , Miley , Smiley
Rss Reader Revised
2007-05-24 09:51:00
i have added the Get URL from clipboard feature, this feature allows you to just copy the url from any website and then u need to click the "Get URL from clipboard" button....not a big feature, but definitely makes copy paste easy!download it here
More About: Reader , Vise
Rss Reader Revised
2007-05-24 09:51:00
My Rss Reader now includes an embedded web control, it reduces the burden of reading the feed in other IE window.I have used the URI class, it took some time to generate the URI out of string, if u have the same problem the solution is simple:download the project here.e.g if u some uri in a Link Text box(actually a string) u want to convert it into URIgo on as follows:private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e){Uri temp = new Uri(e.Link.LinkData.ToString());webBrowse r1.Url = temp;}
More About: Vise
DataSet vs. DataReader
2007-05-24 09:51:00
DataSet vs. DataReader To determine whether to use the DataSet or the DataReader when you design your application, consider the level of functionality that is needed in the application.Use the DataSet in order to do the following with your application:Navigate between multiple discrete tables of results.Manipulate data from multiple sources (for example, a mixture of data from more than one database, from an XML file, and from a spreadsheet).Exchange data between tiers or using an XML Web service. Unlike the DataReader, the DataSet can be passed to a remote client.Reuse the same set of rows to achieve a performance gain by caching them (such as for sorting, searching, or filtering the data).Perform a large amount of processing per row. Extended processing on each row returned using a DataReader ties up the connection serving the DataReader longer than necessary, impacting performance.Manipulate data using XML operations such as Extensible Stylesheet Language Transformations (XSLT tra...
More About: Area
Microsoft Pre-release Software Visual Studio Code Name "Orcas" - March 2007
2007-05-24 09:50:00
Here we go, with the release of Vista, MS released the beta Orcas ...enabling developers to lay down their hands on vista environment. The new visual studio beta has been released and is availabe for download...but if you are not ready for it now i suggest its better to stick to 2005 and learn it as much as possible so as to quickly understand some new and existing concepts!Anywz if u are interested with Orcas you can download it from MS website.or click here
More About: Software , Microsoft , Visual Studio , Visual
Naming Guidelines!!???
2007-05-24 09:50:00
Proper naming convention is a good programming pratice for efficiency and easy reading.I was wondering how many of us know the exact guidelines. While surfing Microsoft's Naming guidelines i cleared all of doubts regarding member naming, method n all...You can check it out herei love pascal case!
More About: Guidelines , Line , Lines , Guideline , Ming
Rss Reader Revised
2007-05-24 09:49:00
Programmed the new version of the RSS Reader ...it includes simple features like...saves the last RSS URL visited.stores the title/description/link for each feed.provides a simple UI.uses a local cache mechanism allowing faster feed retrieval.Feel free to write commentsDownload here
More About: Vise
Saving dataset into XML & XML into dataset
2007-05-24 09:49:00
This post will describe how to save the dataset into a xml document and then use the xml to load a grid control.Im using DirectoryInfo class to get some info about my current file system.Inorder to use this namespace write: using System.IO;//instantiate an object di and hardcoding the value c://inorder to use the not as an esacape sequence use double ()//alternatively u can write (@"c:")DirectoryInfo di = new DirectoryInfo("c:");DataTable dt = new DataTable();//Instantiate a table.DataRow dr;//Delcare a new datarow, without instantitating it, since we are //going to assign it soon.//add a coloumn filename of type stringdt.Columns.Add("fileName", typeof(System.String));//add another coloumn Size of type int.dt.Columns.Add("Size", typeof(System.Int64));//now for each entry of the fileinfo add the values to the rowsforeach (FileInfo f1 in di.GetFiles()){dr = dt.NewRow();dr[0] = f1.Name;dr[1] = f1.Length;//add the row to the tabledt.Rows.Add(dr);}//Instantiate an object writer ...
More About: Saving , Ving
More articles from this author:
1, 2, 3, 4
51420 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2008 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker