How To Open Overlap Polygon using VB coding.

Waseem_Akhtar

Member
Join Date
Jan 2017
Location
Bangalore
Posts
16
Hello Everyone...

I have created two Polygon pages overlap on each other and two RoundedRectangle box side by side in single display as shown in a image.

I'm not aware with the VB coding and i want to open the respective Polygon if i click on the RoundedRectangle. For Example.....

If i click on RoundedRectangle1(in image named as 1) then Polygon1(in image named as 1st Display) have to open,
similarly if i click on RoundedRectangle2(in image named as 2) then Polygon2(in image named as 2nd Display) have to open.....

What code have to write just help.
Or is there any document please share.

Thanks in advance..

Test_Display.gif
 
You are giving very little information on what platform you are using, from the picture this looks very much like VB IDE & not a Scada system or HMI, however there are many ways to do this & many VB orientated applications will have a tabular controls built in. If these are just your own build then the tabs need click events we will call them buttons and the polygons are panels.
so on the button events
Button1
Panel1.Visible = True
Panel2.visible = False

Button2
Panel2.Visible = True
Panel1.visible = False

You will need to make one panel2 false on call to window.
 
Your rounded rectangle will have various events associated with it (assuming this is Visual Studio). In the upper left of your code window will be a drop down with a list of components. Choose Rectangle1 and to the right of that is a drop down list of the events associated with the component you selected. Find the event labeled "Click" and add code similar to what parky posted above.
 

Similar Topics

GitHub Link: Open Industry Project This is a side project I've been working on for some time. The goal is to provide an open platform for...
Replies
0
Views
48
i have 2 backups: *.PVC and *.pvd file types thanks in advance for any help
Replies
4
Views
162
hi All Can you please help me to find the right software to open Zip backup of 434 12A PLC? Any major steps I need to know when opening? Regards
Replies
5
Views
108
I am using Factory Talk view Machine Edition Runtime HMI. I want to configure on button in such way that when i press this button I want to...
Replies
3
Views
196
hello I have 7cp476 cpu why can led always open and No connection
Replies
1
Views
154
Back
Top Bottom