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 expert here...

i'm converting my existing vb6 program to vb.net from scratch...

guide nyo naman po ako... backend ko po eh mysql which is kargada ng maraming data...dahil gamit ng existing....

ma aapply ko po ba yung codes sa 1st page... connection string lang ba babaguhin ko pati yung gagamitin kong reference which is mysql.data...
 
PAHELP PO SA MGA PROGRAMMERS :(
ANY PROGRAMMING LANGUAGE: vb.net, c#.net
PROBLEM: ihiwalay ang mga numero at ilagay sa separate na mga textboxes.

EXAMPLE 1:
NUMBER OF TEXTBOX: 5
VALUE: 1234

RESULT:
TEXTBOX1 = 0
TEXTBOX2 = 1
TEXTBOX3 = 2
TEXTBOX3 = 3
TEXTBOX3 = 4

EXAMPLE 2:
NUMBER OF TEXTBOX: 3
VALUE: 9

RESULT:
TEXTBOX1 = 0
TEXTBOX2 = 0
TEXTBOX3 = 9

EXAMPLE 3:
NUMBER OF TEXTBOX: 2
VALUE: 45

RESULT:
TEXTBOX1 = 4
TEXTBOX2 = 5
 
Sir need help.. Is it possible for me, to set an image background on textbox ? need help sir!
 
mga expert here...

i'm converting my existing vb6 program to vb.net from scratch...

guide nyo naman po ako... backend ko po eh mysql which is kargada ng maraming data...dahil gamit ng existing....

ma aapply ko po ba yung codes sa 1st page... connection string lang ba babaguhin ko pati yung gagamitin kong reference which is mysql.data...

yes for all of it.

Sir need help.. Is it possible for me, to set an image background on textbox ? need help sir!

hindi ata maganda yang balak mo, it would be very hard to read its contents pag may image sa background.
 
yes for all of it.



hindi ata maganda yang balak mo, it would be very hard to read its contents pag may image sa background.

hhe .. I really need it sir.. don't mind about that problem... I am not making a large file project I need it on purpose
 
Mga sir pano po ba mag lagay/insert or import i dont know d term, ng .SQL file sa VB.net? Di ko kasi mahanap ! kahit tutorial wala rin sa google... may wizard ba para mas madali ? Pa turo naman kung pano mga sir . .Tnx :help::pray:
 
hhe .. I really need it sir.. don't mind about that problem... I am not making a large file project I need it on purpose

then just set the background color as transparent then place it on top an image.


Mga sir pano po ba mag lagay/insert or import i dont know d term, ng .SQL file sa VB.net? Di ko kasi mahanap ! kahit tutorial wala rin sa google... may wizard ba para mas madali ? Pa turo naman kung pano mga sir . .Tnx :help::pray:

di ko gets kung ano need mo eh. sa first page may sample ng paghandle ng data sa database. kahit anong database yon changel ang ng connection string.
 
PAHELP PO SA MGA PROGRAMMERS :(
ANY PROGRAMMING LANGUAGE: vb.net, c#.net
PROBLEM: ihiwalay ang mga numero at ilagay sa separate na mga textboxes.

EXAMPLE 1:
NUMBER OF TEXTBOX: 5
VALUE: 1234

RESULT:
TEXTBOX1 = 0
TEXTBOX2 = 1
TEXTBOX3 = 2
TEXTBOX3 = 3
TEXTBOX3 = 4

EXAMPLE 2:
NUMBER OF TEXTBOX: 3
VALUE: 9

RESULT:
TEXTBOX1 = 0
TEXTBOX2 = 0
TEXTBOX3 = 9

EXAMPLE 3:
NUMBER OF TEXTBOX: 2
VALUE: 45

RESULT:
TEXTBOX1 = 4
TEXTBOX2 = 5

pwede ko iask kung para san yan, at bakit ganyan ang approach mo., well baka lang kasi may mas ok pa na approach kesa dyan... if ganyan talaga pwede kang gumawa ng sarili mong code na magcrecreate ng isang textbox dynamically.. it short new textbox control lagi..

for eg..

dim txt_new as new textbox()
me.controls.add(txt_new)
txt_new.name = "txt_new_name"
txt_new.text = "This is a dynamic textbox :)"
txt_new.location = new point(100,100)
txt_new.bringtofront()
 
Mga sir pano po ba mag lagay/insert or import i dont know d term, ng .SQL file sa VB.net? Di ko kasi mahanap ! kahit tutorial wala rin sa google... may wizard ba para mas madali ? Pa turo naman kung pano mga sir . .Tnx :help::pray:

baka ang ibig sabihin is magrun ng sql script file using vb.net?.. ahm, ang ginagawa ko pag ganyan, kinukuha ko lang value na sa .sql file..

for eg.. ang laman ng .sql file is create table etc.. blah blah...

sa vb.net ang ginagawa ko dyan is iloload ko lang ang text value na yan sa isang variable (for eg. sql_script) then irurun ko using adodb connection..

let's assume na meron akong active connection (adodb), for eg.. cnSQL yun..

so..

cnSQL.Execute sql_script

in short ang nangyari dyan is ..

cnSQL.Execute "CREATE TABLE etc.. blah blah"

gets mo?... :)
 
Patulong naman po sa mga expert. TIA!

Gagawa po sana ako ng simple coffee shop system sa VB. Bale parang ganito po yung interface:

Yung mga products eh naka picturebox. Pag-click ng bawat picture, may lalabas na text sa listbox na name nung product and yung price.
~~

Hindi ko po magawa yung pag-remove ng isang item sa listbox na nakaselect, pero pag clear all ok naman. Ano po kayang code para sa button na REMOVE?

TIA mga master! :salute:
 
Patulong naman po sa mga expert. TIA!

Gagawa po sana ako ng simple coffee shop system sa VB. Bale parang ganito po yung interface:

Yung mga products eh naka picturebox. Pag-click ng bawat picture, may lalabas na text sa listbox na name nung product and yung price.
~~

Hindi ko po magawa yung pag-remove ng isang item sa listbox na nakaselect, pero pag clear all ok naman. Ano po kayang code para sa button na REMOVE?

TIA mga master! :salute:

Code:
If ListBox1.SelectedIndex >= 0 Then
ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)
End If
 
advisable po ba gumamit ng mdi form sa vb.net?

im starting my conversion of vb6 program to vb.net, dun kasi sa current vb6 program ko na naka deploy naka mdi ako...

advice naman ng mga di na dapat gamitin sa vb.net na controls if ever....

dagdag ko na din po.... if mag gagawa ako ng list ng mga variables na gagamitin ko or declared ko ng public... ano po ang pwedeng alternative sa module, parang nabasa ko last time na sabi ni sir eric wag na gumamit ng module... correct me po baka mali lang intindi ko...

TIA
 
Last edited:
Getting the year(DATE) and put it in combobox.

Pa help nga po ulit mga ka SYMB..


Paano ko po ididisplay sa combobox1 yung YEAR na ang value ay DATE sa combobox2.

Once na k’nlick ko yung 5/10/2006 dapat magiging 2006 yung Value ng combobox2 ko. Thanks… SEE image…


View attachment 129674


:help::help::help::pray::pray::pray::pray:
 

Attachments

  • putting text in combobox.JPG
    putting text in combobox.JPG
    24.9 KB · Views: 8
:help: Noob Question lang po. bago lang po kasi ako sa pag gamit ng Visual Studio at kinakapa ko lang. Is it possible that cells in a Report Viewer would be clickable? Thanks in advance! :salute:
 
Code:
If ListBox1.SelectedIndex >= 0 Then
ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)
End If

Thanks po!

May tanong pa po ako. Pano po maa-add yung mga price ng listbox tapos lalabas yung total sa textbox na nasa baba (see picture below po)

attachment.php


bale icclick po yung pic tapos lalabas sa listbox. :D

Code:
 Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        ListBox1.Items.Add("Capuccino       20.00")
        ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1
    End Sub

Salamat po sa mga sasagot! :salute: :praise:
 

Attachments

  • coffee.jpg
    coffee.jpg
    44.3 KB · Views: 56
Thanks po!

May tanong pa po ako. Pano po maa-add yung mga price ng listbox tapos lalabas yung total sa textbox na nasa baba (see picture below po)

http://www.symbianize.com/attachment.php?attachmentid=768828&stc=1&d=1374581236

bale icclick po yung pic tapos lalabas sa listbox. :D

Code:
 Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        ListBox1.Items.Add("Capuccino       20.00")
        ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1
    End Sub

Salamat po sa mga sasagot! :salute: :praise:

Try mo LISTVIEW or DATAGRIDVIEW ang gamitin mo instead na Listbox pinaka efficient na paraan yan..
sample :
View attachment 129711
View attachment 129712
View attachment 129713


Pa help nga po ulit mga ka SYMB..


Paano ko po ididisplay sa combobox1 yung YEAR na ang value ay DATE sa combobox2.

Once na k’nlick ko yung 5/10/2006 dapat magiging 2006 yung Value ng combobox2 ko. Thanks… SEE image…


View attachment 768723


:help::help::help::pray::pray::pray::pray:
Try mo isplit ung date or may method sa .net na makukuha yung year lng..

example po eto
Code:
 Dim getYear As String = "1/1/2012"
 Dim year As String = CDate(getYear).Year'eto ung need natin para madisplay dun sa kabilang combobox
pwede mo ngirekta
Code:
combobox1.text=year
 

Attachments

  • sample1.png
    sample1.png
    190.7 KB · Views: 20
  • sample2.png
    sample2.png
    220.4 KB · Views: 11
  • sample3.png
    sample3.png
    213.1 KB · Views: 11
Last edited:
Thanks po!

May tanong pa po ako. Pano po maa-add yung mga price ng listbox tapos lalabas yung total sa textbox na nasa baba (see picture below po)

http://www.symbianize.com/attachment.php?attachmentid=768828&stc=1&d=1374581236

bale icclick po yung pic tapos lalabas sa listbox. :D

Code:
 Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        ListBox1.Items.Add("Capuccino       20.00")
        ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1
    End Sub

Salamat po sa mga sasagot! :salute: :praise:

Gamit ka na lang ng ListView, instead of ListBox.
Item Name and Price can be place in separate columns.

Baka makatulong ang link na to
 
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
 
Back
Top Bottom