Willkommen auf myCSharp.de! Anmelden | kostenlos registrieren
 | Suche | FAQ

Hauptmenü
myCSharp.de
» Startseite
» Forum
» Suche
» Regeln
» Wie poste ich richtig?

Mitglieder
» Liste / Suche
» Wer ist online?

Ressourcen
» FAQ
» Artikel
» C#-Snippets
» Jobbörse
» Microsoft Docs

Team
» Kontakt
» Cookies
» Spenden
» Datenschutz
» Impressum

  • »
  • Portal
  • |
  • Mitglieder
Beiträge von JDizzle
Thema: NotSupportedException bei WinForm
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

ok hab den Fehler gefunden. Das Compact Framework erlaubt nur 50 Radiobuttons. 8o

Und anstatt, dass da eine gescheite Meldung kommt, muss ich mich damit rumquälen.......hach ich liebe das CF einfach

Thema: NotSupportedException bei WinForm
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

ich hab den Code auch mal in eine neue SmartDeviceApplication kopiert und ein paar Sachen rauskommentiert, aber der Fehler kommt trotzdem, beim abschließenden } von public Form1()

Thema: NotSupportedException bei WinForm
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Sorry wegen dem Code. Wegen der wirren Fehlermeldung, hatte ich keinen Plan was evtl wichtig sein könnte.

der Fehler tritt auf, wenn er versucht die Form mit Application.Run zu starten, dann verweist er auf die geschweifte Klammer, die public Form1() schließt.

Ich hätte gedacht, der Fehler liegt irgendwo im InitializeComponent, aber bis zu dem Code, kommt er beim Debuggen erst gar nicht.

Thema: NotSupportedException bei WinForm
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

public class Form1 : System.Windows.Forms.Form
	{
		public Form1()
		{
			//
			// Erforderlich für die Windows Form-Designerunterstützung
			
				InitializeComponent();
			

			//
			// TODO: Konstruktorcode hinter dem InitializeComponent-Aufruf hinzufügen
			//
		}
		/// <summary>
		/// Verwendete Ressourcen bereinigen.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}
		#region Vom Windows Form-Designer generierter Code
		/// <summary>
		/// Erforderliche Methode für die Designerunterstützung. 
		/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
		/// </summary>
		private void InitializeComponent()
		{
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.txtVerdacht = new System.Windows.Forms.TextBox();
			this.txtAdresse = new System.Windows.Forms.TextBox();
			this.btnbestätigen_tab1 = new System.Windows.Forms.Button();
			this.btnalarmieren_tab1 = new System.Windows.Forms.Button();
			this.btnabbrechen_tab1 = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.tabPage5 = new System.Windows.Forms.TabPage();
			this.button1 = new System.Windows.Forms.Button();
			this.Knappschaft = new System.Windows.Forms.CheckBox();
			this.AEV = new System.Windows.Forms.CheckBox();
			this.VdAK = new System.Windows.Forms.CheckBox();
			this.BKK = new System.Windows.Forms.CheckBox();
			this.IKK = new System.Windows.Forms.CheckBox();
			this.LKK = new System.Windows.Forms.CheckBox();
			this.AOK = new System.Windows.Forms.CheckBox();
			this.Versnr = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.Ort = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.PLZ = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.Strasse = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.Vorname = new System.Windows.Forms.TextBox();
			this.Name = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.Geburtsdatum = new System.Windows.Forms.TextBox();
			this.w = new System.Windows.Forms.CheckBox();
			this.m = new System.Windows.Forms.CheckBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.tabPage6 = new System.Windows.Forms.TabPage();
			this.button3 = new System.Windows.Forms.Button();
			this.textBox_KreislaufMaßnahmen = new System.Windows.Forms.TextBox();
			this.groupBox_KreislaufMaßnahmen = new OpenNETCF.Windows.Forms.GroupBox();
			this.rErstdefibrillation = new System.Windows.Forms.RadioButton();
			this.rHerzdruckmassage = new System.Windows.Forms.RadioButton();
			this.rInfusion = new System.Windows.Forms.RadioButton();
			this.rvenoeserZugang = new System.Windows.Forms.RadioButton();
			this.rEKGMonitoring = new System.Windows.Forms.RadioButton();
			this.groupBox_AtmungMaßnahme = new OpenNETCF.Windows.Forms.GroupBox();
			this.rAtemwegefreimachen = new System.Windows.Forms.RadioButton();
			this.rBeatmung = new System.Windows.Forms.RadioButton();
			this.rIntubation = new System.Windows.Forms.RadioButton();
			this.rSauerstoffgabe = new System.Windows.Forms.RadioButton();
			this.groupBox_allgemein = new OpenNETCF.Windows.Forms.GroupBox();
			this.rkeineallgemein = new System.Windows.Forms.RadioButton();
			this.rsonstigeallgemein = new System.Windows.Forms.RadioButton();
			this.rMedikamente = new System.Windows.Forms.RadioButton();
			this.groupBox_Wundversorgung = new OpenNETCF.Windows.Forms.GroupBox();
			this.rWundversorgung = new System.Windows.Forms.RadioButton();
			this.rVakuummatratze = new System.Windows.Forms.RadioButton();
			this.rExtremitaetschienung = new System.Windows.Forms.RadioButton();
			this.rHWSStutzkragen = new System.Windows.Forms.RadioButton();
			this.groupBox_Lagerung = new OpenNETCF.Windows.Forms.GroupBox();
			this.rstabileSeitenlage = new System.Windows.Forms.RadioButton();
			this.rSchocklagerung = new System.Windows.Forms.RadioButton();
			this.rOberkoerperhochlage = new System.Windows.Forms.RadioButton();
			this.rFlachlagerung = new System.Windows.Forms.RadioButton();
			this.tabPage8 = new System.Windows.Forms.TabPage();
			this.groupBox_Uebergabe_tab7 = new OpenNETCF.Windows.Forms.GroupBox();
			this.rTod = new System.Windows.Forms.RadioButton();
			this.rNAabbestellt = new System.Windows.Forms.RadioButton();
			this.rNAnachgefordert = new System.Windows.Forms.RadioButton();
			this.rZverschlechtert = new System.Windows.Forms.RadioButton();
			this.rZunveraendert = new System.Windows.Forms.RadioButton();
			this.rZverbessert = new System.Windows.Forms.RadioButton();
			this.label17 = new System.Windows.Forms.Label();
			this.groupBox_Ersthelferma_tab7 = new OpenNETCF.Windows.Forms.GroupBox();
			this.rkeine_Ersthelferm = new System.Windows.Forms.RadioButton();
			this.rinsuffizient = new System.Windows.Forms.RadioButton();
			this.rsuffizient = new System.Windows.Forms.RadioButton();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.btnthw_tab2 = new System.Windows.Forms.Button();
			this.btnpolizei_tab2 = new System.Windows.Forms.Button();
			this.btnffw_tab2 = new System.Windows.Forms.Button();
			this.btnrtw_tab2 = new System.Windows.Forms.Button();
			this.btnnotarzt_tab2 = new System.Windows.Forms.Button();
			this.label11 = new System.Windows.Forms.Label();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.tabControl2 = new System.Windows.Forms.TabControl();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.groupBox_Schmerzen = new OpenNETCF.Windows.Forms.GroupBox();
			this.rstarkSchmerzen = new System.Windows.Forms.RadioButton();
			this.rmittelSchmerzen = new System.Windows.Forms.RadioButton();
			this.rkeineSchmerzen = new System.Windows.Forms.RadioButton();
			this.groupBox_EKG = new OpenNETCF.Windows.Forms.GroupBox();
			this.rAsystolie = new System.Windows.Forms.RadioButton();
			this.rKammerflimmern = new System.Windows.Forms.RadioButton();
			this.rRhythmusstoerung = new System.Windows.Forms.RadioButton();
			this.rSinusrhythmus = new System.Windows.Forms.RadioButton();
			this.groupBox_Pupillenfunktion = new OpenNETCF.Windows.Forms.GroupBox();
			this.label15 = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.groupBox_Pupillenfunktion_rechts = new OpenNETCF.Windows.Forms.GroupBox();
			this.r_r_entrund = new System.Windows.Forms.RadioButton();
			this.r_r_weit = new System.Windows.Forms.RadioButton();
			this.r_r_mittel = new System.Windows.Forms.RadioButton();
			this.r_r_eng = new System.Windows.Forms.RadioButton();
			this.groupBox_Pupillenfunktion_links = new OpenNETCF.Windows.Forms.GroupBox();
			this.r_l_entrund = new System.Windows.Forms.RadioButton();
			this.r_l_weit = new System.Windows.Forms.RadioButton();
			this.r_l_mittel = new System.Windows.Forms.RadioButton();
			this.r_l_eng = new System.Windows.Forms.RadioButton();
			this.groupBox_Bewusstseinslage = new OpenNETCF.Windows.Forms.GroupBox();
			this.rbewusstlos = new System.Windows.Forms.RadioButton();
			this.rgetrübt = new System.Windows.Forms.RadioButton();
			this.rorientiert = new System.Windows.Forms.RadioButton();
			this.groupBox_Atmung = new OpenNETCF.Windows.Forms.GroupBox();
			this.rAtemstillstand = new System.Windows.Forms.RadioButton();
			this.rHyperventilation = new System.Windows.Forms.RadioButton();
			this.rAtemnot = new System.Windows.Forms.RadioButton();
			this.rspontan = new System.Windows.Forms.RadioButton();
			this.groupBox_Kreislauf = new OpenNETCF.Windows.Forms.GroupBox();
			this.rPulsunregelm = new System.Windows.Forms.RadioButton();
			this.rPulsregelm = new System.Windows.Forms.RadioButton();
			this.rKreislaufstillstand = new System.Windows.Forms.RadioButton();
			this.rSchock = new System.Windows.Forms.RadioButton();
			this.tabPage10 = new System.Windows.Forms.TabPage();
			this.txtBZ3 = new System.Windows.Forms.TextBox();
			this.txtBZ2 = new System.Windows.Forms.TextBox();
			this.txtBZ1 = new System.Windows.Forms.TextBox();
			this.txtSpO23 = new System.Windows.Forms.TextBox();
			this.txtSpO22 = new System.Windows.Forms.TextBox();
			this.txtSpO21 = new System.Windows.Forms.TextBox();
			this.txtAF3 = new System.Windows.Forms.TextBox();
			this.txtAF2 = new System.Windows.Forms.TextBox();
			this.txtAF1 = new System.Windows.Forms.TextBox();
			this.txtPuls3 = new System.Windows.Forms.TextBox();
			this.txtPuls2 = new System.Windows.Forms.TextBox();
			this.txtPuls1 = new System.Windows.Forms.TextBox();
			this.txtRRdiast3 = new System.Windows.Forms.TextBox();
			this.txtRRdiast2 = new System.Windows.Forms.TextBox();
			this.txtRRdiast1 = new System.Windows.Forms.TextBox();
			this.txtRRsyst3 = new System.Windows.Forms.TextBox();
			this.txtRRsyst2 = new System.Windows.Forms.TextBox();
			this.txtRRsyst1 = new System.Windows.Forms.TextBox();
			this.label25 = new System.Windows.Forms.Label();
			this.label24 = new System.Windows.Forms.Label();
			this.label23 = new System.Windows.Forms.Label();
			this.label22 = new System.Windows.Forms.Label();
			this.label21 = new System.Windows.Forms.Label();
			this.label20 = new System.Windows.Forms.Label();
			this.label19 = new System.Windows.Forms.Label();
			this.label18 = new System.Windows.Forms.Label();
			this.tabPage11 = new System.Windows.Forms.TabPage();
			this.button2 = new System.Windows.Forms.Button();
			this.checksonstige = new System.Windows.Forms.CheckBox();
			this.checkPsychatrie = new System.Windows.Forms.CheckBox();
			this.checkNeurologie = new System.Windows.Forms.CheckBox();
			this.checkPaediatrie = new System.Windows.Forms.CheckBox();
			this.checkGeburtshilfe = new System.Windows.Forms.CheckBox();
			this.checkGynaekologie = new System.Windows.Forms.CheckBox();
			this.checkHypothermie = new System.Windows.Forms.CheckBox();
			this.checkIntoxikation = new System.Windows.Forms.CheckBox();
			this.checkStoffwechsel = new System.Windows.Forms.CheckBox();
			this.checkAbdomen = new System.Windows.Forms.CheckBox();
			this.checkKreislauf = new System.Windows.Forms.CheckBox();
			this.checkAtmung = new System.Windows.Forms.CheckBox();
			this.tabPage7 = new System.Windows.Forms.TabPage();
			this.txtsonstige_Krankenhaus = new System.Windows.Forms.TextBox();
			this.rsonstige_Krankenhaus = new System.Windows.Forms.RadioButton();
			this.rBGLudwigshafen = new System.Windows.Forms.RadioButton();
			this.rKopfklinik = new System.Windows.Forms.RadioButton();
			this.rHeiligGeistHospital = new System.Windows.Forms.RadioButton();
			this.rKreiskrankenhaus = new System.Windows.Forms.RadioButton();
			this.rElisabethenstift = new System.Windows.Forms.RadioButton();
			this.label16 = new System.Windows.Forms.Label();
			this.tabPage9 = new System.Windows.Forms.TabPage();
			this.btnAnkunft_tab8 = new System.Windows.Forms.Button();
			this.label26 = new System.Windows.Forms.Label();
			// 
			// Form1
			// 
			this.Controls.Add(this.tabControl1);
			this.Menu = this.mainMenu1;
			this.MinimizeBox = false;
			this.Text = "ResCom";
			this.Load += new System.EventHandler(this.Form1_Load);

		}
		#endregion

		/// <summary>
		/// Der Haupteinstiegspunkt für die Anwendung.
		/// </summary>

		static void Main() 
		{
			
				Application.Run(new Form1());
			
		}
 

Das ist der Code bis zur zweiten Stelle, wo die Exception geworfen wird.

Die Fehlermeldung lautet: Eine nicht behandelte Ausnahme des Typs 'System.NotSupportedException' ist in SmartDeviceApplication7.exe aufgetreten.

ist halt nicht so wirklich aussagekräftig...

Thema: NotSupportedException bei WinForm
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Hi,

ich hab einen sehr seltsamen Fehler in meiner Applikation. Wenn ich sie erstelle kommt kein Fehler, aber sobald ich sie starte krieg ich eine NotSupportedException bei meiner Form1.

Der Fehler kommt wenn eine Methode nicht unterstützt wird. Aber wie kanns denn sein, dass so elementare Methoden, wie initializeComponent oder Application.Run auf einmal nicht mehr unterstützt werden??

Thema: Werte aus "Stream"-Array auslesen
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Tausend Dank.

Das rettet mir meinen Arsch

Thema: Werte aus "Stream"-Array auslesen
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Je mehr ich andere Möglichkeiten zur Übertragung ausprobiere, desto öfter scheitere ich. Im Compact Framework gibts so ziemlich keine Serialisierungsmethoden, weder BinaryFormatter noch XmlSerializer. X(

Thema: Werte aus "Stream"-Array auslesen
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Hi,

ich hab eine Socketverbindung zwischen einem PDA und einem Server. Hier will ich ein Objekt übertragen. Momentan mach ich das so, dass ich die Werte des Objekts in einen Memorystream packe, aus diesem dann mit ToArray() ein ByteArray erstelle und dieses ByteArray verschicke ich dann. Es kommt auch beim Server an.

Mein Problem ist jetzt, wie ich die Daten aus dem Array wieder rausbekomme, da der Stream das ohne Positionierung in den Array schreibt.

Hab mal testweise versucht die ByteLänge von einem der umgewandelten Werte auszulesen und aus dem Stream einen Bytestring dieser Länge rauszuholen. Aber da kommt nix bei raus.

Hoffe jemand kann mir helfen.

Thema: TcpClient bringt WindowsForm zum Absturz
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

wegen Threads weiß ich jetzt gar nicht. Hab mich beim TcpClient/Listener an die Vorgaben aus der MSDN gehalten

TcpClient
TcpListener

brauch ich für Web-Services nicht einen Webserver?

Thema: TcpClient bringt WindowsForm zum Absturz
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Hi,

folgendes Problem. Ich hab möchte eine Tcp-Verbindung zwischen einem Server und einem mobilen Client herstellen.

Gut, Remoting fällt beim mobilen Client leider weg. (Es sei denn irgendwer hat mittlerweile eine Lösung gefunden, wie man Remoting mit dem CompactFramework realisieren kann^^).
Jetzt wollte ich das entweder über TcpClient realisieren (wäre mir persönlich lieber, weil einfacher) oder über Sockets.

Wenn ich das Ganze als 2 Konsolenanwendungen(eine für Server, eine für Client) laufen lasse, funktionierts prima. Aber sobald ich das in eine Windowsform packe stürzt der immer ab. Das einzige was ich ändere ist, dass die Ausgabe nicht mehr auf der Console stattfindet, sondern in einer Textbox. Aber daran kanns wohl kaum liegen.

Ich krieg blöderweise auch keine Fehlermeldung. Form stürzt einfach sang- und klanglos ab. X(

Thema: Networkstream deserialisieren
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Fehlermeldung lautet:

Keine Überladung für die Methode 'Deserialize' erfordert '1' Argumente

Also das normale wenn ich keinen oder einen falschen Parameter angegeben habe.
Der will halt partout nur einen XmlTextReader als Parameter akzeptieren.

Thema: Networkstream deserialisieren
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Hi,

ich hab folgendes Problem. Ich hab eine SmartDevice Anwendung und möchte da, zwecks Datenübertragung per Networkstream, ein Objekt deserialisieren.

Ich kann den Stream zwar per XmlSerializer serialisieren. Aber wenn ich ihn deserialisieren will, bekomme ich die Option gar nicht. Der will dann immer einen XmlTextReader haben.

Laut MSDN müsste man für XmlSerializer.Deserialize auch einen Stream als Parameter angeben können, aber das geht einfach nicht.

Gibts irgendwie eine Möglichkeit meinen Stream in den XmlTextReader zu packen oder meinen Stream anderweitig zu deserialisieren??

Thema: Objektinstanzen per Remoting "verschicken"
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Das is genau das was ich gesucht hab. Danke

Thema: Objektinstanzen per Remoting "verschicken"
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Ok erstmal vielen Dank für eure Antworten. Haben mir als C#-Noob aber nicht wirklich weitergeholfen. Mir ist schon klar, wie ich auf Methoden des Objektes zugreifen kann, aber ich will ja auf Variablenwerte zugreifen.

Ok ich probiers mal beispielhaft zu veranschaulichen.


public class Mensch : MarshalByRefObject 
{
    public string Name;
}

So dann instanziiere ich auf meinem Server ein Objekt vom Typ Mensch und definiere die Variable Name als "Peter".

Wie kann ich dann auf das instanziierte Objekt, wo die Variable schon gefüllt ist, zugreifen. Wenn ich normal ein Objekt fürs Remoting registriere, dann immer nur die Klasse, aber nie eine Instanz.

Thema: Objektinstanzen per Remoting "verschicken"
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

Hi,

mein Problem ist folgendes: Ich möchte eine Instanz eines Objektes mit einem Client von einem Server abrufen. Ich habe die Klasse aus der das Objekt instanziiert werden soll, in einer DLL Datei und jeweils eine WinForm für Client und Server.

Ich möchte, dass ich auf dem Server eine Instanz dieses Objekts erstelle, dieses mit Werten fülle und dann vom Client auf genau diese Instanz zugreife.

Alle Sachen über Remoting, die ich bis jetzt gefunden hab, waren genauso aufgebaut. Allerdings wurde da immer nur vom Client auf die Klasse zugegriffen, aber nicht auf eine extra Objektinstanz.

Ich hab hier im Forum auch schon ne Menge über Remoting gelesen, aber nichts, was mein Problem löst. Vielleicht bin ich ja auch einfach nur zu blöd, die Sachen zu kapieren. In dem Fall wär ich sehr erfreut, wenn mich jemand direkt mit der Nase draufstoßen würde