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!

sir, pwede favor po?
pwede po bang humingi ng LECTURE mo about VB.NET:)


eto po tanong ko

1.how to connect ms.access in vb.net or vb.net to msaccess??
(using connection string)

2.how to add/manipulate data from/using vb.net to / and ms access?




big help po kayo kung mtulungan niu po ako :pray::salute:
thanks po :)

punta po kayo ng first page..
 
sir...pede po ba pautlong ....vb.net2010 to mysql ang gamet ko..... pano po ang command pag gusto ko pang palabasen ung fieldnamesl ang ng table sa database papunta sa vb.net combo box...?? :upset::upset::upset::upset::pray::pray::pray:
 
First Post:

Populating DataGridView using MSAccess Database

attachment.php


Shown in 3ways
-using Dataset
-using DataReader
-binding the DataGridView to a dataset

attachment.php


Important points to learn:
OleDBConnection
OleDBCommand
OleDBAdapter
Dataset
DataReader
DataTable
Using My.Settings to save the database path

Program will search for the database if not found;
Sample code has comments as to how it is done
Post further questions if necessary:

Basic Steps:

Create a project:
Add a form:
Add this to the forms top most code
"Imports System.Data.OleDb"
Add the DataGridView
For non databound grid,
add the necessary columns using the datagridview designer (when selected; click the [>] button on the top rigth of the grid)
Follow the code provided


the file
ericVBNETAccess.rar
contains the design for the application series i wanted to construct for this thread
you will notice, walang pop windows, nasa tab page lang ang forms.
stay tuned to know how it is done.

UPDATED! - loading data into listview.

Updated SQL Server Sample
http://www.symbianize.com/attachment.php?attachmentid=369167&stc=1&d=1310119089

check also thee links
http://www.symbianize.com/showpost.php?p=8292447&postcount=2560
http://www.symbianize.com/showpost.php?p=8292571&postcount=2561
http://www.symbianize.com/showpost.php?p=8292709&postcount=2562



sir...pede po ba patulong......vb.net2010 to mysql ang gamet ko..... pano po ang command pag gusto ko pang palabasen ung fieldnamesl ang ng table sa database papunta sa vb.net combo box...?? :help::help::help::help::help::help::help:
 
sir...pede po ba patulong......vb.net2010 to mysql ang gamet ko..... pano po ang command pag gusto ko pang palabasen ung fieldnamesl ang ng table sa database papunta sa vb.net combo box...?? :help::help::help::help::help::help::help:

heto po and example ate..
Imports MySql.Data.MySqlClient

Public Class Form1
Dim con As MySqlConnection


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

con = New MySqlConnection("Server=localhost;Database=dbName;Uid=m_user;Pwd=1234;")

Dim str As String = "SELECT * FROM Movie"
Dim cmd As New MySqlCommand(str, con)

Dim da As New MySqlDataAdapter(cmd)

Dim ds As New DataSet()

da.Fill(ds, "Movie")

' Display the column names
Dim dc As DataColumn
For Each dc In ds.Tables(0).Columns
ComboBox1.Items.Add(dc.ColumnName)
Next
End Sub
End Class
 
nakalimutan ko XD.. patingin po muna nung current progress ng nagawa mo na para ma tulungan ka namen sa problem mo.. or if may mali sa ginagawa mo..


Actually mga sir wala pa ko nasimulan . Dami pa kc ginagawa sa school. Hehe. Baka p bukas simulan ko na . Pero kung may nasimulan a po kau patingin nmn po. :pray:
 
sir paano po mag ascending at descending sa loob ng listbox using loop statement...sana po m2lungan niyo ako salamat..
 
code po for image control para magappear po ung image na naselect sa listbox.. tnx po.. asp.net.. visual studio 2008..

ganito lng algo nyan...

maglagay ka ng value sa tag property ng listbox items...
for example pic1:
gamit ka ngayn ng if-else condition or switch statement...

Code:
if(tag=="pic1"){'do code here...}
 
ganito lng algo nyan...

maglagay ka ng value sa tag property ng listbox items...
for example pic1:
gamit ka ngayn ng if-else condition or switch statement...

Code:
if(tag=="pic1"){'do code here...}
bigay mo na sakin ung code sir para mkapasa na po kami, hanggang 12pm na lng po ngayon.. :(

meron na pong mga items ung listbox ko, my image control na rin po ako, nasa image folder na mga images ko, ano na po gagawin ko?
 
bigay mo na sakin ung code sir para mkapasa na po kami, hanggang 12pm na lng po ngayon.. :(

meron na pong mga items ung listbox ko, my image control na rin po ako, nasa image folder na mga images ko, ano na po gagawin ko?

dami pang oras...
paano mo nilagyan ng laman ang listbox mo?
asan code mo?
 
nilagyan ko po sa pamamagitan ng edit items..
ang nacode ko pa lng po, ung sa literal control, nilagay ko ang code sa listbox..
Literal1.Text = ListBox1.SelectedItem.Text
 
nilagyan ko po sa pamamagitan ng edit items..
ang nacode ko pa lng po, ung sa literal control, nilagay ko ang code sa listbox..
Literal1.Text = ListBox1.SelectedItem.Text

ganyan ba ginawa mo?

ganito.jpg
 
mga kaibgan patulong sa system sa sale mga codes nahihirapan ako,,halimbawa pag bibili ng gamot naka bar code at automatic lalabas na ang price,,saka sa inventory,,kagayang kagaya mismo sa ginagamit sa mga drug store...:weep:
 
mga kaibgan patulong sa system sa sale mga codes nahihirapan ako,,halimbawa pag bibili ng gamot naka bar code at automatic lalabas na ang price,,saka sa inventory,,kagayang kagaya mismo sa ginagamit sa mga drug store...:weep:

may barcode reader na kayo?
 
ganyan ba dapat sir gagawin ko? tapos po ano ng susunod jan?

depende sayo kung ano ang naintindihan mo... diskarte mo yan ikaw programmer eh...

un nga gumawa ka ng conditional statement mo...
example ganito..

Code:
if (item.Text=="a"){
                            Image1.ImageUrl = "~/Resources/75378-TrollFace.png";
                        }
                        else if (item.Text == "b") { Image1.ImageUrl = "~/Resources/BSOD_Main.png"; }

kapag hindi mo naintidihan dyan pa lng wala na talaga...
 
Back
Top Bottom