windows-mobile

Sending mail in Windows mobile application in Windows

依然范特西╮ 提交于 2019-12-12 13:22:19
问题 I am new to Windows Mobile Application. In my project, I want to send emails using microsoft.windowsmobile.pocketoutlook . I have the following code so far: private void btnsubmit_Click(object sender, EventArgs e) { try { totleave(); OutlookSession ol = new OutlookSession(); EmailMessage em = new EmailMessage(); //Recipient s1 = em.From; //Console.WriteLine(s1); Recipient r = new Recipient("iyalarasi.r", "iyalarasi.r@winxsolutions.com"); em.To.Add(r); em.Subject = "Request For Leave"; em

The remote name could not be resolved

泄露秘密 提交于 2019-12-12 13:22:16
问题 i m creating mobile application for windows mobile 6.i m uploading an image on url/website. for this i m using webrequest and webresponse class.at the time of getting response i m getting this type of error- The remote name could not be resolved.. my code is- String url = "http://weblogs.asp.net/scottgu/rss.aspx"; System.Net.WebRequest request = System.Net.WebRequest.Create(url); request.Credentials = System.Net.CredentialCache.DefaultCredentials; System.Net.WebResponse response = null;

How to use Datagrid in Right-to-left (Like Hebrew or Arabic language)?

房东的猫 提交于 2019-12-12 13:15:37
问题 How to use Datagrid in Right-to-left (Like Hebrew or Arabic language) ? (WS2008,WinMobile2005,FW3.5) thank's in advance 回答1: The datagrid does not support RTL at all. If you need RTL, you'll have to custom draw the cells. You can use the sample for custom drawing from the CF team as a base. 来源: https://stackoverflow.com/questions/872137/how-to-use-datagrid-in-right-to-left-like-hebrew-or-arabic-language

Linker error “unresolved external symbol __imp___iob_func” in libpng.lib

♀尐吖头ヾ 提交于 2019-12-12 12:55:59
问题 I am trying to compile libpng for Windows Mobile 6, but i kep getting the following linker errors: error LNK2019: unresolved external symbol __imp___iob_func referenced in function png_default_error libpng.lib error LNK2019: unresolved external symbol __imp_abort referenced in function png_longjmp Compilation is done with /MD option, same between my main project. zlib and libpng. When /MT is used instead, there are still errors, but slightly different: error LNK2019: unresolved external

How to detect Windows Mobile 5 Device Serial Number? (.NET CF 3.5)

假装没事ソ 提交于 2019-12-12 10:18:40
问题 We have several devices where I work (mostly Datalogic 4420 Falcon), and someone is always leaving one off the base. The battery runs dry, then they bring them back to get setup all over. (There's supposed to be a way to configure a file on the SD card to reload upon such an error, but it doesn't work very well) When someone saves changes on the device (using my app that writes data to the SQL Server), the Serial Number is sent along with it so we can track what devices are in use where. Each

Disable menu bar in Windows Mobile 6.5

久未见 提交于 2019-12-12 09:39:37
问题 I'm porting .NET application from WM5 to WM6.5. Besides new resolution I noticed different UI behavior for start menu and title bar (caption bar). My application needs to work in kind of kiosk mode where user can't exit application and bypass our authentication. For this purpose on WM5 I was hiding start button and close button. I am using following function: SHFullScreen(hWnd, SHFS_HIDESTARTICON | SHFS_HIDESIPBUTTON); Hiding buttons kind of works on WM6.5 too, but there is another problem.

How to allocate memory in another process for windows mobile

旧城冷巷雨未停 提交于 2019-12-12 09:29:52
问题 I'd like to read the contents of another process listview control in windows mobile. To do this, I need a pointer to some free memory to that process in order to put the values there (and then read them from my process). This can be done in normal Windows or Win32 with the VirtualAllocEx function. However, this function is not supported in windows mobile ! Can you recommend me a way to allocate that memory? 回答1: Well, after a lot of search, I believe that I found a working solution. I am not

Is there an event in compact framework that fires on suspend and resume?

半腔热情 提交于 2019-12-12 09:04:24
问题 Or do I have to pinvoke native code? I don't want the power status...well I do, but I don't want to poll it all the time and would rather have an event fire. 回答1: No there is not. Generally an application is completely unaware of the power state. When the device suspends, code simply stops executing. When you resume, it starts again at the exact spot it left off. You can hook into the power management system to get notifications, though be aware that you don't have time to actually react, so

compact framework download file from url

北城以北 提交于 2019-12-12 06:48:44
问题 I need to replace WebRequestFactory, what is this doing? Can someone help me make this work? Public Shared Sub download_file() Dim wr As HttpWebRequest = CType(WebRequestFactory.Create("http://www.test.com/test.jpg"), HttpWebRequest) Dim ws As HttpWebResponse = CType(wr.GetResponse(), HttpWebResponse) Dim str As Stream = ws.GetResponseStream() Dim inBuf(100000) As Byte Dim bytesToRead As Integer = CInt(inBuf.Length) Dim bytesRead As Integer = 0 While bytesToRead > 0 Dim n As Integer = str

How to add a new column to delete a Datagrid's row, Windows mobile

自作多情 提交于 2019-12-12 05:49:05
问题 I am developing an application for windows mobile in C# ( visual studio 2008 ) and sql server 2008 I use a "select" to display columns in a DataGrid : SqlCeDataAdapter da = new SqlCeDataAdapter("SELECT * FROM DATOST", conn); da.Fill(ds, "DATOST"); dtgLista.DataSource = ds.Tables[0].DefaultView; and it shows something like this What I'm trying to do is to add a new column with the word remove and when it be selected delete the row. I tried with this --- and more links I can't write because i