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 idol ano po ba dapat ilagay sa sales and inventory system ? :< 1st time ko kasi gumawa eh.
 
Dim strinput As double
Const cnstkwh As Double = 12.55
Dim strtotal As double

If cmdcompute.Value = True Then
double.tryparse( txtinput.Text, strinput)

if strinput <= 0 then
' do something here, zero encountered, or value in input has a character or symbol etc...
else
strtotal = strinput * cnstkwh
end if
End If


thank you po ng madami :)
 
Mga sir paanu po yung iprevent mo multiple login s vb.net nakanetwork ksi kmi. At pde sabay login. Pinapabago po samin ng mentor nmin s thesis.. Plss. Help
 
Mga sir paanu po yung iprevent mo multiple login s vb.net nakanetwork ksi kmi. At pde sabay login. Pinapabago po samin ng mentor nmin s thesis.. Plss. Help

Lagyan mo lang new field ang user table mo na pang-reference na log-in siya, at clear out mo lang yun pag log-out na. :)

Gud am!
 
Mga Master Pa-tulong naman po . Kahit mag search ako sa google. di ko parin ma gets yung mga sample nila.
may sample code po ba kayo or link na mas ma iintindihan ko ,

gamit ko
VS 2010
Crystal Report
MySQL

plan ko po
may textbox at button
ang ilalagay sa textbox name ng client tapos iddisplay na nya sa crystal report
kumbaga parameter po.
sana po matulungan nyo ako . please please please
 
Mga Sir Ask ko lang po kung panu ung search sa datagrid na ang gusto ko mangyari ay magpunta ung focus o maseselect nya ung buong row nung sinearch ko na specific data po?
 
MysqlConn.ConnectionString = "Server=192.168.***.***;Port=3306;Database=bccss;userid=root;" anu ba correct format neto mga boss..nag e-error kasi
 
MysqlConn.ConnectionString = "Server=192.168.***.***;Port=3306;Database=bccss;userid=root;" anu ba correct format neto mga boss..nag e-error kasi

Code:
MysqlConn.ConnectionString = "server=192.168.***.***;userid=root;password=;database=bccss"
 
Code:
MysqlConn.ConnectionString = "server=192.168.***.***;userid=root;password=;database=bccss"

ayaw pa rin eh e2 error niya ohh

View attachment 201665

OK NA PALA :D Thanks...need ko lang pala e configure ung privileges ng xampp

:3 ok na sana kaso pag ginamit ko siya sa ibang pc nag e-error...cannot connect ulit
 

Attachments

  • error.png
    error.png
    141.1 KB · Views: 16
Last edited:
ayaw pa rin eh e2 error niya ohh

View attachment 1001545

OK NA PALA :D Thanks...need ko lang pala e configure ung privileges ng xampp

:3 ok na sana kaso pag ginamit ko siya sa ibang pc nag e-error...cannot connect ulit

make sure naka enable ang mysqld sa client mo then you input correctly your ip server..make sure na din tamang naka network ang server at client mo
 
Hi good afternoon po, thanks po sa last time na help.
Ask ko naman po kung pano po mag limit ng file size sa igegenerate na file.
bali ang gusto ko po mangyari is, yung igegenerate ko na file is mahahati sya via file size
for example:
meron po ako ng 200mb file size na xml. gusto ko po sya sana mahati sa tig 50mb, at yung laman nya is katulad nung 200mb na file. parang continues lang ba ng file yon. in short in parts :)
 
Mga sir paanu po yung iprevent mo multiple login s vb.net nakanetwork ksi kmi. At pde sabay login. Pinapabago po samin ng mentor nmin s thesis.. Plss. Help

gumawa ka ng service sa server. dun mo ipalogin ang mga clients bago mo e store sa database ang login nya, lagyan mo ng thread na mag checheck if buhay pa ang linya ng client, if hindi, ang service ang mag aauto disconnect. if meron ibang mag lologin. ang service na din ang mag iidentify if buhay pa ang kabilang connection o hindi.

p.s. di ko pa na try to e code pero gagana yang concept ko, its much better than making another table in the database (ang problem kasi is, if hindi sya naka pag logout, nag crash ang system or other things na di nya ma update ang logout status sa database, mananatili na naka login ang status nya).
 
gumawa ka ng service sa server. dun mo ipalogin ang mga clients bago mo e store sa database ang login nya, lagyan mo ng thread na mag checheck if buhay pa ang linya ng client, if hindi, ang service ang mag aauto disconnect. if meron ibang mag lologin. ang service na din ang mag iidentify if buhay pa ang kabilang connection o hindi.

sir na intriga ako dito meron ka po bang sample code sa pag checking thanks :)
 
pano ko ita-transfer un data sa datagridview1 papunta sa datagridview2?
dapat ganito output nia sa datagridview2.
thanks
 

Attachments

  • two dgrid.png
    two dgrid.png
    10 KB · Views: 14
good day mga bossing,

bago pa po ako sa vb.net gusto kung matuto pero wala akong vb.net, saan po kaya maganda mag download ng visual studio express,

salamat mga bossing, yeah men apir!!!
 
Hello... Magandang Hapon :)

I just want to ask what would be the best way to get the list of printer which is locally installed to "client" (not the server) , or may be the default printer of a client...
Much better if i will not use third party software nor any add ons to do this..
Any answer will be greatly appreciated..



I am using asp.net webform .. thx in advance.
 
good day mga bossing,

bago pa po ako sa vb.net gusto kung matuto pero wala akong vb.net, saan po kaya maganda mag download ng visual studio express,

salamat mga bossing, yeah men apir!!!



sa loob ng arrow button click event select/kunin mo ng selected row ng gridview1 tapos insert/add mo sa gridview 2.

Sample:

Gridview2.rows.add(Gridview1.SelectedRow())

OR

Dim SeledtedRow as Datarow =Gridview1.SelectedRow()
Gridview2.rows.add(SeledtedRow)

OR (function/sub)


Sub fnTransferDataRow(Byval gridview1 as Datagridview, Byref gridview2 as Datagridview)

gridview2.rows.add(gridview1.SelectedRow())

End Sub

call mo lang yan tas lagay mo sa parameter yung mga gridview.

Kung gusto mo ng validation loop ka lang sa gridview2 validate mo kung existing na yung selected row para hindi mag duplicate.

:p
 
Last edited:
Magandang gabi mga master,
patulong naman.
Paano gumawa ng Optical Mark Recognition Software, ano ano ang dapat ko iresearch tungkol sa vb.net
https://www.youtube.com/watch?v=4Kul-mHgHVo
ganto po sana ang balak kong gawin. nag try ako sa matlab kaso di ko magawa yung icocompare nya yung certain region pixel sa dalawang image.
 
sir na intriga ako dito meron ka po bang sample code sa pag checking thanks :)

wala ako sample code, di ko pa kasi na try na sa service e code, gumamit ka ng tcp socket. pagkausapin mo ang server at client. (parang LAN chat) kaso ang server ang nag chachat to client and vice versa.

this is a sample working code (LAN chat but you need to specify the IP address):

gawa ka nalang ng form. add ka 1 listbox (chatbox), 2 textbox(sendmessage, target IP), 1 button(send), 1 timer
*** NOTE: nasa textbox2 ang target IP address

Code:
Imports System.Net.Sockets
Imports System.Threading
Imports System.IO

Public Class Form1
    Private serverSocket As New TcpListener(5678)
    Private clientSocket As New TcpClient
    Private Message As String = ""

    Private Sub Listening()
        serverSocket.Start()
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim ListenerThread As New Thread(New ThreadStart(AddressOf Listening))
        ListenerThread.Start()
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If serverSocket.Pending = True Then
            Message = Nothing

            clientSocket = serverSocket.AcceptTcpClient()

            Dim Reader As New StreamReader(clientSocket.GetStream())
            While Reader.Peek > -1
                Message = Message + Convert.ToChar(Reader.Read()).ToString
            End While

            ListBox1.Items.Add(Message)
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            clientSocket = New TcpClient(TextBox2.Text, 5678)

            Using Writer As New StreamWriter(clientSocket.GetStream())
                Writer.Write(TextBox1.Text)
                Writer.Flush()
            End Using

            ListBox1.Items.Add(TextBox1.Text)
            TextBox1.Text = Nothing
        Catch ex As Exception

        End Try
    End Sub
End Class

- - - Updated - - -

pano ko ita-transfer un data sa datagridview1 papunta sa datagridview2?
dapat ganito output nia sa datagridview2.
thanks

if the data from grid1 is from database, e SELECT SUM GROUP BY mo, if the data is manually created, search mo LINQ
 
How to get a list of printer installed from "Client" not "server"?

Im using webform..
 
Back
Top Bottom