In vb in form1 design a commandbutton1 click the commandbutton1 appear in the original form1
the new interfaceO how appearance is not a one click another form, but in the same form and different content
CodePudding user response:
Very simple, the so-called "interface" is the form of various controls, and control can be set to be visible and invisible.
So click on the button to make the original visible controls become invisible, originally invisible becomes visible.
Changed the interface for users is:
CodePudding user response:
Give an example how to edit the program
CodePudding user response:
reference 1st floor WallesCai response: is very simple, the so-called "interface" is the form of a variety of controls, and control can be set to be visible and invisible. So click on the button to make the original visible controls become invisible, originally invisible becomes visible. Changed the interface for users is: Give an example how to edit the program CodePudding user response:
Put two picturebox The different interface control piece inside Then stacked together Button wrote Picturebox2. Visible=true Picturebox1. Visible=true CodePudding user response:
Button wrote Picturebox2. Visible=true Picturebox1. Visible=false 'initial assumptions picturebox1 display CodePudding user response:
"Interface" is the form of various controls, and control can be set to be visible and invisible. So click on the button to make the original visible controls become invisible, originally invisible becomes visible. CodePudding user response:
Private Sub Command1_Click () Dim f As the Form The Set f=New Form1 F.S how End Sub The original poster is this? CodePudding user response:
reference qq_23907667 reply: 3/f Quote: refer to 1st floor WallesCai response: Very simple, the so-called "interface" is the form of various controls, and control can be set to be visible and invisible. So click on the button to make the original visible controls become invisible, originally invisible becomes visible. Changed the interface for users is: How to edit the program for example, You put a frame control, for example, select it by "CTRL + C to copy, and then point form the blanks according to the" CTRL + V "paste. Prompt you to create control arrays, are you sure. When you have the two frame1, respectively is frame1 (0) and frame1 (1)And then you put something in one of the inside control, and then to another inside put some different control. Note: after a point control box directly inside the frame, do not procrastinate on form first, then go in, drag in. Finish after you put the frame1 (1) the visible attribute set to false Then you drag a button on form command1 Button click event in writing: Sub command1_click () The frame1 (0). The visible=not frame1 (0). The visible Frame1 (1). The visible=not frame1 (0). The visible End sub Press F5 to run, try some button several times CodePudding user response:
Can put a picturebox1 in form1, operating on picturebox1 good Picturebox1. CLS Pincture1. Picture=loadpicture (" new image address ") And to the operation of the forms of each control, also can through the visible attribute to control those controls make it display or not, etc. CodePudding user response:
Can also control the stacked sequence Two, for example, picturebox1 and picturebox2 When picturebox1 picturebox2 above, picturebox2 don't see the content of the On the contrary, picturebox1 could not see, and picturebox2 can see CodePudding user response:
Don't join in the form is frame is ok? To show which is which,,