Autor Beitrag
JoKaBo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 19:27 
Ich brauche Für mein Programm in einer MassageBox
Einen MonthKalender Und wenn ich auf ein datum drüke und Ok drüke Wird das in der richttextBox Angezeigt


Moderiert von user profile iconKha: Topic aus Off Topic verschoben am Mi 22.12.2010 um 19:02
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 22.12.10 19:30 
Und was ist die Frage?
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 19:32 
Wie ich es mache
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 22.12.10 19:35 
Wie du es machst bzw. versuchst, weiß ich nicht.

Jedenfalls genügt es ein neues Fenster zu erstellen und die Komponente darauf zu packen wie du es möchtest. Dann brauchst du dieses Fenster nur noch anzuzeigen, wenn es angezeigt werden soll.
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Mi 22.12.10 19:36 
Ein bisschen viel wünsche aber keine Frage.
Aber weil bald Weinachten ist....
Ein Kalender gibt es in den Beispielen von Delphi. Eine MessageBox ruft man so auf, steht auch in der DH
ausblenden Delphi-Quelltext
1:
MessageBox('This should be on top.''Look', [smbOK]);					


Gruss ALf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 22.12.10 19:48 
Man sollte vielleicht dazu sagen, dass eine C#-Lösung gesucht wird. Oder das Thema in einer passenderen Sparte erstellen...

Die MessageBox kannst du mit MessageBox.Show("Hallo"); aufrufen. Der MonthCalendar befindet sich in der Toolbox unter "Allgemeine Steuerelemente". Auf das ausgewählte Datum kannst du mit monthCalendar1.SelectionStart zugreifen. Das sollte als Anhaltspunkt genügen.
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 19:53 
Alf in C# bitte

Und jaenicke
wie mache ich das mit einer andern Form Gut die Form gestalten
aber wie ist der Code weil mit einen MothKalender Kenne ich mich nicht aus und und wie mache ich das das der Text dann auf einer anderen Form ist???

ich habe ja schon Probirt

Zitat:

this.Richttextbox1.text = this.MonthKalender.Text();


Aber der monthkalender kann kein text an Geben
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Mi 22.12.10 19:58 
user profile iconJoKaBo hat folgendes geschrieben Zum zitierten Posting springen:
Alf in C# bitte

Bin leider kein Hellseher das Du in C# schreibst

Gruss ALf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 22.12.10 19:59 
user profile iconJoKaBo hat folgendes geschrieben Zum zitierten Posting springen:
ich habe ja schon Probirt

ausblenden C#-Quelltext
1:
this.Richttextbox1.text = this.MonthKalender.Text();					

Vor fünf Minuten habe ich dir geschrieben, wie man es richtig macht... Du musst nur noch rausfinden, wie man den Typ von der Eigenschaft SelectionStart in einen string umwandelt. Dafür dir sei ein Blick in ein Handbuch oder die Tastenkombination F1 ans Herz gelegt.
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 20:13 
Bei mir get das nicht mit F1
Und ich habe es schn mit Zahl,Datum Probirt aber das get nicht und ich weis nich wie ich das aus einer anderen form hole.

---Moderiert von user profile iconNarses: Beiträge zusammengefasst---

Ok das habe ich gefunden aber dan stet auch noch immer
"System.Windows.Forms.MonthCalendar, SelectionRange: Start:"
ich habe den string "ToString"
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 22.12.10 21:13 
Kannst du mal den Code zeigen, der zu dieser Ausgabe geführt hat?
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 21:14 
ausblenden C#-Quelltext
1:
this.rtfXML.Text = this.monthCalendar1.ToString();					


Moderiert von user profile iconNarses: Quote- durch C#-Tags ersetzt
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 22.12.10 21:17 
:roll:
user profile iconYogu hat folgendes geschrieben Zum zitierten Posting springen:
Du musst nur noch rausfinden, wie man den Typ von der Eigenschaft SelectionStart in einen string umwandelt.
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Mi 22.12.10 21:29 
Und wie mache ich das das genau das sein soll aber das ich das uber eine andere form mache
also Ich drüke auf einen Button dan Öffnet sich die form wen ich ein datum ausgewelt habe und ok drüke soll sich das Datum auf form1 in der RichttextBox erscheint
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 22.12.10 21:31 
Dafür kannst du in der Fensterklasse eine Eigenschaft zur Verfügung stellen, über die dann das aufrufende Fenster den Wert auslesen kann.
msdn.microsoft.com/d...fsa0sw(v=vs.80).aspx
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Do 23.12.10 19:21 
ich weis nicht warum aber des von diesem link geht nicht
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 23.12.10 19:54 
Was hast du versucht? Was passiert? :roll:
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Do 23.12.10 20:08 
ich habe den Code genommen Und eingefugt alle Nötigen sachen umbenant und wenn ich das Programm starte und nacher Beim MonthCalender Ok drüke schlißt es sich und nichts passirt
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 23.12.10 20:45 
Der verlinkte Artikel beschreibt, wie man Eigenschaften erstellt, nicht wie man einen Kalenderdialog umsetzt. Dein OK-Button muss etwas tun, wenn er angeklickt wird. Um zur Methode zu gelangen, die dann ausgeführt wird, wenn der Button angeklickt wird, doppelklickst du ihn einfach im Designer. Dort muss jetzt der ausgewählte Tag in die RichText-Komponente übernommen werden.
JoKaBo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157



BeitragVerfasst: Do 23.12.10 20:51 
Also ich weiß und ich finde auch nichts wie ich das datum auf eine anderen form bekomme

wen es auf einer form ist kann ich es ja baer nicht Über marere formen
Zitat:
this.rtfXML.Text = this.monthCalendar1.ToString();


wen es zu komplizirt ist dann kuke ich mal in das buch was ich morgen zu weineachten bekommen rein