Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
QuestionHow can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:28
arnold_w25-Apr-14 4:28 
AnswerRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 4:42
mveOriginalGriff25-Apr-14 4:42 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:48
arnold_w25-Apr-14 4:48 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 5:04
mveOriginalGriff25-Apr-14 5:04 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 5:20
arnold_w25-Apr-14 5:20 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 6:00
mveOriginalGriff25-Apr-14 6:00 
Questionadd picturebox to panel from a dll file at design time Pin
Member 1059256824-Apr-14 23:25
Member 1059256824-Apr-14 23:25 
AnswerRe: add picturebox to panel from a dll file at design time Pin
Eddy Vluggen25-Apr-14 4:00
professionalEddy Vluggen25-Apr-14 4:00 
QuestionC# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder24-Apr-14 19:11
RRLCoder24-Apr-14 19:11 
QuestionRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
Eddy Vluggen25-Apr-14 4:01
professionalEddy Vluggen25-Apr-14 4:01 
AnswerRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder25-Apr-14 6:44
RRLCoder25-Apr-14 6:44 
GeneralRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
Eddy Vluggen27-Apr-14 9:00
professionalEddy Vluggen27-Apr-14 9:00 
GeneralRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder27-Apr-14 10:49
RRLCoder27-Apr-14 10:49 
QuestionMute other applications Pin
el_stupey24-Apr-14 15:40
el_stupey24-Apr-14 15:40 
AnswerRe: Mute other applications Pin
Mycroft Holmes24-Apr-14 16:17
professionalMycroft Holmes24-Apr-14 16:17 
GeneralRe: Mute other applications Pin
el_stupey26-Apr-14 1:39
el_stupey26-Apr-14 1:39 
AnswerRe: Mute other applications Pin
Eddy Vluggen25-Apr-14 3:53
professionalEddy Vluggen25-Apr-14 3:53 
GeneralRe: Mute other applications Pin
el_stupey26-Apr-14 1:46
el_stupey26-Apr-14 1:46 
Questionhow to edit in crystal report Pin
Er Aslam Khan23-Apr-14 22:33
Er Aslam Khan23-Apr-14 22:33 
AnswerRe: how to edit in crystal report Pin
Chris Quinn23-Apr-14 22:59
Chris Quinn23-Apr-14 22:59 
AnswerRe: how to edit in crystal report Pin
Keith Barrow24-Apr-14 3:09
professionalKeith Barrow24-Apr-14 3:09 
AnswerRe: how to edit in crystal report Pin
thatraja24-Apr-14 21:09
professionalthatraja24-Apr-14 21:09 
AnswerRe: how to edit in crystal report Pin
Mycroft Holmes24-Apr-14 21:57
professionalMycroft Holmes24-Apr-14 21:57 
AnswerRe: how to edit in crystal report Pin
V.25-Apr-14 2:00
professionalV.25-Apr-14 2:00 
QuestionWndProc related issue in win apps c# Pin
Tridip Bhattacharjee23-Apr-14 20:55
professionalTridip Bhattacharjee23-Apr-14 20:55 
i have developed a small win apps which is suppose to capture skype conversation. my main concern is that i have define the
C#
WndProc()
here is the code a bit
C#
protected override void WndProc(ref Message m)
{
    Boolean handled = false;
    if (m.Msg == NativeCalls.APIAttach && (uint) m.LParam == NativeCalls.SKYPECONTROLAPI_ATTACH_SUCCESS)
    {
        // Get the current handle to the Skype window
        NativeCalls.HWND_BROADCAST = m.WParam;
        handled = true;
        m.Result = new IntPtr(1);
    }

    // Skype sends our program messages using WM_COPYDATA. the data is in lParam
    if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
    {
        COPYDATASTRUCT data = (COPYDATASTRUCT)Marshal.PtrToStructure(m.LParam, typeof(COPYDATASTRUCT));
        StatusTextBox.Items.Add(data.lpData + Environment.NewLine);

        // Check for connection
        //if (data.lpData.IndexOf("CONNSTATUS ONLINE") > -1)
        // ConnectButton.IsEnabled = false;

        // Check for calls
        IsCallInProgress(data.lpData);
        handled = true;
        m.Result = new IntPtr(1);
    }

    m.Result = IntPtr.Zero;
    if (handled) DefWndProc(ref m); else base.WndProc(ref m);
    //base.WndProc(ref m);
}


but controls is not coming in this
C#
if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
block that is main problem.

SQL
here i attach the link of my win application and that is https://onedrive.live.com/#cid=C4A6F16F34D7540A&id=C4A6F16F34D7540A!126 just download the skypecalltest and run it.

before run my apps just login to skype and then run my apps where you put a phone no and click on call button then you can see the controls is not coming repeatedly to the second if block.

so what i need to change in my code as a result control will come to second if block repeatedly .

in the same link there is another same kind of apps which is based on wpf and that is working where wndproc is calling repeatedly. if possible check that code too and guide me what i am missing or making mistake. thanks

tbhattacharjee

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.