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

Hi all Trying to remotely connect to a TIA Portal PLC. I can ping it without a problem but can't get my software to connect. I've opened port...
Replies
8
Views
280
and then when i open the windowmaker, intouch is shutdown... that's not work that's demo I have 30days demo
Replies
3
Views
131
Hi guys, I am looking for some help with using GP-PRO to open a project file. Every time I try to open my project file, I receive a message...
Replies
4
Views
380
Hello All Could we get some expertise on flow control ? -Using a PID loop in Productivity 2000 with an analog output, How can we convert...
Replies
19
Views
1,514
I am trying to connect plc m340 with magelis gto hmi through ethernet but hmi starts program runs but then display message " fail to open...
Replies
1
Views
522
Back
Top Bottom