Objo.
Feedback Forum Docs Objo Studio
Feedback

Bug #295

GroupBox parent cast crashes in control event handler

Status
Fixed
Fixed in
v26.5.8
Source discussion
https://forum.objo.dev/d/219-runtime-error
Last updated
2026-06-01

Public summary

Casting a nested control's Parent to GroupBox inside a desktop control event handler can crash at runtime. In a window with a GroupBox containing a Button, code such as Var c As GroupBox = GroupBox(Me.Parent) in Button1.Pressed reports Expected 0 arguments but got 1 instead of treating GroupBox(...) as a cast.

Expected behaviour: TypeName(expr) with one argument should be compiled as a cast for desktop control types, so GroupBox(Me.Parent) should return the parent group box when the runtime value is compatible.

Objo.

Build apps visually, deploy anywhere.

Feedback is a public read-only status mirror for Objo Studio.