Jx_Man 987 Nearly a Senior Poster Featured Poster
Hi nirmala.. Welcome to daniweb :)
Ok. Happy coding friend :)
you're welcome dnk.:)
you're welcome dnk.
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.
try this :
For Each controlx In Form3.Controls
If TypeOf controlx Is TextBox Then controlx.Text = ""
Next controlx
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.
see this sample program, but its not originally from me.
Image Processing.zip
Ok. Hope this helps
Hi mark, Welcome To Daniweb Friend :)
i post it cause previous post use or operand.
but you have a great code. nice one :)
of just play wav file u can use sndPlaySound api function
add componet (ctrl + T) -> select Microsoft Multimedia Control 6.0
use MMControl to play media file.
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
Pocari sweat, milk but i drink water every day.
Happy ever after
85 = 1010101 :)
public
rep
club
lawyer
4402
-675
Freddy vs Jason
Yes, Really much
Do you like playing basketball?
Perfect
cleaner
then
Hi sahiba, welcome To Daniweb Friend :)
Welcome To daniweb Darren :)
Welcome To daniweb :)
Hi... Welcome To Daniweb Friend :)
great...
:), you're welcome my friend.
hi Patricia, Welcome To Daniweb :)
hhmm.. yes, if you put it in frame control.
see this :
nice sudane... :)
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
Hi Sherwin... Welcome to Daniweb Friend :)
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.
Hi Stefano, Welcome to Daniweb Friend :)
Welcome to Daniweb Ehtesham :)
hi appu this forum for vb not c++.
you can use cout<<"Hello World";
but once again you post on wrong forum.
use manifest file.
Hi... welcome to Daniweb Friend :)
you're welcome. don forget to mark this thread solved.
mauli u shoud 4396
4397 :)
oh... sorry.
i repost the attachment :
Files Selected.zip
fleder
Yes
Do you want some bread for breakfast?