Click here to Skip to main content
16,007,760 members
Home / Discussions / Mobile
   

Mobile

 
Questionaccessing data from database on Win mobile 5.0 emulator Pin
Deepali Khalkar24-Feb-09 1:25
Deepali Khalkar24-Feb-09 1:25 
AnswerRe: accessing data from database on Win mobile 5.0 emulator Pin
PavanPareta2-Mar-09 19:31
PavanPareta2-Mar-09 19:31 
QuestionError in connecting device emulator to GPRS Pin
ReachMe@CodeProject23-Feb-09 23:22
ReachMe@CodeProject23-Feb-09 23:22 
QuestionHow to repaint the whole screen? Pin
sushilange18-Feb-09 23:30
sushilange18-Feb-09 23:30 
AnswerRe: How to repaint the whole screen? Pin
Joel Ivory Johnson19-Feb-09 10:52
professionalJoel Ivory Johnson19-Feb-09 10:52 
GeneralRe: How to repaint the whole screen? Pin
sushilange19-Feb-09 11:15
sushilange19-Feb-09 11:15 
GeneralRe: How to repaint the whole screen? Pin
Dr. William J. Blanke21-Feb-09 15:48
Dr. William J. Blanke21-Feb-09 15:48 
GeneralRe: How to repaint the whole screen? Pin
sushilange21-Feb-09 23:21
sushilange21-Feb-09 23:21 
Thanks, but it doesn't work, too Frown | :-(

IntPtr deviceContext = GetDC(IntPtr.Zero);
            
            Rectangle rectangle = Screen.PrimaryScreen.Bounds;
            using (Bitmap capture = new Bitmap(rectangle.Width, rectangle.Height))
            //Get screen context
            using (Graphics deviceGraphics = Graphics.FromHdc(deviceContext))
            //Get graphics from bitmap
            using (Graphics captureGraphics = Graphics.FromImage(capture))
            {
                // Blit the image data
                BitBlt(captureGraphics.GetHdc(), 0, 0,
                    rectangle.Width, rectangle.Height, deviceGraphics.GetHdc(),
                    rectangle.Left, rectangle.Top, SRCCOPY);
                          
                
                deviceGraphics.DrawString("Hello", Font, new SolidBrush(Color.Black), 10, 10);                
            }
            // Doesn't work: InvalidateRect(deviceContext, IntPtr.Zero, true);
            //Doesn't work: RedrawWindow(deviceContext, IntPtr.Zero, IntPtr.Zero, RDW_ERASE | RDW_INTERNALPAINT | RDW_UPDATENOW | RDW_INVALIDATE);
            // Doesn't work: SendMessage(deviceContext, WM_PAINT, 0, 0);

            // I tried RedrawWindow with all possibile combinations of all parameters (RDW_XXXX)!
            // I also tried to add directly IntPtr.Zero as Handle parameter
            // In all cases the text "Hello" is still drawn until I click on the start button
            // I run the code on WM 6.1.4 Professional (Emulator)

AnswerRe: How to repaint the whole screen? Pin
PavanPareta2-Mar-09 19:35
PavanPareta2-Mar-09 19:35 
GeneralRe: How to repaint the whole screen? Pin
sushilange4-Mar-09 23:05
sushilange4-Mar-09 23:05 
QuestionSpeech recognition and Text to Speech conversion in Smart device application Pin
ReachMe@CodeProject18-Feb-09 22:47
ReachMe@CodeProject18-Feb-09 22:47 
AnswerRe: Speech recognition and Text to Speech conversion in Smart device application Pin
Joel Ivory Johnson19-Feb-09 10:51
professionalJoel Ivory Johnson19-Feb-09 10:51 
QuestionHow to use InputPanel in SmartDevice Application in .NCF 1.0(2003) Pin
yrishi17-Feb-09 20:20
yrishi17-Feb-09 20:20 
QuestionConnect multiple Windows Mobile devices to one PC at the same time? Pin
Mokai17-Feb-09 4:44
Mokai17-Feb-09 4:44 
Questionhow to show massage before form is load Pin
E_Gold17-Feb-09 4:11
E_Gold17-Feb-09 4:11 
AnswerRe: how to show massage before form is load Pin
MickCurley20-Feb-09 11:09
MickCurley20-Feb-09 11:09 
QuestionUser Agent Profile for Spice devices Pin
Ish Kapila16-Feb-09 4:16
Ish Kapila16-Feb-09 4:16 
AnswerRe: User Agent Profile for Spice devices Pin
Joel Ivory Johnson17-Feb-09 5:01
professionalJoel Ivory Johnson17-Feb-09 5:01 
GeneralRe: User Agent Profile for Spice devices Pin
Ish Kapila17-Feb-09 19:47
Ish Kapila17-Feb-09 19:47 
GeneralRe: User Agent Profile for Spice devices Pin
Ish Kapila16-Mar-09 1:33
Ish Kapila16-Mar-09 1:33 
Questionhi all Pin
Satish_S9-Feb-09 22:22
Satish_S9-Feb-09 22:22 
AnswerRe: hi all Pin
Rupesh Kumar Swami9-Feb-09 22:33
Rupesh Kumar Swami9-Feb-09 22:33 
GeneralRe: hi all Pin
Satish_S9-Feb-09 22:50
Satish_S9-Feb-09 22:50 
GeneralVisual Studio and Windows Mobile compatibility Pin
Joel Ivory Johnson10-Feb-09 10:17
professionalJoel Ivory Johnson10-Feb-09 10:17 
QuestionDebug with Emulator CE 5.0 (x86) and Visual Studio 2005 Pin
Eliseo D'Errico9-Feb-09 22:10
Eliseo D'Errico9-Feb-09 22:10 

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.