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!

Good day sir, balak po kasi naming bumili ng digital persona 4500 for thesis, kaso wala po kaming ka-alam alam sa mga input devices, kaya po nagreresearch kami, then napunta ako sa forum na'to, ask ko lang po kung okay ba yung Digital persona 4500 sa vb.net tsaka kung may sample code po kayo ng connection, save and matching pwede po ba makita as reference namin. Maraming salamat po.
*Sensya na sir bago lang po kasi :) Maraming salamat po .
 
Good day sir, balak po kasi naming bumili ng digital persona 4500 for thesis, kaso wala po kaming ka-alam alam sa mga input devices, kaya po nagreresearch kami, then napunta ako sa forum na'to, ask ko lang po kung okay ba yung Digital persona 4500 sa vb.net tsaka kung may sample code po kayo ng connection, save and matching pwede po ba makita as reference namin. Maraming salamat po.
*Sensya na sir bago lang po kasi :) Maraming salamat po .

need ng SDK para maginteract sa device un vb

check mo toh...

https://www.flexcodesdk.com/

search mo din sa youtube meron video tutorial
 
MGA MASTER MAGANDANG GABI SAINYU!.. need help lang po. ano pong code para mag auto increment or mag auto number ang data sa tuwing mag ddelete ka ng isang record?

example po ang record mo sunod sunod and id like 1 2 3 4 5 then dinelete mo si 3 ang ng yayare po sa data ko pag view ko po nggng 1 2 4 5 at pag nag add ka ulit ng record ang mangyyare ay dederetso na sya sa 1 2 4 5 6 parang gnun po.

vb.net at mysql po ang gamit ko sana matulong nyo ako mga masters. THANKS IN ADVANCE!
 
MGA MASTER MAGANDANG GABI SAINYU!.. need help lang po. ano pong code para mag auto increment or mag auto number ang data sa tuwing mag ddelete ka ng isang record?

example po ang record mo sunod sunod and id like 1 2 3 4 5 then dinelete mo si 3 ang ng yayare po sa data ko pag view ko po nggng 1 2 4 5 at pag nag add ka ulit ng record ang mangyyare ay dederetso na sya sa 1 2 4 5 6 parang gnun po.

vb.net at mysql po ang gamit ko sana matulong nyo ako mga masters. THANKS IN ADVANCE!

anu po ba gustong gawin? kasi kung yung id na nadedelete ok lang naman kung mawala yung number 3 .
 
how to add data sa datagridview. di muna ipapasok sa DB parang ididisplay nya muna sa datagridview
 
how to add data sa datagridview. di muna ipapasok sa DB parang ididisplay nya muna sa datagridview

try mo ito

Code:
 Dim rowNum As Integer = dgvMovie.Rows.Add()
            dgvMovie.Rows.Item(rowNum).Cells(0).Value = txtmovieid.Text
            dgvMovie.Rows.Item(rowNum).Cells(1).Value = cbomovietitle.Text
            dgvMovie.Rows.Item(rowNum).Cells(2).Value = mcategory
            dgvMovie.Rows.Item(rowNum).Cells(3).Value = mgenre
            dgvMovie.Rows.Item(rowNum).Cells(4).Value = mduration
            dgvMovie.Rows.Item(rowNum).Cells(5).Value = dtpRetur.Text
            dgvMovie.Rows.Item(rowNum).Cells(6).Value = lblDays.Text
            dgvMovie.Rows.Item(rowNum).Cells(7).Value = rentprice
 
anu po ba gustong gawin? kasi kung yung id na nadedelete ok lang naman kung mawala yung number 3 .

opo maddelete nga po ung nmber 3 pero pag nag input ka ng ibang data ang mngyyre sa id imbis na 3 ay ang llabas ay 4
 
opo maddelete nga po ung nmber 3 pero pag nag input ka ng ibang data ang mngyyre sa id imbis na 3 ay ang llabas ay 4

sir bakit niyo po pala papalitan nd id? :] pabigay po ng process niyo . pra makapagsuggest ako ng efficient na code. kc kung yung id niyo na auto increment is primary key din . d po ata magandang praktis na papalitan mo ng id yung primary key po
 
opo maddelete nga po ung nmber 3 pero pag nag input ka ng ibang data ang mngyyre sa id imbis na 3 ay ang llabas ay 4


sir bakit niyo po pala papalitan nd id? :] pabigay po ng process niyo . pra makapagsuggest ako ng efficient na code. kc kung yung id niyo na auto increment is primary key din . d po ata magandang praktis na papalitan mo ng id yung primary key po

agree with kudeta.. mag kaka ron ka ng duplicate id.. but to answer your query.. new id = last count + 1...
 
Last edited:
Dito pwede ka pong gumamit ng scope identity while doing some insert.. Pwede mo rin gamitin yung identity properties sa MSSQL para kusa syang mag increment.. pwede mo rin dun i adjust ng by 2 or any number you wanted.

- - - Updated - - -

mga master pano po magprint sa continous page sa c# gamit ang e.graphics or crystal report
sori po kung c# kahit vb.net nalang po thanks po

May page properties dun sa crystal report viewer.. I set mo lng ung page properties nun.
Start page and End page
 
Or i auto increment niya na lang yung column niya sa mysql. Hehe
 
sir bakit niyo po pala papalitan nd id? :] pabigay po ng process niyo . pra makapagsuggest ako ng efficient na code. kc kung yung id niyo na auto increment is primary key din . d po ata magandang praktis na papalitan mo ng id yung primary key po

View attachment 255750

eto po yung code. ahmm. gsto ko po kse mngyre. everytime na mag ddelete ako ng isang data mag ssort paren po ang number nya. kng baga mag susunod sunod ung number nya hndi tatalon sa isa. sorry po kung magulo ata yung explanation ko :) pero sana po maintndhan nyo.

kita nyo po yung sa may stud no. dba po talon talon ang mga number nila. gsto ko po sana maayus yan :/ sana po matulungan nyo ako mga masters.
 

Attachments

  • Untitled.png
    Untitled.png
    192.5 KB · Views: 21
pano po ba mag delete ng data sa db ms access po..

bale kasi may 1 na akong query . paano po pag dalawa na ung i-query ko

Code:
str = "Delete from Table1 where ID =" & Form1.Table1DataGridView.CurrentRow.Cells(0).Value.ToString & ""
            Dim cmd As OleDbCommand = New OleDbCommand(str, myconn)
            cmd.CommandText = str

bale magiging ganito ?

Code:
str = "Delete from Table1 where ID =" & Form1.Table1DataGridView.CurrentRow.Cells(0).Value.ToString & ""
str2 = "Delete from Table2 where company_id =" & Form1.Table1DataGridView.CurrentRow.Cells(0).Value.ToString & ""
            Dim cmd As OleDbCommand = New OleDbCommand(str, st2 , myconn)
            cmd.CommandText = (str, str2)
 
View attachment 1100151

eto po yung code. ahmm. gsto ko po kse mngyre. everytime na mag ddelete ako ng isang data mag ssort paren po ang number nya. kng baga mag susunod sunod ung number nya hndi tatalon sa isa. sorry po kung magulo ata yung explanation ko :) pero sana po maintndhan nyo.

kita nyo po yung sa may stud no. dba po talon talon ang mga number nila. gsto ko po sana maayus yan :/ sana po matulungan nyo ako mga masters.

Hindi na sa database na yan sa grid mo na lng imamanipulate yan..
 
View attachment 1100151

eto po yung code. ahmm. gsto ko po kse mngyre. everytime na mag ddelete ako ng isang data mag ssort paren po ang number nya. kng baga mag susunod sunod ung number nya hndi tatalon sa isa. sorry po kung magulo ata yung explanation ko :) pero sana po maintndhan nyo.

kita nyo po yung sa may stud no. dba po talon talon ang mga number nila. gsto ko po sana maayus yan :/ sana po matulungan nyo ako mga masters.

index = 0
while index <> datagridview.rows.count
if datagridview.cell(index,0).value<> index ' kung di equal yung currentrow value mo sa column 0, sa index mo.. ibig sabihin may laktaw.
datagridview.cell(index,0).value = datagridview.cell((index-1)),0).value+1 'mag +1 ka sa value

end if
index=index+1
end while


parang ganyan ser .. haha nakalimutan ko na codings. mali yung codings ko pero yung concept ganyan
 
Pa help po sino po ang may alam na site para c++ na may example ng running program pls po pahelp
 
index = 0
while index <> datagridview.rows.count
if datagridview.cell(index,0).value<> index ' kung di equal yung currentrow value mo sa column 0, sa index mo.. ibig sabihin may laktaw.
datagridview.cell(index,0).value = datagridview.cell((index-1)),0).value+1 'mag +1 ka sa value

end if
index=index+1
end while


parang ganyan ser .. haha nakalimutan ko na codings. mali yung codings ko pero yung concept ganyan

sge try ko yan sir. later pag uwe ko ehehe. salamat
 
Back
Top Bottom