Autor Beitrag
01Detlef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 85



BeitragVerfasst: Sa 09.11.02 15:53 
hallo,

ich wollte ein wenig mit der radiogroup-Komponente programmieren und dazu habe ich eine Frage, wie kann ich das programmieren, dass eine showmessage erscheint, wenn z.B der zweite Button makiert wird?

Irgendwie mit IF und THEN?

IF Radiobutton=??? THEN
showmessage('...');


Danke Detlef
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 09.11.02 16:06 
Hi!

Mit IF-THEN-ELSE ist schon richtig. Welcher Punkt gerade markiert ist, rufst Du über die Eigenschaft RadioGroup1.Itemindexab.

MfG,
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 09.11.02 16:43 
Ja, wobei du bei ItemIndex beachtem musst, das 0 dem 1. Button entspricht und 1 dem 2. usw.
Sonst müsste es so gehen.