Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - oqapsking

Pages: 1 [2] 3
16
Support Questions / multiforms closing problem
« on: May 08, 2017, 07:02:30 AM »
hello

in my hmi project
i have 6 pages

the first one is the main

it has 5 buttons each button opens a form

what i do is the other five forms have close button that closes them and return to the main page

the button code is

Code: [Select]
Me.Hide()
            mainpage.Show()
.

now when i run the application

i can go to tow pages
when i try to open a third page it gives me runtime error

so i need to close them not hide them

but when i try the code

Code: [Select]
Me.close()
            mainpage.Show()

or

Code: [Select]
Me.close()
           

 it gives an error too

so what is the best way to open the forms and close them


the open form code i use  is


Code: [Select]
page1.show()
with thanks

17
Tips & Tricks / flickering solution
« on: May 03, 2017, 03:59:29 PM »
hello

i faced an annoying problem with my project

wich is  pictures and controls  flickering when loading the form

i found two solutions

1- set  DoubleBuffered to true in the form properties

2- put this code any where inside your form.vb

Code: [Select]
Protected Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            cp.ExStyle = cp.ExStyle Or &H2000000
            Return cp
        End Get
    End Property 'CreateParams


the second solution worked great for me

and i also kept DoubleBuffered  true


i hope this can help others



18
Support Questions / how to add property to the usercontrol
« on: May 02, 2017, 02:25:41 PM »
hello

i made a new user control

i used in it

picturebox1
basiclabel1
label1

how can i add to it ahmi property ??

i mean i need to add property to change plc address for the basiclabel1 in it
and to chose the comcomponent
and the label1 text

in any form am using it in

with thanks

19
Support Questions / help with auto size
« on: May 01, 2017, 11:32:00 AM »
i built my project to fit 1920*1080

now i am trying to make it work with any screen resolution

i found a code that can help with that
https://www.codeproject.com/Tips/1025766/VB-NET-Dynamically-Resize-and-Reposition-All-Contr

but it only works if the form size change

i tried to use it on form load

but it didn't work
 and some times it makes the font size too small
can any one help me with that ?

with thanks





20
Support Questions / how to change references path ?
« on: April 30, 2017, 03:23:20 PM »
hello

how to change references path ?

and what is the system requirements i need to include ?

what i am going to is make exe setup file for my project (i know how to do that )

in the attachment is the photo of my project reference page

first i need to change the path of the references that are selected in the photo

second what is the tools i need to include so i can install my project on any computer i need ?
net framework 4.5 and what else?

21
Support Questions / chart and database
« on: April 30, 2017, 12:26:07 AM »
hello

there was a video about making a chart and connect it to database and i cant find it

what i need to do
say i have a basiclabel reads some register

and i want to store the values on database file and display them in chart

in the chart i can choose the from date to date  and time to time

by the way i dont have experience in database usage

with thanks


22
Support Questions / making my own class ImageDisplayByValue
« on: April 29, 2017, 06:24:06 AM »
hello
what i do some times is to read true / false address then the picture changes according to it

something like (ImageDisplayByValue) one image is jpg and one is animated gif

the way i do it is i put picturebox , basiclable and timer then add the pictures i need in the project  resources

after i put the basiclabel values and properties

i go to the timer code

and write this

Code: [Select]

 if basiclabel.value = true then
picturebox.image =  Global.MfgControl.AdvancedHMI.My.Resources.Resources.imageOff
else
picturebox.image =  Global.MfgControl.AdvancedHMI.My.Resources.Resources.imageOn

end if
 


now to my question

can i make my own class to do all the above ???


the reason i do this is that  ImageDisplayByValue does not support animated ( gif) images and treats them all as jpg

with thanks




23
hello

what i need is the plc value is for example 234 and i wanna display it in the basic label or Analog Value Display as 23.4

when i use Digital Panel Meter i just put "1" inside decimal position property

but there is no such property in  basic label or AnalogValueDisplay
so can you guys tell me how to do it?

with thanks

24
Support Questions / disable disable comms Subscriptions
« on: April 22, 2017, 03:20:49 PM »
hello

i disabled the  comms Subscriptions
but i want to show it as error  massages text on one label that i chose instead of showing up on every thing i use

and can i chose what is the text?

with thanks

25
Support Questions / connect advance hmi to the hmi not to the plc
« on: April 19, 2017, 04:38:32 PM »
hello

can we connect advance hmi
with an hmi and not with the plc?

i have some delta dopB HMI with Ethernet

i use Eremote to connect them

but i don`t find it as good as advance hmi
for many reasons
the most important problem is
that Eremote connects to the hmi as a video
so it needs a strong internet connection on both sides

with thanks

26
Support Questions / can we use domain address like www.noip.com ?
« on: April 19, 2017, 04:34:42 PM »
hello

is there a way to use domain address like noip
for the plc with a random ip address internet connection?

that is because some areas can only support 3g and 4g internet connection
and sadly there companies does not give you an internet connection with static IP

with thanks

27
Support Questions / ImageDisplayByValue size problem
« on: March 25, 2017, 11:30:56 AM »
hello
when i insert ImageDisplayByValue it automatically add new image list
the problem is i can`t use any size i need
it gives me an error message that the width or height should be between 1 to 256
how can i change that?

with thanks

28
Support Questions / how to make multi pages with the same modbus drive
« on: March 13, 2017, 04:07:44 AM »
hello

i need to no how to use the same driver component for multi pages

which means

when i put the drive on the main form

i can use it on the other pages
and choose it


with thanks

29
Support Questions / how to make my own component?
« on: October 16, 2016, 10:38:08 AM »
is it possible to make my own component to use with advance hmi ?
for example
i have a moving picture
if the coil is on the picture start moving
if the coil is off the picture stops
and a visible address to use

with thanks

30
Support Questions / advance HMI and remote connection
« on: October 11, 2016, 01:03:49 PM »
hello

i wanna know does (ModbusTCPCom) support remote connection?
meaning access it throw the internet not the local network
if it does
please tell me how to do it

note:
am using delta dvpES12
the local ip is 192.168.0.5
port : 502

i have opened Virtual Server in the router
as in the attachment

when i am connected to the same network
it works fine

but when am on a def rent network ( another internet connection )
it fails to connect

any one can help?
with thanks

Pages: 1 [2] 3