Autor Beitrag
Peter1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60



BeitragVerfasst: Mo 12.01.15 17:29 
Hallo,

im Werkzeugkasten in Windows-Forms wird das Element "Serial Port" angezeigt.
In WPF aber nicht. Wie kann ich in WPF auf den Seriellen Port zugreifen?

THX
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Mo 12.01.15 17:45 
Mit der gleichen Klasse. Einfach im Code erzeugen und passend einstellen (ich käme auch in Winforms nie auf die Idee diese Klasse auf die Form zu werfen die hat null Zusammenhang zur UI).

Für diesen Beitrag haben gedankt: Peter1000
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mo 12.01.15 17:46 
Hallo,

die Klasse SerialPort steht auch in WPF zur Verfügung (allerdings nicht in der ToolBox): Serial Communication using WPF, RS232 and PIC Communication.

Für diesen Beitrag haben gedankt: Peter1000
Peter1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60



BeitragVerfasst: Do 15.01.15 12:42 
Danke hat funktioniert und ist auch besser das nicht mit der UI zu verbinden.