473,549 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Create Notification with Menu for Windows Mobile 6 using C# .Net CF 2.0

4 New Member
Hello Friends,

By default Notification control present in .Net CF 2.0 for Windows Mobile 6.0 does not provide Menu support. So I am tryingto implement the menu feature for Notification using C#. So, I tried to port this structure SHNOTIFICATIOND ATA in C#. This structure has a nested structure called SOFTKEYMENU which looks as follows,

typedef struct _SOFTKEYMENU {
HMENU hMenu;
SOFTKEYCMD *prgskc;
UINT cskc;
} SOFTKEYMENU;Mem bers

I have ported the SOFTKEYMENU structure in C# as follows,

[StructLayout(La youtKind.Sequen tial)]
struct SOFTKEYMENU
{
public IntPtr hMenu;
public IntPtr[] skc; //SOFTKEYCMD
public uint cskc;
}

What should I pass in the hMenu parameter. If its the handle of MainMenu control. How to get the handle of MainMenu control in C# .Net CF 2.0?
May 30 '09 #1
3 5489
Young Indian
4 New Member
Hi Friends,
Is it Possible?
Jun 1 '09 #2
Plater
7,872 Recognized Expert Expert
Couldn't you just create your own form?
Jun 3 '09 #3
Young Indian
4 New Member
Hi Friends,

I got the answer. No need to get MainMenu control handle. We can fill the hMenu parameter by creating our own Menu using "CreateMenu ", "AppendMenu " API's.
Jun 3 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
8352
by: grutta | last post by:
I am writing a windows service that will recieve notification when a USB Device is insterted into the machine. I have used the RegisterDeviceNotification and the RegisterServiceCtrlHandlerEx with a handler. The handler portion seems to fail indicating that my parameters are invalid. I am getting an error code 126 when i try to register the...
3
2650
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my application i keep getting this. Server Error in...
3
1940
by: Jigar Mehta | last post by:
Hye, This is Jigar mehta from India. I have made one application that adds dynamic menu items from the database. Each menu item has one ID and menu item's text is coming from the database. Now, I want to get the notification of the menu item click which is added dynamically. I want to put one common routine where I can distinguish between all...
2
1858
by: Nathan Baker | last post by:
Hey all, I've had to dive down into unmanaged world from .NET recently to subclass the IE browser window for the purposes of adding menu items. I've gotten the items added thanks to the Win32 API "InsertMenu" call, but they don't do anything. The problem is, I don't own the menu, so I don't process the result codes that are returned from...
1
3516
by: dipakbaviskar | last post by:
Hi All, I am very new to Windows mobile programming and .Net framework . I am using C# for windows mobile 5.0 development purpose. I got success in creating the form but now i want to show the dialog box with two text box and some button on menu click event. Can somebody please focus on this?
1
4064
by: fivanec | last post by:
Hi everyone, I need to create in Pocket Outlook custom menu item using C# or VB.NET for Windows Mobile 5.0 and then subscribe on the event of that custom menu item to invoke my Windows Mobile application. I have spent several days and looked through a lot of web sites and forums but I could find any C# sample that can help me. I only...
4
3080
by: JayaseelanVaiyapuri | last post by:
Hi to all, Am developing an application for Windows Mobile and am using Windows Mobile SDK 5.0 I have a project which is Win32 DLL and Another is Windows application using WinMain(). Now i want to create a setup project in the same solution for adding output of the previous 2 projects..
9
3706
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I downloaded the sample application that the Microsoft video ASPNETAJAXForWinMobile described but it doesn't work on my Windows Mobile 6 emulator. After enabling the script error reporting of the mobile IE, it pops up several JScript error and the ajax behavior is not funtional at all. Where can I look for any possible issue? Thanks.
2
1978
by: Rishabh Indianic | last post by:
hi, I am use Vs 2005, and sdk 6.0 using c# to develop window mobile application. in a project i am used 5 page (form). i want to give common menu item for all pages. in a project i create menu item in panel control to provide user interface to set font size ,font type ,bookmark or more but it work on only single page. i want this...
0
7461
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...
0
7730
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. ...
0
7971
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...
0
7823
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...
0
5101
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...
0
3509
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...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1068
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.