16,019,131 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Asyraf Patt (Top 16 by date)
Asyraf Patt
27-Mar-18 4:45am
View
public void secondMethod_getTheName() {
System.out.println("Name: "+theModel.getName());
}
How should i print mike, by using the same getter ?
Asyraf Patt
31-Oct-17 4:41am
View
https://imgur.com/a/3jazh
Asyraf Patt
31-Oct-17 4:40am
View
Deleted
https://imgur.com/a/R09nM
Asyraf Patt
31-Oct-17 4:14am
View
i already update the question, tq mate
Asyraf Patt
31-Oct-17 3:54am
View
i use spring, my code to mess up to show, but i just want the example of the solution to get the data from the xml
Asyraf Patt
31-Oct-17 3:40am
View
i just want ask a way or idea to get the information such as from , to, subject, msg from xml file..
Asyraf Patt
31-Oct-17 3:39am
View
no, if its required for me to work on my code...please let me know
Asyraf Patt
9-Aug-17 3:20am
View
still have a n error like my comment above :
System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.'
Asyraf Patt
9-Aug-17 3:05am
View
i alrady use that code, but get error :
System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.'
Asyraf Patt
6-Aug-17 1:54am
View
if(checkBox2.Checked){
DirectoryInfo Dir = new DirectoryInfo(System.IO.Path.GetTempPath());
FileInfo[] Files = Dir.GetFiles();
foreach (FileInfo file in Files)
{
listView1.Items.Add(file.Name);
File.Delete(file.Name);
}
}
why the file in C:\Users\Administrator\AppData\Local\Temp still not delete ?
Asyraf Patt
26-Jul-17 9:02am
View
original:
private void Button2_Click(object sender, EventArgs e)
{
SHEmptyRecycleBin(IntPtr.Zero, null, RecycleFlag.SHERB_NOSOUND | RecycleFlag.SHERB_NOCONFIRMATION);
}
above is my function, when i click the button, it will clean my dustbin. The code that i actually trying to do is, i need to tick the checkbox and click the button and then the dustbin wil clean up.
latest code:
private void Button2_Click(object sender, EventArgs e)
{
checkBox1.Checked = SHEmptyRecycleBin(IntPtr.Zero, null, RecycleFlag.SHERB_NOSOUND | RecycleFlag.SHERB_NOCONFIRMATION);
}
Question: how actually can i combine checkbox and button, to execute this program ?
Sorry mate for my unclear question.
Asyraf Patt
26-Jul-17 2:15am
View
im not clear, sorry mate.. im new in programming
Asyraf Patt
22-Jul-17 11:42am
View
tq mate :)
Asyraf Patt
21-Jul-17 22:24pm
View
checkBox1.Checked = System.IO.File.Exists(@"c:\path\to\files.txt");
like this ? but the checkbox still remain uncheck. why ?
Asyraf Patt
21-Jul-17 22:14pm
View
checkBox10.Checked = System.IO.File.Exists(@"c:\path\to\file.txt") ? true : false;
this is my solution so far. If the file exist, the output will show"file exist" but the check box still remain uncheck
Asyraf Patt
21-Jul-17 22:09pm
View
Winform
Show More