Hallo noise,
so vielleicht?
Spoiler anzeigen
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
;$Form1 = GUICreate("Form1", 507, 99, 382, 564)
$Form1 = GUICreate("Form1", 507, 99, 382, 56)
$Vk_eingabe_label = GUICtrlCreateLabel("VK ", 40, 16, 27, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Vk_eintrag = GUICtrlCreateInput("Vk_eintrag", 16, 40, 81, 21)
$Label1 = GUICtrlCreateLabel("Mwst. (19%)", 128, 16, 85, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Mwst = GUICtrlCreateInput("Input1", 128, 40, 89, 21, $ES_READONLY)
$Label2 = GUICtrlCreateLabel("Netto VK", 256, 16, 64, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$NettoVK = GUICtrlCreateInput("Input2", 256, 40, 81, 21, $ES_READONLY)
$Label3 = GUICtrlCreateLabel("Händel EK", 368, 16, 77, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$EK = GUICtrlCreateInput("Input3", 368, 40, 81, 21, $ES_READONLY)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Vk_eintrag
$eurVK = StringReplace(GUICtrlRead($Vk_eintrag),",",".")
$eurMwst = round($eurVK/119 * 19,2)
$eurNettoVK = round(($eurVK - $eurMwst),2)
$eurEK = round($eurNettoVK/1.15,2)
GUICtrlSetData($Mwst,StringReplace(StringFormat("%.2f €",$eurMwst),".",","))
GUICtrlSetData($NettoVK,StringReplace(StringFormat("%.2f €",$eurNettoVK),".",","))
GUICtrlSetData($EK,StringReplace(StringFormat("%.2f €",$eurEK),".",","))
GUICtrlSetData($Vk_eintrag,StringReplace(StringFormat("%.2f €",$eurVK),".",","))
MsgBox(0,"","was ist daran schwer???")
EndSwitch
WEnd
mfg autoBert