DevExpress에서 프로그램을 작성하고 있는데 문제가 발생했습니다. 조건이 설정되면 하나의 타일을 표시하고 싶습니다.이 경우 특정 값을 입력하십시오. 사용자가 입력하면 원하는 창으로 이동합니다. 그렇지 않으면 주 양식으로 돌아 가야합니다.조건이 설정되지 않은 경우 MainForm으로 돌아갑니다.
조건이 설정되지 않은 경우 프로그램이 주 양식으로 이동하는 문제가 발생합니다. 시도 할 때마다 프로그램이 중단됩니다.
도와주세요. 감사! 내가 제대로 이해하면
Private Sub windowsUIView1_QueryControl(sender As Object, e As QueryControlEventArgs) Handles windowsUIView1.QueryControl
....
ElseIf e.Document Is Document9 Then
Dim cuentaInicial = InputBox("Por favor introduzca la cuenta inicial del día", "Inicial")
If cuentaInicial = "" Then
MsgBox("Por favor introduzca un valor inicial", vbCritical, "Error")
Me.Refresh()' <-- Problem here
Exit Sub
End If
Try
Dim inicial As Double = Double.Parse(cuentaInicial)
e.Control = New Caja
Catch ex As Exception
MsgBox(cuentaInicial & ": No es el formato correcto. Favor de verificar", vbCritical, "Error")
Me.Refresh() '<-- problem here
End Try
End If
End Sub
및 그것은 매력처럼 일했습니다. 감사! –