15,886,721 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 Javascript questions
View Visual Basic questions
View Python 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 le.Festin (Top 8 by date)
le.Festin
6-Jun-13 14:01pm
View
i think that is a brilliant answer to my question. I will look into it.
le.Festin
28-Sep-12 1:16am
View
OpenGL
le.Festin
18-Sep-12 1:20am
View
Thankyou for the respose. I think the pop up control might do the trick. anyway i will let you know.
le.Festin
7-Aug-12 6:33am
View
Thank you for the reply. I am currently doing research on this... but i was just being optimistic...
:)
le.Festin
1-Aug-12 6:12am
View
I looked into the link that you suggested but i am having a little problem.
Could you looks into my updated problem
le.Festin
15-Jul-11 6:19am
View
I added multithreading in my application but the GUI still hangs.
My DesignListView (Class):
private List<string> fileList;
public List<string> FileList
{
get
{
return this.fileList;
}
set
{
this.fileList = value;
PopulateThumbnails();
}
}
public void PopulateThumbnails()
{
if (fileList == null)
return;
for (int i = 0; i < fileList.Count; ++i)
{
Thread t = new Thread(new ThreadStart(AddControl));
t.IsBackground = true;
t.Start();
}
}
private int cnt = 0;
public delegate void AControl();
public void AddControl()
{
if (this.InvokeRequired)
{
InvokeCount++;
this.BeginInvoke(new AControl(AddControl));
return;
}
lock (this)
{
if (cnt >= fileList.Count)
return;
ThumbnailDisplayControl tdc = new ThumbnailDisplayControl(fileList[cnt]);
tdc.MouseDown += new MouseEventHandler(tdc_MouseDown);
this.Controls.Add(tdc);
cnt++;
}
}
I know the code style is not good but i just wanted to know if that would stop GUI hang but it didnot.
Is my class is taking time to update itself. I am not able to point out where i went wrong.
Please help.
le.Festin
15-Jul-11 5:53am
View
but i guess i will be sticking with my own class for the moment. By the way, ty for your idea. I will surely be using ListView on my next code
le.Festin
15-Jul-11 5:49am
View
Dear BobJanova,
According to my calculation the average time taken for a single picture from my ThumbnailDisplayControl class takes about .7 sec.So, for many pictures it will take a lot of time which will hang the UI, so i should use threading.
And ty for the ListView Idea. I really have no idea why i didnot this of this one.
Show More