Apr
9
Chiamare un costruttore da un altro costruttore
Filed Under C# | Leave a Comment
public FormNewArticolo(string id):this()
{
//blabla
}
public FormNewArticolo()
{
[...]
Apr
6
Andale Mono e Consolas download
Filed Under C#, Tips&Tricks | Leave a Comment
Since it took me a while to find these 2 fonts (which are very useful for coding), i’ve uploaded them both to rapidshare mirror.
Link: http://rapidshare.com/files/24663204/DevFonts.rar
Apr
6
Use ListView Groups
Filed Under C# | Leave a Comment
How To Group ListView Items
listView1.Groups.Add(new ListViewGroup(”List item text”,HorizontalAlignment.Left));
listView1.Groups.Add(new ListViewGroup(”Bla”, HorizontalAlignment.Left));
listView1.Groups[1].
[...]
Jan
5
Convertire i bytes in kb,mb,gb
Filed Under C# | Leave a Comment
Piccola funzioncina x conversione dei byte che mi sono dovuto fare per 1 progetto.
Funziona solo fino ai giga, per i terra aggiungete un paio di linee
public string convertByteInOther(string stBytes)
{
string ris=”";
[...]
Jan
5
Analogo di explode in c#
Filed Under C# | Leave a Comment
public WebPageInterrogater(string url, string sFilters)
{
_url = url;
string[] filters = sFilters.Split(’;');
string pattern = string.Empty;
for (int i = 0; i < filters.Length; i++ )
{
pattern = "\\" + filters[i].Replace("*",string.Empty) + [...]
Jan
4
Conversione da System.byte[] in string
….
FbCommand cmd = new FbCommand(”select * from articoli order by nome asc”, db.GetConnection());
FbDataReader dr = cmd.ExecuteReader();
if (!dr.HasRows)
[...]