Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: creating custom control that contains DialogResult Pin
OriginalGriff9-Feb-10 4:38
mveOriginalGriff9-Feb-10 4:38 
AnswerRe: creating custom control that contains DialogResult Pin
OriginalGriff9-Feb-10 5:11
mveOriginalGriff9-Feb-10 5:11 
GeneralRe: creating custom control that contains DialogResult Pin
sajjad.aghapouer9-Feb-10 6:43
sajjad.aghapouer9-Feb-10 6:43 
GeneralRe: creating custom control that contains DialogResult Pin
OriginalGriff9-Feb-10 9:24
mveOriginalGriff9-Feb-10 9:24 
QuestionHow to record or capture voices from speaker or sound card on my computer win7, not from microphone Pin
serkanweb9-Feb-10 2:54
serkanweb9-Feb-10 2:54 
AnswerRe: How to record or capture voices from speaker or sound card on my computer win7, not from microphone Pin
serkanweb9-Feb-10 23:39
serkanweb9-Feb-10 23:39 
Questionregarding Microsoft Sync Framework Pin
Tridip Bhattacharjee9-Feb-10 2:47
professionalTridip Bhattacharjee9-Feb-10 2:47 
QuestionInsertMenuItem WinAPI problem Pin
Nematjon Rahmanov9-Feb-10 1:17
Nematjon Rahmanov9-Feb-10 1:17 
Hi !

I'm working shell context menu on 64 pc.
I rebuild app under x64 pc.

I want add menu item to windows context menu.Registery is OK and windows explorer find my dll.

But InsertMenuItem WinAPI function not working!

MENUITEMINFO mii = new MENUITEMINFO();
mii.cbSize =(uint)Marshal.SizeOf(typeof(MENUITEMINFO));// 0x30;
mii.fMask = (uint)MIIM.TYPE | (uint)MIIM.STATE |(uint)MIIM.SUBMENU;
mii.fType =(uint) MF.STRING;
mii.wID = idCmdFirst + num;
mii.dwTypeData = "My menu text";
mii.fState =(uint)MF.ENABLED;
mii.cch = (uint)mii.dwTypeData.Length;
                    
InsertMenuItem(hmenu, iMenu+1, true, ref mii);


My defenition :

[DllImport("user32.dll")]
public static extern bool InsertMenuItem(uint hMenu, uint uItem, bool fByPosition,[In] ref MENUITEMINFO lpmii);
   

   [StructLayout(LayoutKind.Sequential)]
    public struct MENUITEMINFO
    {
        public uint cbSize;
        public uint fMask;
        public uint fType;
        public uint fState;
        public int wID;
        public int hSubMenu;
        public int hbmpChecked;
        public int hbmpUnchecked;
        public int dwItemData;
        public String dwTypeData;
        public uint cch;
        public int hbmpItem;
    }


Please help me. (I know writing shell menu under .net is not good,but i very want see it).

Thanks.
We are haven't bug,just temporarily undecided problems.

AnswerRe: InsertMenuItem WinAPI problem Pin
Luc Pattyn9-Feb-10 1:25
sitebuilderLuc Pattyn9-Feb-10 1:25 
QuestionRe: InsertMenuItem WinAPI problem Pin
Nematjon Rahmanov9-Feb-10 1:47
Nematjon Rahmanov9-Feb-10 1:47 
AnswerRe: InsertMenuItem WinAPI problem Pin
Covean9-Feb-10 2:08
Covean9-Feb-10 2:08 
GeneralRe: InsertMenuItem WinAPI problem Pin
Nematjon Rahmanov9-Feb-10 2:33
Nematjon Rahmanov9-Feb-10 2:33 
GeneralRe: InsertMenuItem WinAPI problem Pin
Covean9-Feb-10 2:49
Covean9-Feb-10 2:49 
GeneralRe: InsertMenuItem WinAPI problem Pin
Decco28-Feb-10 23:27
Decco28-Feb-10 23:27 
QuestionSorting Pin
sachees1238-Feb-10 23:59
sachees1238-Feb-10 23:59 
AnswerRe: Sorting Pin
monstale9-Feb-10 0:38
monstale9-Feb-10 0:38 
GeneralRe: Sorting Pin
ThatsAlok9-Feb-10 0:57
ThatsAlok9-Feb-10 0:57 
AnswerRe: Sorting Pin
ThatsAlok9-Feb-10 0:41
ThatsAlok9-Feb-10 0:41 
AnswerRe: Sorting Pin
Luc Pattyn9-Feb-10 1:01
sitebuilderLuc Pattyn9-Feb-10 1:01 
AnswerRe: Sorting Pin
Dan Mos9-Feb-10 9:09
Dan Mos9-Feb-10 9:09 
Questionhow to retrive max value of a column by using c# Pin
inayat basha8-Feb-10 23:54
inayat basha8-Feb-10 23:54 
AnswerRe: how to retrive max value of a column by using c# Pin
ThatsAlok9-Feb-10 0:03
ThatsAlok9-Feb-10 0:03 
QuestionAuto Start programms Pin
Masterhame8-Feb-10 22:59
Masterhame8-Feb-10 22:59 
AnswerRe: Auto Start programms Pin
Gaurav Dudeja India8-Feb-10 23:05
Gaurav Dudeja India8-Feb-10 23:05 
AnswerRe: Auto Start programms Pin
Luc Pattyn8-Feb-10 23:58
sitebuilderLuc Pattyn8-Feb-10 23:58 

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.