Jx_Man 987 Nearly a Senior Poster Featured Poster

there are code for this....
sorry if it can't help you.

ITKnight commented: trims +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Neji commented: thanks for links +1
Naruse commented: helps link +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Ok. Happy coding friend :)

dnk commented: i see :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Try This Following Code :

private declare function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA" (ByVal hwnd As Long,ByVal pszRootPath As String,ByVal dwFlags As Long) As Long
Private Const SHERB_NORMAL = &H10
Private Const SHERB_NOCONFIRMATION = &H1
Private Const SHERB_NOPROGRESSUI = &H2
Private Const SHERB_NOSOUND = &H4
Private Const SHERB_NOALL = _
(SHERB_NOCONFIRMATION And _
SHERB_NOPROGRESSUI And SHERB_NOSOUND)

Dim RetVal As Long
Private Sub Command1_Click()
   Dim y as Integer
   y = MsgBox("Are u sure to clean up Recycle Bin ? ", vbYesNo, "Confirmation"
   If y = vbYes Then
      RetVal = SHEmptyRecycleBin(0&,vbNullString,&H1)
   MsgBox "Recycle Bin has been cleaned"
   End If
End Sub

Ok. Hope This Helps.

Sawamura commented: Perfect :) +1
Neji commented: Great coding..... +1
dnk commented: Good +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

try this :

For Each controlx In Form3.Controls
    If TypeOf controlx Is TextBox Then controlx.Text = ""
Next controlx
dnk commented: worked +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

try this following code :

Public Sub ClearTextBox(ByVal root As Control)
        For Each ctrl As Control In root.Controls
            ClearTextBox(ctrl)
            If TypeOf ctrl Is TextBox Then
                CType(ctrl, TextBox).Text = String.Empty
            End If
        Next ctrl
    End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ClearTextBox(Me)
End Sub

Ok. Hope this helps.

dnk commented: Worked +1
Neji commented: Great +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

see this sample program, but its not originally from me.

Image Processing.zip

Ok. Hope this helps

Sawamura commented: :) +1
ITKnight commented: Well, great post +1
Jade_me commented: Nice +1
Estella commented: Thanks to share code +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

oh... sorry.
i repost the attachment :

Files Selected.zip

Jade_me commented: Pretty good +1
Sawamura commented: peace of code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

you're welcome all.

Jade_me commented: Helpfull person +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

sorry i got some error while i compiled this program.
this a sample for asterix character using.

Use Asterix Symbol in input dialog box.zip

hope this helps.

Naruse commented: thanks friend :) +1
Estella commented: Great +1
Sawamura commented: awesome program...never know this before +1
ITKnight commented: nice one +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

no, its not inserted in picture box. to play swf file you must use shockwaveflash. find this component and add to your toolbox.
right click on your toolbox (or control + T) -> in tab controls find "shockwave flash" -> select it and it will shown on your toolbox control.
use this control on your form.
then add this code to play :

Private Sub Play_Click()
ShockwaveFlash1.Play
End Sub

Private Sub Pause_Click()
ShockwaveFlash1.StopPlay
End Sub

Private Sub Rewind_Click()
ShockwaveFlash1.Rewind
End Sub

Private Sub LoadMovies_Click()
Call ShockwaveFlash1.LoadMovie(0, "C:\Documents and Settings\Jerry\My Documents\Games Flash\ninja.swf")
End Sub
november_pooh commented: i learning Here +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

See my attachment program :

SimpleDbProccess.zip

i suggest to write code with your own logic, cause you'll get understanding more.
Ok.
Happy coding Friend :)

Naruse commented: thanks for the code +1
Jade_me commented: Great +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

actually not me but lewisC

Sawamura commented: great attitude... +3
Jx_Man 987 Nearly a Senior Poster Featured Poster
ITKnight commented: thanks for the links +1
Estella commented: Helpfull links +1
dnk commented: wow +1
Sawamura commented: thanks... +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

actually you didn't give much information for your problem.what database that you've using?
see this link :
http://www.codeproject.com/KB/database/relationaladonet.aspx

Jhermzb_22 commented: pls let me know how to add different records in database using dataset +0
Vega_Knight commented: help as always +2
Jx_Man 987 Nearly a Senior Poster Featured Poster

your code just less single quote sign.

select TBIn.NoTbin,TBIn.IdBrg, Barang.NameBrg,TBIn.SupCode,Supplier.SupName from TBIn,Barang,Supplier
where TBIn.SupCode=Supplier.SupCode and
TBIn.IdBrg=Barang.IdBrg and
TBIn.IdBrg = [B]'B002'[/B]
ITKnight commented: Thanks to recovering my code +1
Jade_me commented: yes +1
november_pooh commented: Nice +3
Jx_Man 987 Nearly a Senior Poster Featured Poster

you're welcome.
happy coding and once again careful with the code.

Neji commented: Great Code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster
Sawamura commented: nice site +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Try This following Code :

Option Explicit

Private Const No_ERROR = 0

Private Declare Function inet_addr Lib "wsock32.dll" (ByVal s As String) As Long
Private Declare Function SendARP Lib "iphlpapi.dll" (ByVal DestIp As Long, ByVal ScrIP As Long, pMacAddr As Long, PhyAddrLen As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (dst As Any, src As Any, ByVal bcount As Long)

Private Function GetRemoteMACAddress(ByVal sRemoteIP As String, sRemoteMacAddress As String) As Boolean
    Dim dwRemoteIp As Long
    Dim pMacAddr As Long
    Dim bpMacAddr() As Byte
    Dim PhyAddrLen As Long
    Dim cnt As Long
    Dim tmp As String
    
    dwRemoteIp = inet_addr(sRemoteIP)
    If dwRemoteIp <> 0 Then
        PhyAddrLen = 6
        If SendARP(dwRemoteIp, 0&, pMacAddr, PhyAddrLen) = No_ERROR Then
            If pMacAddr <> 0 And PhyAddrLen <> 0 Then
                ReDim bpMacAddr(0 To PhyAddrLen - 1)
                CopyMemory bpMacAddr(0), pMacAddr, ByVal PhyAddrLen
                For cnt = 0 To PhyAddrLen - 1
                    If bpMacAddr(cnt) = 0 Then
                        tmp = tmp & "00-"
                    Else
                        tmp = tmp & Hex$(bpMacAddr(cnt)) & "-"
                    End If
                Next
                
                If Len(tmp) > 0 Then
                    sRemoteMacAddress = Left$(tmp, Len(tmp) - 1)
                    GetRemoteMACAddress = True
                End If
                
                Exit Function
            Else
                GetRemoteMACAddress = False
            End If
        Else
            GetRemoteMACAddress = False
        End If
    Else
        GetRemoteMACAddress = False
    End If
End Function

Private Sub btnGetMac_Click()
Dim sRemoteMacAddress As String
If Len(txtIpAddress.Text) > 0 Then
    If GetRemoteMACAddress(txtIpAddress.Text, sRemoteMacAddress) Then
        lblMacAddress.Caption = sRemoteMacAddress
    Else
        lblMacAddress.Caption = "(SendARP call failed)"
    End If
End If
End Sub

Actually this code can use as hacking tool, so use this code carefully friend.

Estella commented: What A Wonderful Code :) +1
Naruse commented: Never Know about this before +1
ITKnight commented: i grab this code :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

use this api function estella :

Private Declare Function inet_addr Lib "wsock32.dll" (ByVal s As String) As Long
Private Declare Function SendARP Lib "iphlpapi.dll" (ByVal DestIp As Long, ByVal ScrIP As Long, pMacAddr As Long, PhyAddrLen As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (dst As Any, src As Any, ByVal bcount As Long)
jonc commented: Fantastic, always wondered how that was done. +1
dnk commented: great +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Estella commented: thanks +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

try this following code to remove item on listview :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        For Each lvItem As ListViewItem In ListView1.SelectedItems
            lvItem.Remove()
        Next
End Sub

Ok . Hope this helps...

Jade_me commented: perfect +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

yes

hawisme000 commented: good guy , Great HELP! +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

asc = to get ascii.
mid = take a letter from taken value position and sum of value which it taken.
ex: mid("perfect",2,4) result = erfe
ReDim statement to serve as the initial declaration of a dynamic array. The array does not have to be declared anywhere else.

Asc(Mid(Label1.Caption, i + 1, 1)) - 77
get letter from label1 with mid function start from i+1 as many one letter and the result convert to ascii. then ascii be shift as 77.

Jade_me commented: Great Code +1
Neji commented: awsome program :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

See this my encryption method, this a simple one. you can use this code to save the encryption result to database and read database with encryption reading.

Encrypt.zip

This is a screenshoot from my encryption.

hawisme000 commented: VERY HELPFULL ADVICES +1
Estella commented: Greatfull +1
Sawamura commented: WOW :) +1
ITKnight commented: wonderful Code +1
Naruse commented: powerfull code +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Chris...
Welcome To Daniweb :)
Fell free to post your question in this forums...

Jx_Man 987 Nearly a Senior Poster Featured Poster

actually in this forum contain many thread about that, try to search before post here.
see this thread :
http://www.daniweb.com/forums/thread106435.html
the site from ramy has a same logic with vb.net just to convert in vb.net language.
Ok. ;)
All for the best.

Naruse commented: helpfull person +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

already answered by pogumahone.
anyelse friends...

ITKnight commented: :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

hi Dani...
can someone give a reputation points more than one to same person in one day? but in different post/thread...
when i see the someone profile, i find this person got a twice Reputation Point from someone in one day but in different post. could that happened?

Ancient Dragon commented: test +23
Jx_Man 987 Nearly a Senior Poster Featured Poster

your if..else will looks like this in select...case

Private Sub ComboOperan_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboOperan.SelectedIndexChanged
        Select Case ComboOperan.SelectedItem
            Case "+"
                MsgBox((Convert.ToInt32(txtNumber1.Text) + Convert.ToInt32(txtNumber2.Text)))
            Case "-"
                MsgBox((Convert.ToInt32(txtNumber1.Text) - Convert.ToInt32(txtNumber2.Text)))
            Case "*"
                MsgBox((Convert.ToInt32(txtNumber1.Text) * Convert.ToInt32(txtNumber2.Text)))
            Case "/"
                MsgBox((Convert.ToInt32(txtNumber1.Text) / Convert.ToInt32(txtNumber2.Text)))
        End Select
    End Sub

You can change Msgbox with your TextboxResult.Text...
OK. Hope This Helps..

Naruse commented: nice code +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

nice to hear that.
happy coding friends...:)

Jx_Man 987 Nearly a Senior Poster Featured Poster

SELECT * FROM Customers where EmailAddress like '%" @ "%'"

Jx_Man 987 Nearly a Senior Poster Featured Poster

hi anant266...
welcome to daniweb

Jade_me commented: not relevan with +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

i guest u want to save path of the picture.
this way is the easiest. but you must to put the picture on one folder. don't try to move the picture that you was saved it. if you move the picture, you will get an error..

dnk commented: though of post +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

this is a sample of manifest file :
put this file in a same folder with your exe file

YourProgramName.exe.zip

dnk commented: awesome +1
Sawamura commented: cool!!:P +1
ITKnight commented: wow, this file really helps me much... :D +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

1. Pray

4. Say "No" to projects that won't fit into your time schedule, or that will compromise your mental health

11. Separate worries from concerns. If a situation is a concern find out what God would have you to do and let go of the anxiety. If you can't do anything about a situation .. forget it.

16. Carry a Bible with you to read while waiting in line.

18. Eat right.

23. Having problems? Talk to God on the spot. Try to nip small problems in the bud. Don't wait until it's time to go to bed to try and pray.

26. Remember that the shortest bridge between despair and hope is often a good "Thank you, Jesus!"

27. Laugh.

29. Take your work seriously, but yourself not at all.

36. Every night before bed, think of one thing you're grateful for that you've never been grateful for before. GOD HAS A WAY OF TURNING THINGS AROUND FOR YOU.

"If God is for us, who can be against us?" (Romans 8:31)

sometimes i got depression to finish my final project for graduate
this post give me a spirit more, so thx for he tips, i'll take some for me...
and this my favorite verse :
"I can do all things through Christ which strengtheneth me" (Philipians 4:13)

Jade_me commented: :) +1
Sawamura commented: Nice taking and verse +1
dnk commented: my favorite vesr too :) +1
Elladan commented: Nice verse friend +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Sawamura commented: helpfull +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Good means the definition of the method...
i looking for many site and article but all of them have a one resources article and i was read this article...

Jx_Man 987 Nearly a Senior Poster Featured Poster
Elladan commented: Thanks +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Estella commented: thx +1
Jx_Man 987 Nearly a Senior Poster Featured Poster
Naruse commented: :twister: +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

people who talk to much but has none action.
Called NATO (Not Action Talk Only)

Sawamura commented: NATO :) +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

make a module to connect vb.net with sql server.
add this code to module :

Imports System.Data
Imports System.Data.SqlClient

Module Connect
    Public conn As SqlConnection
   
    Public Function GetConnect()

           conn = New SqlConnection("Server = YourServerName;" & "initial Catalog = yourDatabaseName;" & " Trusted_Connection=yes")

        Return conn
    End Function
End Module

you can call the function on the module to connect with sqlserver on each form. so u can open connection and close.
like this ex:

conn = GetConnect()
conn.Open()
.....
.....
conn.Close()

What a registration form you want to build?
put a print screen?

Jx_Man 987 Nearly a Senior Poster Featured Poster

hi bredes you post a same thread again.
cek your own post (TransParant Control)
try this thread, its a similiar thread like your post
Control Transparant Form

Ok.
all for the best

Jade_me commented: :D +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

There are a million suckers born every day!
Your golden opportunity to be a winner!

a suckers can be a winner too.:)

dnk commented: Right +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

try this following code to copy your program to startup program, but the program must running once to do this. there is none code to make your program running by it self without running before. just one time running and it will running by windows cause windows will running all program in startup program.

Private Sub Form_Load()
Dim mShell
Dim path As String
Set mShell = CreateObject("WScript.Shell")
path = mShell.Specialfolders("Startup")
FileCopy App.EXEName & ".exe", path & "\YourNewRunFileName.exe"
End Sub
Jx_Man 987 Nearly a Senior Poster Featured Poster

People who want to eat the fruit must climb the tree.

-Thomas Fuller,M,D.-

Jade_me commented: how if i cannot climb cause i didn't know hoe to climb the tree +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

The best way to out of trouble is facing it.

Sawamura commented: Facing the giant +1
dnk commented: Great Words +1
Shanti C commented: nice quote... +2
Jx_Man 987 Nearly a Senior Poster Featured Poster

people who didn't admiring another people (do what they want without caring people rights)

Estella commented: yes, absolutelly for a smokers +1