473,769 Members | 6,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# compact framework return true/false from MessageBox

I'm a newbie. So please be patient. I'm working on a C# app in compact framework for a PDA. It connects to a device and extracts and updates data. I need to double check with the user before I continue with the update. I would normally use a MessageBox with an OkCancelButton. However, the compact framework doesn't support but one overload: MessageBox(stri ng). I need to send confirmation (bool) back to the form and act accordingly with the update.

Could someone please head me in the right direction?

--
Message posted via http://www.dotnetmonster.com
Nov 16 '05 #1
1 3078
Daniel,

According to the documentation, it seems that the compact framework
supports this overload for the Show method on the MessageBox class:
public static DialogResult Show(
string text,
string caption,
MessageBoxButto ns buttons,
MessageBoxIcon icon,
MessageBoxDefau ltButton defaultButton
); You should be able to use that, and then get the result. Hope this
helps.-- - Nicholas Paldino [.NET/C# MVP] -
mv*@spam.guard. caspershouse.co m"Daniel Passwater via DotNetMonster.c om"
<fo***@DotNetMo nster.com> wrote in message
news:8b******** *************** *******@DotNetM onster.com...
I'm a newbie. So please be patient. I'm working on a C# app in compact
framework for a PDA. It connects to a device and extracts and updates
data. I need to double check with the user before I continue with the
update. I would normally use a MessageBox with an OkCancelButton. However,
the compact framework doesn't support but one overload:
MessageBox(stri ng). I need to send confirmation (bool) back to the form
and act accordingly with the update.

Could someone please head me in the right direction?

--
Message posted via http://www.dotnetmonster.com

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2523
by: Asad Khan | last post by:
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was wondering if anyone has any information on how I can develop applications for .Net Compact Framework using this IDE. I've heard Visual Studio 2003 ships with the functionality for .Net Compact Framework development. But right now I have Visual Studio 2002. Is there anything I can do? (Other than the obvious upgrade to 2003). I've heard some beta version of .Net Compact...
3
1756
by: amine | last post by:
Hi, I have created a proxy class from a wsdl document and I want to add it to my project. but the generated proxy class contains packages like system.web that are not supported by the .NET compact framework. does anyone have any idea how to fix this problem Thank you ..
1
2018
by: Ben | last post by:
Hello, I'm having trouble with the JoinMulticastingGroup function with C# ..NET and the Compact Framework. My console application on my PocketPC has to listen for any datagrams coming from the network, by UDP protocol. Here is a sample of my code : public class UDPMulticastListener { private static readonly IPAddress GroupAddress =
13
10420
by: Larry L | last post by:
Access is noted for bloating a database when you add and delete records frequently. I have always had mine set to compact on close, and that works great. Now after everyone's advice I split my database, so the data is in a second (back-end) database with all the tables linked. However, now when I close the database, it compacts the front end, since that's what's open, and the back-end grows. I now have to manually open and close the...
2
6652
by: Maloney | last post by:
I'm trying to pass a structer from C# to a C dll in .Net Compact Framework This partially works. If in the GetStatus I only set -- status->fileLength = 10; -- and not the second variable then filelength = 10 and fileposition = 0, but if i set the second one only or both of them then they are fileLength = 47244640266 and filePosition = 0; Like the memory is getting over wrote. What is the correct way of passing a structure by reference...
12
1767
by: ABC - Sébastien Beaugrand | last post by:
Hi, I've been trying to get an answer from french newsgroup but I did'nt succeed in this, so I'll try on this group and sorry for my poor english. The description of the bug : The CurrentChanged event from the BindinManager on a Winform never occurs with framework V1.1. and it is not possible from the bindings to know if the user has done some modifications.
8
6047
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is there a way I can compile the application such that it won't even attempt to launch without correct permissions instead of just crashing? Thanks for any help. -Mike
2
1579
by: Greg Wood | last post by:
As a new member, I hope I am posting correctly. Bear with me if not ! I found a posting by Earle Oxner that very closely matches the situation we are in. Sadly, there were no replies to his post, so I am asking a similar question. We have developed a .Net Compact Framework 2 forms application & deployed it on a 2 PDAs, one running Windows Mobile 2003 2nd Edition and one running Windows Mobile v5. The app's purpose is to POST data to an...
3
3099
by: SvenV | last post by:
Hello, I have a question regarding internationalization. We are working on an application that is going to be used in different countries. Already we have internationalized every string that can be internationalized (text on buttons, labels etc). The problem is MessageBoxes also need to be internationalized. For instance Yes and No. I know this depends on the regional settings in your OS. But I need this to be set on user level and not OS...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.