Advertisement
7_2009-2012 Files/ File Controls/ Input/ Output #233927

Easy way to manipulate your forms

This will show you how to control any element of any form.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'This will show you how to control any element of any form.
'To my mind this is a most simple way to solve this problem!
'Important!!! The startup object must be "Strt" or "Main"
'Your project must contain three forms, named as Form1, Form2 and Form3 
Public Class Strt
  Public Shared frm1 As New Form1()
  Public Shared frm2 As New Form2()
  Public Shared frm3 As New Form3()
  
  Shared Sub main()
    Application.Run(frm1)
  End Sub
End Class

'And then you may control your forms or any element as show below:
'Strt.frm2.Show()
'Strt.frm1.Height = 50
'Strt.frm3.Opacity = 75
'or if you form1 contain button1:
'Strt.frm1.button1.Text="Bla-bla"

'For example, your may put this code into Form1_Click event:
'Strt.frm2.Show()
'Strt.frm2.Height = 50
'Strt.frm3.Text = "Form Three"
'Strt.frm3.Show = 50
'Strt.frm1.width = 900
Original Comments (3)
Recovered from Wayback Machine