blog content

Arbeiten mit Newsfeeds (C#)

clock October 3, 2009 18:05 by author marc

Für meine neue Frontseite von marcduerst.com habe ich etwas mit den .Net System Libraries für Syndication gearbeitet. Dabei habe ich einerseits gesehen, wie einfach das Syndicytion-API sowie der XML-API sein kann. In diesem Artikel sind einige Beispiele zu finden.

More...


Übersicht über die vordefinierten .Net Systemfarben

clock August 20, 2009 07:26 by author marc

Ich stand einmal mehr vor der Frage, welche der vordefinierten Systemfarben von .Net ich wohl wählen soll. Anstatt a) die Namen auswendig zu lernen oder b) in einem Property-Inspector diese nachzuschlagen, habe ich in Google folgende Seite gefunden. Netterweise zeigt die Seite sowohl Hinter- wie auch Vordergrund-Previews aller vordefinierten Farben gruppiert nach Bereich an:
http://www.blizzardskies.com/bz/colorchart.html



InnoSetup: Check for .Net 3.5

clock June 2, 2008 13:01 by author marc

After some time away from InnoSetup I'm back on that tool again to build some fairly complex Installers. Most of them need to check if .Net Version 3.5 is installed on the workstation the Software is installed. If .Net 3.5 is not yet installed the Installer should show a message box to the user right at the beginning and asking if he wants to download .Net 3.5 right now. If the user clicks "Yes" the Microsoft Download-Page will be shown otherwise the Installed will be canceled.

More...


ASP.Net Client-side disabling of Buttons

clock February 17, 2008 12:07 by author marc

In Webapps I often ran into the problem that users clicked a submit button more then once. This was because the user did not get immediately feedback like he does in fat-client applications. To reduce these situations I was looking for some code to disable a ASP.Net button right after the user clicked on it. I found some snippets on the web built a little helper-class to reuse this code and simplify its usage.

More...


How to use TServiceManager to manage Windows services

clock October 27, 2006 11:52 by author marc

How to use the TServiceManager Frederik and myself wrote? That's what I got asked a couple of time so post here kind of a how-to.

More...



Wait-Cursor

clock October 26, 2006 13:16 by author marc

Wer kennt es in der UI-Programmierung nicht: immer wieder den selben Programmcode für die Sanduhr! Hier soll eine handliche Lösung aufgezeigt werden wie man die Sanduhr mit wenigen Zeilen in eigenen Programme einbinden kann.

More...


Conditional defines

clock August 8, 2006 13:21 by author marc

Habe "rausgefunden" wie man in C# die ganzen Compiler-Anweisungen im eigenen Code verwenden kann. Wichtig dabei ist, das die Anweisungen mit dem Kreuz "#" prefixt werden.

More...


Komponenten in C#

clock May 22, 2006 13:24 by author marc

Um Komponenten und Properties in Visual Studio im Designer nutzen zu können, muss man diese mit entsprechenden Attributen versehen. Im folgenden einige Attribute für design-time Komponenten unter C#:

More...


Randomly executed INITIALIZATION blocks

clock March 25, 2004 18:11 by author marc

Sometimes it can happen that Delphi executes the initialization block in a "wrong" order. This means that they are not executed in the order as expected from the uses clause.

This happen if no full build is done. If Delphi doesn't need to compile a unit (.dcu) it will not update the order of initialization execution.

To get around this you should do the following:

  1. Try to make initialization blocks not dependant on others.
  2. Do a full build ("Build all") to make sure the order gets linked correctly.

Btw: This problem does not only happen in Delphi but in C/C++ as well and has to do with compiler optimizations to get faster turn around time when compiling.



Collections - Listen mit Designtime-Support

clock July 15, 2003 19:17 by author marc

Was sind Collections?

Nun, alle von Euch haben schon Collections verwendet - vermutlich ohne es zu wissen :) Jedes Property im Object Inspector, welches bei einem Doppelklick darauf eine Liste ffnet, in welcher man Elemente editieren kann, ist eine Ableitung von TCollection. z.B. Spalendefintion der Gride, Felderdefinitionen von TTable, Listview-Columns etc.

Collections kann man am ehesten mit TList bzw. TObjectList vergleichen. Es handelt sich um eine Liste, welche als Eintrge weitere Klassen verwendet. Ein Collection-Item kann auch wieder beliebig viele Subcollections haben, was das ganze definitiv unübersichtlich macht ;-)

"Für was brauch ich Collections, wenn ich doch schon Listen habe?", fragt Ihr Euch vielleicht. Nun, der Gag an den Collections ist, dass sie Component-Streaming unterstützen, was heisst, dass Ihr vollen Designtime-Support darin habt. Die Collection kümmert sich entsprechend um das Speichern und Laden der Collection-Items ohne, das Ihr nur eine Zeile Load-/Save-Code schreiben müsst. Ist doch noch ganz handlich, nicht? :) Am meisten werden Collections entsprechend fr Komponenten gebraucht.

More...



Blog Navigation

Neuste Kommentare

Comment RSS