Jorge Olguin (super carnicerias hernandez sa de cv) asked a question.

Visual Designer won't create forms

I wonder what could have been wrong in my development project?

 

I made my first Design, an "ABL Dialog" in the Visual Designer tab in "File>New" .

 

THe problem is I tried to convert a radButton to a msButton , and changed class on button definitions parts, I knew I shouldn't edit manually certain areas of code, but in any case, I was trying to learn about forms.

 

As expected, I messed up form internals, I wasn't to much worried.

 

The problem came as: after that messing up, I can create new forms, ABL Form and ABL Dialog, but when opened in visual designer, it won't show them, designer canvas is empty, code is as follows:

  1. /*------------------------------------------------------------------------
  2. File : test
  3. Purpose :
  4. Syntax :
  5. Description :
  6. Author(s) : octavio
  7. Created : Mon Jun 15 16:41:06 CST 2026
  8. Notes :
  9. ----------------------------------------------------------------------*/
  10. USING Progress.Windows.Form.
  11. BLOCK-LEVEL ON ERROR UNDO, THROW.
  12. CLASS procs.suc.test INHERITS Form :
  13.  
  14. DEFINE PRIVATE VARIABLE components AS System.ComponentModel.IContainer NO-UNDO.
  15. DEFINE PRIVATE VARIABLE buttonOk AS System.Windows.Forms.Button NO-UNDO.
  16. DEFINE PRIVATE VARIABLE buttonCancel AS System.Windows.Forms.Button NO-UNDO.
  17. CONSTRUCTOR PUBLIC test( ):
  18. InitializeComponent ( ).
  19. THIS-OBJECT:ComponentsCollection:Add(THIS-OBJECT:components).
  20. CATCH e AS Progress.Lang.Error:
  21. UNDO, THROW e.
  22. END CATCH.
  23.  
  24. END CONSTRUCTOR.
  25.  
  26. DESTRUCTOR PUBLIC test( ):
  27.  
  28. END DESTRUCTOR.
  29.  
  30. METHOD PRIVATE VOID okButton_Click (sender AS System.Object, e AS System.EventArgs):
  31. THIS-OBJECT:DialogResult = System.Windows.Forms.DialogResult:Ok.
  32. THIS-OBJECT:Close ( ).
  33. END METHOD.
  34.  
  35. METHOD PRIVATE VOID cancelButton_Click (sender AS System.Object, e AS System.EventArgs):
  36. THIS-OBJECT:DialogResult = System.Windows.Forms.DialogResult:Cancel.
  37. THIS-OBJECT:Close ( ).
  38. END METHOD.
  39. METHOD PRIVATE VOID InitializeComponent ( ):
  40.  
  41. /* NOTE: The following method is automatically generated.
  42. We strongly suggest that the contents of this method only be modified using the
  43. Visual Designer to avoid any incompatible modifications.
  44. Modifying the contents of this method using a code editor will invalidate any support for this file. */
  45. buttonOk = NEW System.Windows.Forms.Button ( ).
  46. buttonCancel = NEW System.Windows.Forms.Button ( ).
  47. THIS-OBJECT:SuspendLayout ( ).
  48. /* */
  49. /* buttonOk */
  50. /* */
  51. buttonOk:Location = NEW System.Drawing.Point (121, 231).
  52. buttonOk:Name = "buttonOk".
  53. buttonOk:Size = NEW System.Drawing.Size (75, 23).
  54. buttonOk:TabIndex = 0.
  55. buttonOk:Text = "OK".
  56. buttonOk:Anchor = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.AnchorStyles:Bottom, System.Windows.Forms.AnchorStyles:Right), System.Windows.Forms.AnchorStyles).
  57. buttonOk:Click:Subscribe (okButton_Click).
  58. /* */
  59. /* buttonCancel */
  60. /* */
  61. buttonCancel:DialogResult = System.Windows.Forms.DialogResult:Cancel.
  62. buttonCancel:Location = NEW System.Drawing.Point (205, 231).
  63. buttonCancel:Name = "buttonCancel".
  64. buttonCancel:Size = NEW System.Drawing.Size (75, 23).
  65. buttonCancel:TabIndex = 1.
  66. buttonCancel:Text = "Cancel".
  67. buttonCancel:Anchor = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.AnchorStyles:Bottom, System.Windows.Forms.AnchorStyles:Right), System.Windows.Forms.AnchorStyles).
  68. buttonCancel:Click:Subscribe(cancelButton_Click).
  69. /* */
  70. /* THIS-OBJECT */
  71. /* */
  72. THIS-OBJECT:AcceptButton = buttonOk.
  73. THIS-OBJECT:CancelButton = buttonCancel.
  74. THIS-OBJECT:ClientSize = NEW System.Drawing.Size (294, 268).
  75. THIS-OBJECT:Controls:Add (buttonCancel).
  76. THIS-OBJECT:Controls:Add (buttonOk).
  77. THIS-OBJECT:FormBorderStyle = System.Windows.Forms.FormBorderStyle:FixedDialog.
  78. THIS-OBJECT:MaximizeBox = FALSE.
  79. THIS-OBJECT:MinimizeBox = FALSE.
  80. THIS-OBJECT:Name = "test".
  81. THIS-OBJECT:ShowInTaskbar = FALSE.
  82. THIS-OBJECT:StartPosition = System.Windows.Forms.FormStartPosition:CenterParent.
  83. THIS-OBJECT:Text = "test".
  84. THIS-OBJECT:ResumeLayout (FALSE).
  85. CATCH e AS Progress.Lang.Error:
  86. UNDO, THROW e.
  87. END CATCH.
  88. END METHOD.
  89. METHOD PUBLIC VOID ShowModalDialog( ):
  90. WAIT-FOR THIS-OBJECT:ShowDialog().
  91.  
  92. END METHOD.
  93.  
  94.  
  95. END CLASS.

 

Problem is, I can't add controls by designer...

What was that I broked?