Rename Form

You need to deal with the renaming of the resource file or otherwise you get a MissingManifestResourceException.  TBC…

Read More

Refresh Form

To cause form controls such as a text box to be refreshed after updating them before your code goes and does something time consuming and intensive you can use this: this->Refresh(); This does work, if it doesn't try adding a System::Threading::Thread::Sleep(200) after it.

Read More

Link two forms

Set the secondary form owner to the main form.  For instance, if you have created another form you do this: frmMyOtherForm->Owner = this;

Read More

Transparency

  Transparency is actually simulated by drawing the pixels of the Parent, which is the form. ¬†Therefore you only see the form pixels, stacking effects don’t work. One approach is to just draw the images in the form’s Paint event, or consider WPF which has a very different rendering model that easily supports transparency.   […]

Read More

Passing values between forms

To Use A Global Variable Add it to our ap-main.h file – this is automatically included in all files (see creating a project if this file is not in your project) You can’t make strings global – only normal variable types However you can just pass a handle to a string or come other object […]

Read More

Child Forms / Multiple Document Interface

Int Note: Kin Lib uses child forms Applications that have a main window which contain one or more child windows are called Multiple Document Interface (MDI) For the parent form (for instance the form created when creating a new project) set the IsMdiContainer property to true. Add a menu strip to the form and create […]

Read More

Function For Multiple Form Objects – What Object Called An Event?

You can assign the same event to multiple controls. When called the "object sender" portion will be a reference to whatever one of the controls was clicked. The EventArgs portion is a way to pass extra information to the event handler. Some events use a derivative of EventArgs which contain extra information. The function will […]

Read More

Re-sizable Forms

Making Form Re-Sizable AutoScroll Set to true, to enable scroll bars when needed. You can then just add controls outside of the forms size and the scroll bars will appear to allow then to be seen. Minimum Size Set the minimum size for the form Padding Set to force a bit of space after the […]

Read More