Click here to Skip to main content
15,902,840 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: Available memory for mobile applications Pin
Giannakakis Kostas16-Dec-08 23:54
professionalGiannakakis Kostas16-Dec-08 23:54 
QuestionFollowing code io not working as expected, can any one please find out what is the problem? Pin
chandan Srivastava16-Dec-08 2:44
chandan Srivastava16-Dec-08 2:44 
QuestionHow can I select multiple items in a listview? [modified] Pin
JUNEYT16-Dec-08 0:10
JUNEYT16-Dec-08 0:10 
AnswerRe: How can I select multiple items in a listview? Pin
Joel Ivory Johnson16-Dec-08 6:05
professionalJoel Ivory Johnson16-Dec-08 6:05 
GeneralRe: How can I select multiple items in a listview? Pin
JUNEYT16-Dec-08 8:56
JUNEYT16-Dec-08 8:56 
GeneralRe: How can I select multiple items in a listview? Pin
Joel Ivory Johnson18-Dec-08 16:13
professionalJoel Ivory Johnson18-Dec-08 16:13 
QuestionOpenFileDialog question (.Net C.F.) Pin
Hurricane300013-Dec-08 3:25
Hurricane300013-Dec-08 3:25 
AnswerRe: OpenFileDialog question (.Net C.F.) [modified] Pin
Joel Ivory Johnson14-Dec-08 10:14
professionalJoel Ivory Johnson14-Dec-08 10:14 
Without looking at your code I can tell what's going on since it is such a frequently occurring question.

The problem you are encountering is intrinsic to applications with single threads. The OpenFileDialog isn't still active. It is closed. However, your application hasn't redrawn it self so the last image that was on the screen remains visible until it does.

Right now you are reading the file on your primary thread, and while that primary thread is busy reading the file it does not have the opportunity to redraw the main window. When the read operation completes then the application can use that thread to redraw the main interface.

To prevent that behaviour you will need to read your file on a secondary thread so that the primary thread is still free to redraw the main interface. This concept can be applied to both desktop and mobile applications written with managed and native code. Please read the following for a more complete explanation of the problem you are encountering and the solution.

Give Your .NET-based Application a Fast and Responsive UI with Multiple Threads

Joel Ivory Johnson
My site: J2i.net


modified on Sunday, December 14, 2008 4:51 PM

GeneralRe: OpenFileDialog question (.Net C.F.) [modified] Pin
Hurricane300014-Dec-08 10:53
Hurricane300014-Dec-08 10:53 
Questionjust starting WM development trying to use VS 2008 Pro 90 day trial Pin
uzziah012-Dec-08 9:03
uzziah012-Dec-08 9:03 
AnswerRe: just starting WM development trying to use VS 2008 Pro 90 day trial Pin
Joel Ivory Johnson14-Dec-08 10:41
professionalJoel Ivory Johnson14-Dec-08 10:41 
QuestionPrinting from Window Mobile Using VB.Net 2005 Pin
~Khatri Mitesh~11-Dec-08 20:41
~Khatri Mitesh~11-Dec-08 20:41 
AnswerRe: Printing from Window Mobile Using VB.Net 2005 Pin
Joel Ivory Johnson14-Dec-08 10:46
professionalJoel Ivory Johnson14-Dec-08 10:46 
QuestionMemmory allocated by CPU Pin
Chandan_srivastava11-Dec-08 20:04
Chandan_srivastava11-Dec-08 20:04 
AnswerRe: Memmory allocated by CPU Pin
Joel Ivory Johnson14-Dec-08 10:21
professionalJoel Ivory Johnson14-Dec-08 10:21 
GeneralRe: Memmory allocated by CPU Pin
evden eve nakliyat20-Dec-08 15:15
evden eve nakliyat20-Dec-08 15:15 
Questioncapture still images in backgorund on windows mobile 6 Pin
sherinsabry9-Dec-08 3:58
sherinsabry9-Dec-08 3:58 
AnswerRe: capture still images in backgorund on windows mobile 6 Pin
Giannakakis Kostas10-Dec-08 1:26
professionalGiannakakis Kostas10-Dec-08 1:26 
QuestionJ2ME error Pin
Parasmani Swamy8-Dec-08 21:04
Parasmani Swamy8-Dec-08 21:04 
AnswerRe: J2ME error Pin
Giannakakis Kostas10-Dec-08 1:48
professionalGiannakakis Kostas10-Dec-08 1:48 
Questionhow do I add a IMessageFilter to catch mouse down event [modified] Pin
Ola E8-Dec-08 9:48
Ola E8-Dec-08 9:48 
AnswerRe: how do I add a IMessageFilter to catch mouse down event Pin
Giannakakis Kostas10-Dec-08 1:39
professionalGiannakakis Kostas10-Dec-08 1:39 
GeneralRe: how do I add a IMessageFilter to catch mouse down event Pin
Ola E10-Dec-08 5:06
Ola E10-Dec-08 5:06 
GeneralRe: how do I add a IMessageFilter to catch mouse down event Pin
Giannakakis Kostas10-Dec-08 6:32
professionalGiannakakis Kostas10-Dec-08 6:32 
QuestionMOBILE SMS Pin
drugs_taker4-Dec-08 20:47
drugs_taker4-Dec-08 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.