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!

Salamat sir. Ano po pala tawag na object jan sa mga items na yan sir gaya ng coke, sprite, etc? Hindi po yan picbox diba? Button lang ba yan? Tia!

Thanks din sir @knives!

bale po dyanamic ung pagkagawa ko dyan sa sample..
FLOWLAYOUTPANEL na control then nagADD ako ng buttons on RUNTIME then ung naka display ay galing sa database so kapag nag dagdag ako ng items automatic na pupunta or madidisplay agad ung item(name,price,qty etc..)
pwede ko rin lagyan ng image ung button using this property:
Code:
newBut.Image=image' galing din sa database either filepath or blob file[icoconvert pa to image]
example:
Code:
 For i As Integer = 0 To dt.Rows.Count - 1
            Dim newBut As New Button
            newBut.Text = dt.Rows.Item(i).Item("MENUITEM") & vbCrLf & "$" & dt.Rows.Item(i).Item("PRICE")' [COLOR="red"]eto ung info nung item[/COLOR]
            newBut.Tag = dt.Rows.Item(i).Item("MCODE") '[COLOR="Red"]Eto ung PK or TABLE ID ng bawat row[/COLOR]
            newBut.Size = New Size(119, 74)
            AddHandler newBut.MouseDown, AddressOf newBut_Click
            FlowLayoutPanel1.Controls.Add(newBut)
        Next
 
Last edited:
meron po ba kayu sample ng print report ditu?

yung parang kasing dali lang po ng data report?

like

set datareport1.datasource = rs
datareport1.show

yung parang ganyan lang po?

meron po ba ganyan sa vb.net?

eto nalang po yung problem q sa vb.net eh..

PRINT OUT nalang ;(

please help me out hoho


gamit ka RDLC,

1 add ka ng Microsoft report viewer
2 add new item on your project (select reporting then report, filename usually Report1.rdlc)
3 export datatable to 'xml schema' and 'xsd' (dataset.writexmlschema)
4 import xsd to Report1.rdlc
5 drag drop item to your report template (.rdlc)
6 bind datatable from reportviewer to rdlc

your done! =) god bless. sample code probably sa sat, busy kasi ako (parati?) hehehe
 
mga sir...may alam poh ba kau...kung paanu magsend ng sms through online using vb.net
 
Pwede bang ilagay ito sa label ng vb6.? FormatPercentage()

Tanong lang po :
PAANO ko ididisplay sa caption ng label ko eto : 0.0000184551022953138 %



Eto kasi yung formula ko..

(75859780/14) * 100 = 1.85 e -5

YUNG ANSWER .. eto yung output ni vb6, so kaya eto lagi yung nalabas sa label ko..

Instead of 1.85 e -5 gusto ko sana ilagay yung percentage 0.0000184551022953138 %

Pwede po ba yun? Thanks kaSB..





BY the way ginawa ko na rin ito :

oTotal = (total / fixTotal) * 100


1st try ...

oTotal2 = format(oTotal, "Percent")


2nd try....
oTotal2 = FormatPercent(oTotal)


ERROR YAN
 
Last edited:
Re: Pwede bang ilagay ito sa label ng vb6.? FormatPercentage()

Tanong lang po :
PAANO ko ididisplay sa caption ng label ko eto : 0.0000184551022953138 %



Eto kasi yung formula ko..

(75859780/14) * 100 = 1.85 e -5

YUNG ANSWER .. eto yung output ni vb6, so kaya eto lagi yung nalabas sa label ko..

Instead of 1.85 e -5 gusto ko sana ilagay yung percentage 0.0000184551022953138 %

Pwede po ba yun? Thanks kaSB..

Sinagot ko na to sa VB6 Thread,
so need to re-post here in vb.net section.
tnx...
 
bale po dyanamic ung pagkagawa ko dyan sa sample..
FLOWLAYOUTPANEL na control then nagADD ako ng buttons on RUNTIME then ung naka display ay galing sa database so kapag nag dagdag ako ng items automatic na pupunta or madidisplay agad ung item(name,price,qty etc..)
pwede ko rin lagyan ng image ung button using this property:
Code:
newBut.Image=image' galing din sa database either filepath or blob file[icoconvert pa to image]
example:
Code:
 For i As Integer = 0 To dt.Rows.Count - 1
            Dim newBut As New Button
            newBut.Text = dt.Rows.Item(i).Item("MENUITEM") & vbCrLf & "$" & dt.Rows.Item(i).Item("PRICE")' [COLOR="red"]eto ung info nung item[/COLOR]
            newBut.Tag = dt.Rows.Item(i).Item("MCODE") '[COLOR="Red"]Eto ung PK or TABLE ID ng bawat row[/COLOR]
            newBut.Size = New Size(119, 74)
            AddHandler newBut.MouseDown, AddressOf newBut_Click
            FlowLayoutPanel1.Controls.Add(newBut)
        Next

Sir pwede bang makahingi ng sample program na kagaya ng sa inyo? Kahit hindi po yung buo. Nalilito kasi talaga ako eh.

Nakagawa na po ako ng database. Sa flowlayoutpanel po ba ilalagay yung loop na yan? And san po idedeclare yung dt? Thanks po! :salute:
 
Sir pwede bang makahingi ng sample program na kagaya ng sa inyo? Kahit hindi po yung buo. Nalilito kasi talaga ako eh.

Nakagawa na po ako ng database. Sa flowlayoutpanel po ba ilalagay yung loop na yan? And san po idedeclare yung dt? Thanks po! :salute:

try nyo din user control... at runtime nyo din e add sa panel,
ex. usercontrol1 (contains 1 label, 1 image, 1 textbox, etc)

tapos pag call sa kanya

dim myControl1 as new usercontrol1

mycontrol1.textbox1.text = "sometext"
mycontrol1.UniqueNo = "12345" (considering nag declare ng public UniqueNo sa usercontrol)
mycontrol1.etc = "blah blah blah"
mycontrol1.name = "unique_id"

flowpanellayout1.controls.add(mycontrol1)

tapos pagkuha sa value

dim objUserControl as usercontrol1 = flowpanel1.controls("unique_id")

objUserControl.etc (pwede na hugutin ang value na na assign)

pwede din ma remove ang control at runtime.

flowpanel1.controls.remove("unique_id").

anyway. im just suggesting on what other options possible, i think.. what ever hehehe...
 
Sir pwede bang makahingi ng sample program na kagaya ng sa inyo? Kahit hindi po yung buo. Nalilito kasi talaga ako eh.

Nakagawa na po ako ng database. Sa flowlayoutpanel po ba ilalagay yung loop na yan? And san po idedeclare yung dt? Thanks po! :salute:


In behalf of sir polens....
Find attach, napag-tripan ko ang example ni sir polens...
SQL Server Express ang Back-end, ginamit ko yung Northwind as Database.

Hindi yan kumpleto, but I hope you find some idea.
Please ask google, if you find us, too late to reply.

Regards....
 

Attachments

  • Kapehan.zip
    75.3 KB · Views: 15
Re: Pwede bang ilagay ito sa label ng vb6.? FormatPercentage()

Tanong lang po :
PAANO ko ididisplay sa caption ng label ko eto : 0.0000184551022953138 %



Eto kasi yung formula ko..

(75859780/14) * 100 = 1.85 e -5

YUNG ANSWER .. eto yung output ni vb6, so kaya eto lagi yung nalabas sa label ko..

Instead of 1.85 e -5 gusto ko sana ilagay yung percentage 0.0000184551022953138 %

Pwede po ba yun? Thanks kaSB..





BY the way ginawa ko na rin ito :

oTotal = (total / fixTotal) * 100


1st try ...

oTotal2 = format(oTotal, "Percent")


2nd try....
oTotal2 = FormatPercent(oTotal)


ERROR YAN

gawin nio po convert nio ung answer sa string then tsaka nio i add ung "%" as string...

label = str((75859780/14) * 100) + "%"

hndi ko lang sure kung ganyan nga ba conversion ng integer to string sa VB6..
 
Sql dates !

gawin nio po convert nio ung answer sa string then tsaka nio i add ung "%" as string...

label = str((75859780/14) * 100) + "%"

hndi ko lang sure kung ganyan nga ba conversion ng integer to string sa VB6..

thanks sir. :))





ASK LANG AKO K'SYMB. Gusto ko sana yung input ko "JANUARY"(name of the months) instead of 1(integer) .. pero paano po yun ?



EXAMPLE CODE KO:

exec sp_veh_approved 1,2012

-gusto ko sana palitan yung 1 at ilagay ko JANUARY,, pero paano po yun?
kapag pinapalitan ko naman ng January hindi siya nagana,, kasi yung output ng date_survey ko is 1/1/2012 hindi january/1/2012 kaya d sya nagana pero baka may ibang way kayo dyan mga sir, para mafilter ko ito.. ? or just edit my code kung may nakita kayong pwedeng gawing solusyon.. thanks..

VALUE kasi ng sa SYSTEM ko JANUARY TO DECEMBER eh text siya hindi INT. kaya ganun... thanks .. :D

see pic..
View attachment 769469


eto code ko









CREATE PROCEDURE dbo.sp_veh_approved(@month int, @year
int) AS

SELECT DISTINCT COUNT(date_survey) AS DS
FROM survinfo_1dir a,survraw_1dir b
WHERE datepart(mm,date_survey) = @month AND datepart(mm,date_survey) = @year AND a.header_no=b.header_no

UNION ALL

SELECT DISTINCT COUNT(date_survey) AS DS
FROM survinfo_2dir c,survraw_2dir d
WHERE datepart(mm,date_survey) = @month AND datepart(yy,date_survey) = @year AND c.header_no=d.header_no
 
Ask lang po Sir Erik about sa Job.

Hindi po ba pareho ung Programmer Trainee sa Web Programmer na trabaho sa fresh grad... ang gulo haha.

i mean, ung position na naaplayan ng classmate ko web programmer, tapus ako programmer trainee... sa classmate ko po, binibigayan na agad sila ng projects na parang employee n talaga pero under provision pa rin sila... sa programmer trainee po ba ganun din o itatrainee pa kame, if sa description ng job, bago sumabak sa mga projects?

hindi naman po sa nagmamadali ako sa mga projects, gusto ko rin namang magtrain... pero iniisip ko po ung salary din, magkaiba rin po ba?


:D
 
Ask lang po Sir Erik about sa Job.

Hindi po ba pareho ung Programmer Trainee sa Web Programmer na trabaho sa fresh grad... ang gulo haha.

i mean, ung position na naaplayan ng classmate ko web programmer, tapus ako programmer trainee... sa classmate ko po, binibigayan na agad sila ng projects na parang employee n talaga pero under provision pa rin sila... sa programmer trainee po ba ganun din o itatrainee pa kame, if sa description ng job, bago sumabak sa mga projects?

hindi naman po sa nagmamadali ako sa mga projects, gusto ko rin namang magtrain... pero iniisip ko po ung salary din, magkaiba rin po ba?


:D


iba iba yan depende sa company na pinasukan mo. wag mo masyado problemahin yon title. importante may trabaho ka, galingan mo nlng para magiba ang title mo or humanap ka ng iba.

yung training kahi 10yrs ka na may training ka parin na kaylangan. di naman pwede tawagin programmer trainee yon diba
 
may ginawa akong application about user control and RDLC print. should i post the source file? or post the code and explain with photo? which would you prefer? i dont have that luxury of time kasi...
 
Re: Sql dates !

thanks sir. :))





ASK LANG AKO K'SYMB. Gusto ko sana yung input ko "JANUARY"(name of the months) instead of 1(integer) .. pero paano po yun ?



EXAMPLE CODE KO:

exec sp_veh_approved 1,2012

-gusto ko sana palitan yung 1 at ilagay ko JANUARY,, pero paano po yun?
kapag pinapalitan ko naman ng January hindi siya nagana,, kasi yung output ng date_survey ko is 1/1/2012 hindi january/1/2012 kaya d sya nagana pero baka may ibang way kayo dyan mga sir, para mafilter ko ito.. ? or just edit my code kung may nakita kayong pwedeng gawing solusyon.. thanks..

VALUE kasi ng sa SYSTEM ko JANUARY TO DECEMBER eh text siya hindi INT. kaya ganun... thanks .. :D

see pic..
View attachment 769469


eto code ko









CREATE PROCEDURE dbo.sp_veh_approved(@month int, @year
int) AS

SELECT DISTINCT COUNT(date_survey) AS DS
FROM survinfo_1dir a,survraw_1dir b
WHERE datepart(mm,date_survey) = @month AND datepart(mm,date_survey) = @year AND a.header_no=b.header_no

UNION ALL

SELECT DISTINCT COUNT(date_survey) AS DS
FROM survinfo_2dir c,survraw_2dir d
WHERE datepart(mm,date_survey) = @month AND datepart(yy,date_survey) = @year AND c.header_no=d.header_no

gumamit ka ng datetimepicker. custom format.
 
nyahahaha! tinatamad ako mag explain... anyway sa lahat ng naghahanap ng sample ng RDLC, heres the file, please see attached, pass is: oiksam, =)

added bonus to the sample: UserControl and RaiseEvent

hehehe. please feel free to ask questions. sasagot ako pag may time. hehehe god bless!

***EDIT***
compiled on vs2008
 

Attachments

  • WindowsApplication1.rar
    156 KB · Views: 29
Last edited:
W0W, thnx po sa TUTs! lalo na dun sa mga sql tuts. kc nagrerevolve sa database ang thesis namin.:thumbsup:
 
Mga ka SB, pa tulong naman. Bali gumagawa po kasi ako sa VB.net ng E-learning system namin, ang gusto ng Prof. namin, meron syang PROFILE like yung sa " Plants vs. Zombies" yung gagawa ka ng user/profile name, then Pwede mag continue kung saan tumigil ang player, for example, sa form nka disable na yung ibang buttons halimbawa 1st chapter, ma eenable lang yung 2nd chapter if tapos na yung 1st chapter, bali gusto ko po kasi yung pag click nya sa profile nya, tpos continue, tpos pwede na sya mag proceed sa chapter 2 kasi natapos nya na dati yung chapter 1.
 
Mga ka SB, pa tulong naman. Bali gumagawa po kasi ako sa VB.net ng E-learning system namin, ang gusto ng Prof. namin, meron syang PROFILE like yung sa " Plants vs. Zombies" yung gagawa ka ng user/profile name, then Pwede mag continue kung saan tumigil ang player, for example, sa form nka disable na yung ibang buttons halimbawa 1st chapter, ma eenable lang yung 2nd chapter if tapos na yung 1st chapter, bali gusto ko po kasi yung pag click nya sa profile nya, tpos continue, tpos pwede na sya mag proceed sa chapter 2 kasi natapos nya na dati yung chapter 1.

pag umabot na sya sa katapusan ng chapter 1, e flag mo ang chapter 1 as finished, tapos sa query mo, if chapter is finished then button is disabled. focus next chapter. (save mo sa database)
 
Pwede po ba sa windows 8 gumawa ng program? Nabasa ko kasi pangXP lang. Anu po yung para sa Win8? TIA
 
Back
Top Bottom