Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

HELP: Picturebox VB.NET

shestheman

Proficient
Advanced Member
Messages
250
Reaction score
1
Points
28
Ang Function po nya is pag nag Park in ka is yung PictureBox is magiging kulay Yellow then Pag nag Parkout ka ay magiging white na ulit

Ang problema ko po pag nag Park In ako at kinlose ko buong system at pag bukas ulit ay kulay White na ulit yug Picturebox kahit hindi pa ako nag park out,,
Gusto ko sana kulay yellow padin sya pag bukas ko ulit ng system hanggat di pa ako nag park out hingi sana ako Idea pano gawin


Eto po yung code sa Park IN

If ParkNo.Text = "1" AndAlso PkStatus.Text = "Available" Then
Form6.Pic1.BackColor = Color.Yellow


Sa Park out

If Parknum.Text = "1" Then
Form6.Pic1.BackColor = Color.White

attachment.php
 

Attachments

  • Capture.PNG
    Capture.PNG
    116.7 KB · Views: 33
e database mo para every run ng program yun rin ang e loload na mga kulay na nasa db mo
 
agree ako kay 1samboy need nga ng database yan :)
 
tama, dapat may database ka kung san mo pwede isave ang data.

dapat sa database mo meron yan corresponding value, 0 at 1, 0 pag walang nakapark at 1 pag meron.

So dun mu na simulan mag if else para adjust nang kulay.

And best thing about pag nilagyan mo ng database is pwede mo makuha time in ng pag parking.

Pwede mo iadjust ang kulay say for example si car number 1 naka park na duon ng mahigit 2hours. so magiging iba na ang kulay nun.

para naman meron parang notification.
 
TS kung ayaw mo ng database... you have 2nd option.. save the data in text file..then everytime my action sa program..issave nya ung latest status sa text file or config file..

then ilload nman ni program ung text file everytime mgoopen ung program mo
 
salamat ta-try ko mag database, ma ngagngapa nanaman ako sa code
 
Back
Top Bottom