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!

VB.NET Programming Corner!

Re: VB.NET Programming Corner! UPDATED!!!

Goodevening TS!
tanong ko lang po kung pano yung code na macocontroll mo yung parallel port/printer port..
kasi iinterface ko yung Solid State Relay sa Computer, eh ang sabi pwede ang parallel port or yung printer port

Thanks!!!

meron, pero di advisable na i direct connection
una ang parallel port mababa lang ang output voltaga t malamgn di kayang i drive ang relay mo
pangalawa, delikado yan sa motherboard, sudden surge ng demand ng power mula sa PC

ang ginawa nami dati dya ay gumamit ng opto isolators
http://en.wikipedia.org/wiki/Opto-isolator

para walang direct connection ang PC at ang relay
kundi sa ilaw lang

http://homepages.which.net/~paul.hills/SpeedControl/Optos.html
 
Re: VB.NET Programming Corner! UPDATED!!!

bka may library system kau program jan.. pakopya
 
Re: VB.NET Programming Corner! UPDATED!!!

bka may library system kau program jan.. pakopya

wrong section po yata

dun dapat sa "Kopyahan Section"
hindi sa Sharing and Teaching Section
 
Re: VB.NET Programming Corner! UPDATED!!!

meron, pero di advisable na i direct connection
una ang parallel port mababa lang ang output voltaga t malamgn di kayang i drive ang relay mo
pangalawa, delikado yan sa motherboard, sudden surge ng demand ng power mula sa PC

ang ginawa nami dati dya ay gumamit ng opto isolators
http://en.wikipedia.org/wiki/Opto-isolator

para walang direct connection ang PC at ang relay
kundi sa ilaw lang

http://homepages.which.net/~paul.hills/SpeedControl/Optos.html

ahh ganun ba, sa 220v ko pa naman ilalagay tong solid state relay ko, cge sir salamat, pag aralan ko tong opto-isolator na to..
 
Re: VB.NET Programming Corner! UPDATED!!!

gudevening po sir... pa help po sa assignment..

kasi po gusto po ng sir ko eh pag naginput ako sa textbox1 ng 1,eh,..sa textbox2 po magiging 0001...dapat din po magseset kami kung ilang format din po dapat kung $$$$ magiging 0001 yung 1,,kung 2 naman po magiging 0002...pag 5000 ayus lang..at pag 500 magiging 0500..patulong naman po....salamat po


sir eric e2 po pala yung update nung project ko.
nasa button ko po toh

Dim num1 As Integer
Dim num2 As Integer


Dim i As Integer

num1 = Val(txtstart.Text)
num2 = Val(txtend.Text)

For i = num1 To num2


ListBox1.Items.Add(i)
Next i

txtstart.Text = ""
txtend.Text = ""

bale yung starting value at end value palang yung nagagawa ko... at display po siya sa isang listbox problema lang po yung format niya pag naginput po ako ng 0001 sa starting value at 0003 sa end value eh,, 1,2,3 lang po yung lumalabas..my isa pa po sanang txtbox na iseset niya kung ilang chararcter example $$$$ dapat 4 character lang kung input po ako ng 1 eh magiging 0001 po sa listbox,,help naman po..noob lang po kasi.... salamat po.. :praise: :praise:
 
Re: VB.NET Programming Corner! UPDATED!!!

sir eric e2 po pala yung update nung project ko.
nasa button ko po toh

Dim num1 As Integer
Dim num2 As Integer


Dim i As Integer

num1 = Val(txtstart.Text)
num2 = Val(txtend.Text)

For i = num1 To num2


ListBox1.Items.Add(i)
Next i

txtstart.Text = ""
txtend.Text = ""

bale yung starting value at end value palang yung nagagawa ko... at display po siya sa isang listbox problema lang po yung format niya pag naginput po ako ng 0001 sa starting value at 0003 sa end value eh,, 1,2,3 lang po yung lumalabas..my isa pa po sanang txtbox na iseset niya kung ilang chararcter example $$$$ dapat 4 character lang kung input po ako ng 1 eh magiging 0001 po sa listbox,,help naman po..noob lang po kasi.... salamat po.. :praise: :praise:


sValue = "12"
sFormatted = sValue.ToString.PadLeft(4,"0")

sFormatted will be "0012"

gets?
 
Re: VB.NET Programming Corner! UPDATED!!!


sir eric kuha ko na yung sa AT commands:D yung usb modem ko yung may problema, sinubukan ko yung iba ok naman pala haaays... :thanks: sa help nyo sir.

i need your help ulit sir,.. Yung system ko kasi nag cocontrol ng kuryente sa outlet, pwedeng i on and off yung kuryente at may monitoring din sa power consume. para yun sa computer laboratory. ang problema hindi pwedeng basta basta nalang patayan ng kuryente yung pc na hindi pa naka shutdown syempre masisira, automatic kasi magpapatay ng kuryente kapag time na or tapos na ang oras ng klase. ang kulang ko nalang ay yung pag shutdown ng pc, i-shutdown muna ng system yung computer bago nya patayan ng kuryente. sir pahingi naman ng tip kung pano magagawa yun:D. 3pc lang yung itetest ko + 1 server. yung parang sa mga system ng computershop na pwedeng ishutdown yung nasa network, ala din ako idea kung pano mag setup ng network na pwede mag remote hehe pwede ba yung naka connect kami lahat sa router.

ang balak ko gawa lang ako ng client application na listener lang sya maghihintay ng command galing sa server like "shutdownA"; A = PC A,, tsaka sya mag shutdown. ang problema ko sa networking, TIA sir:D.
 
Last edited:
Re: VB.NET Programming Corner! UPDATED!!!

Mga boss
pa help naman po
nalilito kasi ako panu ko e de design ung database ko

eto po....
POS po ang gagawin ko....
sa isang transaction meron syang

Transaction Number
Customer

'dito po ako nalilito

product1 * 3 = 100
product2 * 1 = 10
product3 * 2 = 40

tapos may Total and Vat....

1st time ko kac mag handle ng POS eh kaya medyo nahihirapan pa
pag naliwanagan na ako kung paano ko e dedesign ang database
sa tingin ko ok na....

:help::help:
 
Re: VB.NET Programming Corner! UPDATED!!!

Mga boss
pa help naman po
nalilito kasi ako panu ko e de design ung database ko

eto po....
POS po ang gagawin ko....
sa isang transaction meron syang

Transaction Number
Customer

'dito po ako nalilito

product1 * 3 = 100
product2 * 1 = 10
product3 * 2 = 40

tapos may Total and Vat....

1st time ko kac mag handle ng POS eh kaya medyo nahihirapan pa
pag naliwanagan na ako kung paano ko e dedesign ang database
sa tingin ko ok na....

:help::help:

sa pagkakaintindi ko dapat muna meron ka table for products na dapat andon ang description at presyo, tapos meron ka table for transactions, sa transaction dapat makikita mo ang product, ilang quantity at kung magkano binenta.
 
Re: VB.NET Programming Corner! UPDATED!!!

suggest ko lng...


[transactiontable]
(
transacno,
customerno,
productno,
quantity,
amount,
vatfromdatesaved(optional)
)

recompute mo lage un total sa labas...

d ko sure kung un vat ng babago per item...

kung iba un vat per item.. gawa ka separate table for vat

gawa ka din separate table sa customer master table
at product master table nka link lng using ID sa transactable

reply thank.. wala hit thank eh...
kung nkatulong hhihiihi
 
Last edited:
Re: VB.NET Programming Corner! UPDATED!!!



sir eric kuha ko na yung sa AT commands:D yung usb modem ko yung may problema, sinubukan ko yung iba ok naman pala haaays... :thanks: sa help nyo sir.

i need your help ulit sir,.. Yung system ko kasi nag cocontrol ng kuryente sa outlet, pwedeng i on and off yung kuryente at may monitoring din sa power consume. para yun sa computer laboratory. ang problema hindi pwedeng basta basta nalang patayan ng kuryente yung pc na hindi pa naka shutdown syempre masisira, automatic kasi magpapatay ng kuryente kapag time na or tapos na ang oras ng klase. ang kulang ko nalang ay yung pag shutdown ng pc, i-shutdown muna ng system yung computer bago nya patayan ng kuryente. sir pahingi naman ng tip kung pano magagawa yun:D. 3pc lang yung itetest ko + 1 server. yung parang sa mga system ng computershop na pwedeng ishutdown yung nasa network, ala din ako idea kung pano mag setup ng network na pwede mag remote hehe pwede ba yung naka connect kami lahat sa router.

ang balak ko gawa lang ako ng client application na listener lang sya maghihintay ng command galing sa server like "shutdownA"; A = PC A,, tsaka sya mag shutdown. ang problema ko sa networking, TIA sir:D.


mga sir pa help naman:D,,, nakagawa na ako ng server at client, yung client naghihintay lang ng command ng server para mag shutdown. gumamit ako ng lan chat gamit yung "System.Net.Sockets", ang kulang ko nalang kung pano makuha or ma list lahat ng available IP sa combobox or listbox, naka dynamic kasi yung mga ip, hindi pwede i static.
 
Re: VB.NET Programming Corner! UPDATED!!!

thanks doorbreaker and jarwafu :)
may idea na ako
salamat ng marami
 
Re: VB.NET Programming Corner! UPDATED!!!

wow, salamat d2 sir.. sakto to, nagthethesis po kmi ngaun, vb2008 gmt nmen.. mdame ako itatanong dto.. heheh :clap::clap::clap::clap:
 
Re: VB.NET Programming Corner! UPDATED!!!

ask ko lang po mga sir panu po bato!...ang guzto ko pong gawin ay ganito for example may mga buttons ako from 1 to 20 na naka hidden...tapos pag mag-a add na ako nang item na lilitaw yung button 1 na naka pangalan na sa new item...


help po sana kahit yung logic lang poh.... :thanks:
 
Re: VB.NET Programming Corner! UPDATED!!!

ok po ba na gamitin na pang thesis ang express edition lang?..
 
Re: VB.NET Programming Corner! UPDATED!!!

Try
Dim Mail As New MailMessage
Mail.Subject = "Test Mail"
Mail.To.Add("")
Mail.From = New MailAddress("")
Mail.Body = "Test SMTP"

Dim SMTP As New SmtpClient("smtp.gmail.com")
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("username", "password")
SMTP.Port = 587
SMTP.Send(Mail)
Catch ex As Exception
MsgBox(ex.ToString)
End Try

Gumagawa ako ng sample system na mag sesend sa email.

Boss Eric. Need some help.
Error siya dito " SmtpServer.Send(mail) "

And kapag pinalitan ko yung SmtpServer.Port = 465 to 587
Lalong mag eerror.

Ok na pala. Just add EnableSsl = True for SSL.
 
Last edited:
Re: VB.NET Programming Corner! UPDATED!!!

Gumagawa ako ng sample system na mag sesend sa email.

Boss Eric. Need some help.
Error siya dito " SmtpServer.Send(mail) "

And kapag pinalitan ko yung SmtpServer.Port = 465 to 587
Lalong mag eerror.


If your using Gmail.. use the ssl port 587.. and then enable the ssl.. that should work.. if not, it would help if you can post the actual error your getting..

Try
Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Credentials = New Net.NetworkCredential("[email protected]", "password")
SmtpServer.Host = "smtp.gmail.com"
SmtpServer.Port = 587
SmtpServer.EnableSsl = True

mail = New MailMessage()
mail.From = New MailAddress("emial")
mail.To.Add("email")
mail.Subject = "Test Mail"
mail.Body = "This is for testing SMTP mail from GMAIL"
SmtpServer.Send(mail)
MsgBox("mail send")
Catch ex As Exception
MsgBox(ex.ToString)
End Try

Try it.. it should work.
 
Re: VB.NET Programming Corner! UPDATED!!!

ask ko lang po mga sir panu po bato!...ang guzto ko pong gawin ay ganito for example may mga buttons ako from 1 to 20 na naka hidden...tapos pag mag-a add na ako nang item na lilitaw yung button 1 na naka pangalan na sa new item...


help po sana kahit yung logic lang poh.... :thanks:

di ko ma picture out yung gusto mo mangyari,
ano item ba yung iadd?
pano malalaman kung mag add ka na?
ano ginagawa/gagawin ng button?

in any case pwede ka nlng mag load ng button sa runtime tapos set mo lang ang location instead mag create ka ng maraming button na nka hide lang.

pwede din 1 button lang na nakahide. yung code nlng na iexecute ang icondition mo. either select case or nested if.


ok po ba na gamitin na pang thesis ang express edition lang?..

yes i think pwedeng pwede na sa balak mo
 
Back
Top Bottom