29-09-12, 09:36 AM
M.Sami.AK كتب :PHP كود :
Form 1 Load:
dim hosts as string = "c:\windows\system32\drivers\etc\hosts"
Richtextbox1.LoadFile(hosts,RichtextboxStreamtype.Plaintext)
Block button:
Richtextbox1.Appendtext(Environment.Newline + "127.0.0.1 " + textbox1.text)
Save Button:
dim filetocreate as string = "c:\windows\system32\drivers\etc\hosts"
Richtextbox1.LoadFile(filetocreate ,RichtextboxStreamtype.Plaintext)
شكرا لك اخي ، الكود ممتاز لكن أظن ان هناك مشكله في الحفظ ./