Boban,
You'll have to write code to instantiate your DE class in the Form.Load() event. But you won't have the DE available at design time so you won't have ControlSource dropdowns, you'll have to just type all that stuff in. This is one reason I seriously don't like form classes.
>I have created a Form Class with a grid on it but I don't know how to set a Data Environment.
>I know that I can create a non-visual DE class with CURSORS and RELATIONS in it, but I don't know how to connect with a Form Class.
>
>How to connect Form Class and DE class, so that every time Form Class (when is being instanteined) load DE Class?