Click here to Skip to main content
15,913,027 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: How can I add an application to programs group of OS? Pin
KingsGambit6-Apr-10 2:25
KingsGambit6-Apr-10 2:25 
AnswerRe: How can I add an application to programs group of OS? Pin
r.ps6-Apr-10 2:52
r.ps6-Apr-10 2:52 
QuestionBack Command problem in Mobile Objectlist Control Pin
NTheOne5-Apr-10 21:20
NTheOne5-Apr-10 21:20 
QuestionListView control in Csharp smart device Pin
Tunisien862-Apr-10 4:58
Tunisien862-Apr-10 4:58 
NewsMobile Developer Survey - Complete online and win prizes Pin
Matos Kapetanakis31-Mar-10 4:40
Matos Kapetanakis31-Mar-10 4:40 
QuestionHow to send SMS through SMSC using SMPP Pin
Paul Horstink29-Mar-10 3:40
Paul Horstink29-Mar-10 3:40 
AnswerRe: How to send SMS through SMSC using SMPP Pin
chirag7mca15-Jul-11 4:19
chirag7mca15-Jul-11 4:19 
QuestionPictureBox in .NET CF 3.5 won't paint changes to itself to the form when called from another thread [modified] Pin
Michael Coxon28-Mar-10 20:56
Michael Coxon28-Mar-10 20:56 
Hey,
I have a status bar that I have made on my project that has a bunch of icons on it.

The problem is, that if I call my SetStatusIcon() function from another thread other than the UI thread, it will not draw the changes to the Form. The calls are all Invoked and are thread-safe. I have used watches to check the object it does change.

I have tried everything from changing the the image property to dynamically loading each image into its own PictureBox on load and changing its visibility to change the icon, but nothing seems to work.

Any help on why this even could be happening would be awesome.

Thanks in advance,

Michael.


EDIT:
My code for the 'SetStatusIcon()' is as follows. Each status icon has this function, with just the relevant variables changed.

<br />
Friend Sub SetStatusIcon(ByVal Status As StatusIconType)<br />
        If Me.InvokeRequired Then<br />
            Me.Invoke(New delSetStatus(AddressOf SetStatusIcon), Status)<br />
        Else<br />
            Select Case Status<br />
                Case StatusIconType.Status0<br />
                    iconStatus.Image = New Bitmap("Status0.bmp")<br />
                Case StatusIconType.Status1<br />
                    iconStatus.Image = New Bitmap("Status1.bmp")<br />
                Case StatusIconType.Status2<br />
                    iconStatus.Image = New Bitmap("Status2.bmp")<br />
                Case Else<br />
                    iconStatus.Image = Nothing<br />
            End Select<br />
        End If<br />
    End Sub<br />

modified on Monday, March 29, 2010 4:28 AM

AnswerRe: PictureBox in .NET CF 3.5 won't paint changes to itself to the form when called from another thread Pin
KingsGambit29-Mar-10 18:12
KingsGambit29-Mar-10 18:12 
GeneralRe: PictureBox in .NET CF 3.5 won't paint changes to itself to the form when called from another thread Pin
Michael Coxon29-Mar-10 18:20
Michael Coxon29-Mar-10 18:20 
GeneralRe: PictureBox in .NET CF 3.5 won't paint changes to itself to the form when called from another thread Pin
KingsGambit29-Mar-10 19:29
KingsGambit29-Mar-10 19:29 
Questionhow to get Serial number from Windows CE ? (not Device ID) in C# ? Pin
Gali197828-Mar-10 3:41
Gali197828-Mar-10 3:41 
AnswerRe: how to get Serial number from Windows CE ? (not Device ID) in C# ? Pin
KingsGambit28-Mar-10 9:34
KingsGambit28-Mar-10 9:34 
QuestionWindows Phone 7 XML? Pin
pelnor27-Mar-10 17:37
pelnor27-Mar-10 17:37 
AnswerRe: Windows Phone 7 XML? Pin
AETaylor14-Apr-10 1:47
AETaylor14-Apr-10 1:47 
AnswerRe: Windows Phone 7 XML? Pin
Bonhomme M15-Apr-10 23:23
Bonhomme M15-Apr-10 23:23 
QuestionEncoding to be used for saving a file in J2ME Pin
Aditya2225-Mar-10 18:57
Aditya2225-Mar-10 18:57 
AnswerRe: Encoding to be used for saving a file in J2ME Pin
KingsGambit25-Mar-10 19:21
KingsGambit25-Mar-10 19:21 
GeneralRe: Encoding to be used for saving a file in J2ME Pin
Aditya2225-Mar-10 21:54
Aditya2225-Mar-10 21:54 
GeneralRe: Encoding to be used for saving a file in J2ME Pin
KingsGambit26-Mar-10 17:00
KingsGambit26-Mar-10 17:00 
GeneralRe: Encoding to be used for saving a file in J2ME Pin
Aditya2228-Mar-10 19:27
Aditya2228-Mar-10 19:27 
GeneralRe: Encoding to be used for saving a file in J2ME Pin
KingsGambit28-Mar-10 20:46
KingsGambit28-Mar-10 20:46 
GeneralRe: Encoding to be used for saving a file in J2ME Pin
Aditya2228-Mar-10 22:09
Aditya2228-Mar-10 22:09 
QuestionWinCE IPC Pin
hairy_hats24-Mar-10 2:47
hairy_hats24-Mar-10 2:47 
AnswerRe: WinCE IPC Pin
KingsGambit24-Mar-10 20:09
KingsGambit24-Mar-10 20:09 

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.