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!

mga masters, meron lang akong gustong itanong.. about passing the value of 1 form to another na naka mdi

hindi po kasi ako magkaige dito sa solution na ito:

form3.textbox1.text = me.textbox1.text

kapag po nag click na ako ng button, wala pa din value dun sa form3..

thanks po in advance!
 
Anong klaseng exe?
Ang alam ko ata, open mo yung executable file gamit ang vb.[/QUOTE]

Gaya po ng notepad, dun po kasi sa loob ng form may panel, ang mangyayari po sana yung .exe file naka maximize sa loob ng panel pero pag po nirurun ko yung form yung .exe file minsan kalahati lang po yung kita di sakto 😭 salamat po

- - - Updated - - -

Gaya po ng notepad, sa loob po ng form may panel, ang mangyayari po sana yung .exe file naka maximize sa loob ng panel pero pag po nirurun ko yung form yung .exe file minsan kalahati lang po yung kita di sakto 😭 salamat po
 
Anong klaseng exe?
Ang alam ko ata, open mo yung executable file gamit ang vb

Gaya po ng notepad, dun po kasi sa loob ng form may panel, ang mangyayari po sana yung .exe file naka maximize sa loob ng panel pero pag po nirurun ko yung form yung .exe file minsan kalahati lang po yung kita di sakto �� salamat po

- - - Updated - - -

Gaya po ng notepad, sa loob po ng form may panel, ang mangyayari po sana yung .exe file naka maximize sa loob ng panel pero pag po nirurun ko yung form yung .exe file minsan kalahati lang po yung kita di sakto �� salamat po

use the anchor property. set anchor for each of your controls depending on your need.
by default it is set to top left. it means even if it is maximized or resized to whatever size the control remains on the top left.

if you set it to top only it will move according to the same ratio left to right but the top margin remains the same.

try experimenting on it to understand it better.
 
Last edited:
guys p help nmn kung pano mag insert ng digital signature sa vb.net. salamat po.
 
mga sir pahelp namn po.. panu po ba gumwa ng search bar sa vb.net 2005 na magsesearch ng khet na anu system mo... hal.po ngtym aq sa txtbox ng name ng item tas para pong me mga suggest name dun na pamimilian tapos kpag nkita mo na un hinhanap mo at iclickun search button unf form ng item ang lalabas. para po kc d na mhirapang mghanap. Tnx po !
 
Guy's patulong naman. possible po bang mag populate ng data from two tables?

I have two tables or views then gusto ko sanang lagyan ng data using 1 listview only.

1st Table is within the red and second is the green

AKEp833.png




Code for populating from the first table (red)
Code:
 Try
            Dim sql As String = "SELECT * FROM vw_testData"
            cmd = New MySqlCommand(sql, CNN)
            dr = cmd.ExecuteReader
            mdiMain.listPurchaseMngmnt.Items.Clear()
            Do While dr.Read
                With mdiMain.listPurchaseMngmnt.Items.Add(dr(0))
                    .SubItems.Add(dr(1)).ToString()
                    .SubItems.Add(dr(2)).ToString()
                End With
            Loop

        Catch ex As Exception
            MessageBox.Show(ex.ToString)
        Finally
            dr.Close()
        End Try

Code for populating data in listview subitem (green)

Ayaw mag work ehh. first row lang ang lumabas

Code:
  Try
            Dim sql As String = "SELECT * FROM view_countitembidders"
            cmd = New MySqlCommand(sql, CNN)
            dr = cmd.ExecuteReader
            Do While dr.Read
                mdiMain.listPurchaseMngmnt.Items.Item(0).SubItems.Add(dr(0)).ToString()
            Loop

        Catch ex As Exception
            MessageBox.Show(ex.ToString)
        Finally
            dr.Close()
        End Try
 
@Soichiro Jin
Gamitan mo ng JOIN query before showing sa listview.
Dapat merong ID na nagkokonek sa dalawang table
 
Last edited:
@Soichiro Jin
Gamitan mo ng JOIN query before showing sa listview.
Dapat merong ID na nagkokonek sa dalawang table

Thanks dre (y)

What I means example 2 tables .. ififill ko yung listview with 2 tables..

No need to join :)
 
Edi SELECT na lang,

SELECT a.col1, a.col2, a.col3, b.col1 FROM vw_testData a, view_countitembidders b

Pero kung gusto mo din ang approach mo..

Code:
 Try
            Dim sql As String = "SELECT * FROM view_countitembidders"
            cmd = New MySqlCommand(sql, CNN)
            dr = cmd.ExecuteReader
            Do While dr.Read
                mdiMain.listPurchaseMngmnt.Items.Item([B]palitan mo dapat ang value dito[/B]).SubItems.Add(dr(0)).ToString()
            Loop

        Catch ex As Exception
            MessageBox.Show(ex.ToString)
        Finally
            dr.Close()
        End Try
 
6 to 10 seconds ... windows 7 nga sir . ganun po ba? wala kayang magagawang solution dun?

wala akong alam. di na ko nag bother mag hanap ng ibang solution kasi mas prefered ko din naman ang xp kaya nag downgrade nlng.

Thanks dre (y)

What I means example 2 tables .. ififill ko yung listview with 2 tables..

No need to join :)

joining the table is the best way, i don't see any reason why you shouldn't use join.
pag join wala ka ng ibang logic na icode. idagdag mo lang sa sql statement.
kung ayaw mo ng join hindi mo na dapat normalize ang table mo.
 
Mga sir patulong naman po kung alam nyu kung papano magupdate ng multiple data sa datagridview po? salamat po?
 
mga sir penge po idea/suggestion

nagawa po ako ng workload kelangan po makuha po lahat ng conflict na time, schedule
anu po magandang gawin pag ganto ex. nag add ako ng 7:00 - 9:00 sa database.. tapos dapat mag error pag ganto ang oras 7:30 - 8:30
ms access database ko po thank you.
 
Mga sir patulong naman po kung alam nyu kung papano magupdate ng multiple data sa datagridview po? salamat po?

Update query lang yan. paki-explain na lang ng maayos

mga sir penge po idea/suggestion

nagawa po ako ng workload kelangan po makuha po lahat ng conflict na time, schedule
anu po magandang gawin pag ganto ex. nag add ako ng 7:00 - 9:00 sa database.. tapos dapat mag error pag ganto ang oras 7:30 - 8:30
ms access database ko po thank you.

ganito ang sample SQL, appy mo na lang.

yourTimeIn = 7:30
yourTimeOut = 8:30

SELECT * FROM tblSchedule WHERE (ScheduleIn >= yourTimein AND ScheduleOut <= yourTimein) OR (ScheduleIn >= yourTimeOut AND ScheduleOut <= yourTimeOut)

Parang mali pa pala to, check ko muna...
 
Last edited:
Update query lang yan. paki-explain na lang ng maayos



ganito ang sample SQL, appy mo na lang.

yourTimeIn = 7:30
yourTimeOut = 8:30

SELECT * FROM tblSchedule WHERE (ScheduleIn >= yourTimein AND ScheduleOut <= yourTimein) OR (ScheduleIn >= yourTimeOut AND ScheduleOut <= yourTimeOut)

Parang mali pa pala to, check ko muna...


ay salamat sir.. try ko po..

parang sql BETWEEN din po ba yan?
meron kasi akong two column StartTime at EndTime.
di ko alam kung panu gagawin pag two column sa sql BETWEEN eh..
mag meron pong ibang way paturo rin.. thanks po
 
paanu pu magprint preview ng buong item ng listview with colums and rows. (nakadatabase pu ito and ms access pu yung gamit ko)
 
Back
Top Bottom