Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi.. Welcome to daniweb :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi nirmala.. Welcome to daniweb :)

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

you're welcome dnk.:)

Jx_Man 987 Nearly a Senior Poster Featured Poster

you're welcome dnk.

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

Hi mark, Welcome To Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

i post it cause previous post use or operand.
but you have a great code. nice one :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

of just play wav file u can use sndPlaySound api function

Jx_Man 987 Nearly a Senior Poster Featured Poster

add componet (ctrl + T) -> select Microsoft Multimedia Control 6.0

Jx_Man 987 Nearly a Senior Poster Featured Poster

use MMControl to play media file.

Jx_Man 987 Nearly a Senior Poster Featured Poster

why use or??
if the value 3 2 4 5 6 then the result is 3 cause the first state is pass (3 > 2).
when use or operand, if one state was passed then another state not checked by prog again.
use and operand.

If Val(Text1.Text) > Val(Text2.Text) And Val(Text1.Text) > Val(Text3.Text) And Val(Text1.Text) > Val(Text4.Text) And Val(Text1.Text) > Val(Text5.Text) Then
    Label1.Caption = Text1.Text
End If
Jx_Man 987 Nearly a Senior Poster Featured Poster

Pocari sweat, milk but i drink water every day.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Happy ever after

Jx_Man 987 Nearly a Senior Poster Featured Poster

soiled

Jx_Man 987 Nearly a Senior Poster Featured Poster

85 = 1010101 :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

public
rep
club

lawyer

Jx_Man 987 Nearly a Senior Poster Featured Poster

4402

Jx_Man 987 Nearly a Senior Poster Featured Poster

-675

Jx_Man 987 Nearly a Senior Poster Featured Poster

Freddy vs Jason

Jx_Man 987 Nearly a Senior Poster Featured Poster

Yes, Really much

Do you like playing basketball?

Jx_Man 987 Nearly a Senior Poster Featured Poster

Perfect

Jx_Man 987 Nearly a Senior Poster Featured Poster

cleaner

Jx_Man 987 Nearly a Senior Poster Featured Poster

then

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi sahiba, welcome To Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To daniweb Darren :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome To daniweb :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... Welcome To Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

great...

Jx_Man 987 Nearly a Senior Poster Featured Poster

:), you're welcome my friend.

Jx_Man 987 Nearly a Senior Poster Featured Poster

hi Patricia, Welcome To Daniweb :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

hhmm.. yes, if you put it in frame control.
see this :

Jx_Man 987 Nearly a Senior Poster Featured Poster

nice sudane... :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

there are manifest file. put this file in a same folder with your exe file then rename manifest file with your exe file name.
ex : exe file Name -> test.exe
manifest name -> test.exe.manifest

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Sherwin... Welcome to Daniweb Friend :)

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 then change the manifest file name as your exe name.

YourProgramName.exe.zip

Ok. hope this helps.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Stefano, Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb Ehtesham :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

hi appu this forum for vb not c++.

you can use cout<<"Hello World";

but once again you post on wrong forum.

Jx_Man 987 Nearly a Senior Poster Featured Poster

nice cometburn.thanks.
and for Sroxx, if u want to manifest file i'll post it to you.it will make your program looks like your windows style.i means adapted,in xp looks like xp,in vista looks like vista.

Jx_Man 987 Nearly a Senior Poster Featured Poster

use manifest file.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

you're welcome. don forget to mark this thread solved.

Jx_Man 987 Nearly a Senior Poster Featured Poster

mauli u shoud 4396
4397 :)

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

fleder

Jx_Man 987 Nearly a Senior Poster Featured Poster

Yes

Do you want some bread for breakfast?