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 Sir patulong naman sa problema ko
Baguhan lang po ako sa vb 2010,
Eto po ang problema ko
Pano ko iaasign ang value ng variable sa isa sa mga fields ng database table?

Halimbawa po

Dim student_id as String
student_id = "00-001"

Pano ko po iaassign ang value ng student_id (00-001) sa student_id field ng student.accdb?
 
May sample codes po ba kayo nang speech to word recognition? And patutor naman po yung mga declaration na gnmit. Salamat
 
Last edited:
Mga Sir patulong naman sa problema ko
Baguhan lang po ako sa vb 2010,
Eto po ang problema ko
Pano ko iaasign ang value ng variable sa isa sa mga fields ng database table?

Halimbawa po

Dim student_id as String
student_id = "00-001"

Pano ko po iaassign ang value ng student_id (00-001) sa student_id field ng student.accdb?

Gumamit po kayo ng '.toString' command.
Halimbawa po, may TextBox field tayo, so sa code:

student_id = (TextBox.text).toString

Para po lahat ng ilagay nya sa field na yon ay maging string, para po pwede syang maistore sa string variable.
O kaya naman po ay gumamit tayo ng MaskTextbox instead na normal lang na TextBox para mas madalian po tayo. Kahit wala na pong .toString command yun. Parang ganito nalang po yung code pag ito ginamit nyo:

Dim studentID As String = MaskedTextBox1.Text

At dapat po, text ang attribute ng nasa database, hidi int

Sa pagasign naman po ng value ng isang variable sa database, ganito lang po (I'm gonna show a whole code here):

//Global variables
Dim connectionString As String = "Server=localhost;database=dbcavs;user=root;password="
Dim conn As New MySqlConnection


//code for button, like insert or something
conn.open()

Dim command As New MySqlCommand
Dim studentID as string = MaskTextBox1.text //kung mask textbox ang nagamit

command.Connection = conn

command.CommandText = "INSERT INTO `tblName`(`Stud_ID`
//[name of variable to store to in the database]) VALUES ('" & studentID & "')"

conn.close()


Ganyan lang po kasimple! :yipee:
 
Kakarot1212
Maraming salamat sa sagot sir... Try ko yan,
A sir pano naman kung wala akong gamit na textbox
Halimbawa radio button gamit ko sa civil status Field

Civil Status
* Single
* married
* separated
* widow

Tas sinelect ng user ang married? Pano ko isasave o i aasign ang married sa field, alam ko na gagamit ng conditional statement. Pero diko alam pano iaasign sa field ang output kung wala akong ginamit na textbox
Salamat po ulet sa pagpansin more powers
 
Sir TS, Is there anyway na makuha ang ip addresses or mac addresses ng mga devices tulad ng computers na connected sa router in vb.net? If yes, can you give ideas how to do it at kung hindi bakit hindi?



Thanks TS. :praise::thumbsup::praise:
 
Kakarot1212
Maraming salamat sa sagot sir... Try ko yan,
A sir pano naman kung wala akong gamit na textbox
Halimbawa radio button gamit ko sa civil status Field

Civil Status
* Single
* married
* separated
* widow

Tas sinelect ng user ang married? Pano ko isasave o i aasign ang married sa field, alam ko na gagamit ng conditional statement. Pero diko alam pano iaasign sa field ang output kung wala akong ginamit na textbox
Salamat po ulet sa pagpansin more powers

pwede ka gumamit ng variable then iupdate mo yun on the checkchanged event ng radio button mo.

Code:
dim CS as string
private sub radioMarried_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles radioMarried.CheckedChanged
cs = "Married"
end sub

pwede din pag saving na mag nested if ka

Code:
if radiomarried.checked then 
  <insert code here>
elseif radiosingle.checked then
  <insert code here>
.......
end if

Sir TS, Is there anyway na makuha ang ip addresses or mac addresses ng mga devices tulad ng computers na connected sa router in vb.net? If yes, can you give ideas how to do it at kung hindi bakit hindi?


Thanks TS. :praise::thumbsup::praise:

this will get the macaddress of the FIRST adapter connected.
Code:
  Private Function getMacAddress()
        Dim nics() As System.Net.NetworkInformation.NetworkInterface = _
              System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces
        Return nics(0).GetPhysicalAddress.ToString
    End Function
 
mga sir p help nmn.

kasi po gumgawa ako ng all in one installer.. meron ako 5 checkbox and 1 button gusto ko sana icommand yung button para mag run yung checkbox..panu po command nun?example po pag click ko yung button den dapat po magrarun yung checkbox.
 
code mo, and ano error?

- - - Updated - - -

- - - Updated - - -

anong run ang point mo dyan?, malabo eh, if gusto mo lahat n checkbox ay mattriger sa isang command, pwede k gumamit ng collection, gawin mong isang collection yan

- - - Updated - - -

mga sir p help nmn.

kasi po gumgawa ako ng all in one installer.. meron ako 5 checkbox and 1 button gusto ko sana icommand yung button para mag run yung checkbox..panu po command nun?example po pag click ko yung button den dapat po magrarun yung checkbox.

anong run ang point mo dyan?, malabo eh, if gusto mo lahat n checkbox ay mattriger sa isang command, pwede k gumamit ng collection, gawin mong isang collection yan
 
Last edited:
mga sir p help nmn.

kasi po gumgawa ako ng all in one installer.. meron ako 5 checkbox and 1 button gusto ko sana icommand yung button para mag run yung checkbox..panu po command nun?example po pag click ko yung button den dapat po magrarun yung checkbox.



first of all, hindi nagrun ang checkbox. baka ibig mo sabihin mag run setup na indicated sa checkbox.
first kaylangan alam mo yung path nung setup na tinuturo ng checkbox mo then gumamit ka ng nested if and process.start

Code:
private sub button1(.......)
   if checkbox1.checked then
     process.start(path1)
     else if checkbox2.checked then
     process.start(path2)
   else if ....
   ....
   end if
end sub
 
help naman mga ka symb......... Cnu po sa inyo may alam ng installer para sa vb.net ultimate 2013 programs. Tapos n po kac ako sa program kaso gusto ko mapagana sa ibang pc via install na. Sana may makapag bigay. :praise: :praise: :praise: :praise: :praise:
 
Mga ka sb meron ba may template ng data tracker dyan? Kailangan ko lang is subject, sender, date sent, receiver,date received, remarks, may history po at pwedeng ma print po + searching ng sender or date filter. vb6-access lang po. Thanks in advance sa makakatulong.

[email protected]
 
Last edited:
Boss. ask lang po. pano po ba mag create ng array sa object sa Visual Studio 2012 express.?
ang hirap po kasi kung hindi naka array lalo na pag maramihan po ung mga textbox..

gusto ko po sana mag for loop

possible po ba sa VS2012 ung texbox1(0) array index?
 
Good day po. Ilang araw narin po kasi akong nagsesearch at try magcode para po magprint gamit ang arduino thermal printer. kaya lang po simpleng pagprint iba po lumalabas. mga unknown characters po . Baka po may nakakaalam po magpapatulong narin po ako. salamat po.View attachment 221005View attachment 221006

yan po sample image ng print nya at pati po yung printer na gamit ko.
 

Attachments

  • 11657290_993149524052234_879566631_n.jpg
    11657290_993149524052234_879566631_n.jpg
    47.5 KB · Views: 7
  • 11713619_993149537385566_2138510874_n.jpg
    11713619_993149537385566_2138510874_n.jpg
    50.5 KB · Views: 11
Last edited:
Mga master may idea po ba kayo sa OCR / OPEN CV ? Hindi ko po kasi makuha yung algorithm na gagamitin sa kanya . Baka may mga payo po kayo o sourcecode na pwede ko gawing basihan?

Salamat :praise:
 
Boss. ask lang po. pano po ba mag create ng array sa object sa Visual Studio 2012 express.?
ang hirap po kasi kung hindi naka array lalo na pag maramihan po ung mga textbox..

gusto ko po sana mag for loop

possible po ba sa VS2012 ung texbox1(0) array index?


Try mo nga ito

Dim myTextbox(10) as Textbox

For ctr as integer = 0 to 9
myTextbox(ctr) = New Textbox
End for
 
Back
Top Bottom