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

C#

 
QuestionHOW TO Auto Install Devexpress Windows PowerShell Pin
Member 1404636316-Sep-19 2:17
Member 1404636316-Sep-19 2:17 
AnswerRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Dave Kreskowiak16-Sep-19 2:36
mveDave Kreskowiak16-Sep-19 2:36 
GeneralRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Member 1404636316-Sep-19 2:48
Member 1404636316-Sep-19 2:48 
GeneralRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Dave Kreskowiak16-Sep-19 3:26
mveDave Kreskowiak16-Sep-19 3:26 
GeneralRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Member 1404636316-Sep-19 5:46
Member 1404636316-Sep-19 5:46 
QuestionHow can I software-trigger WndProc(ref Message m) to execute? Pin
arnold_w16-Sep-19 0:40
arnold_w16-Sep-19 0:40 
AnswerRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
Richard MacCutchan16-Sep-19 1:26
mveRichard MacCutchan16-Sep-19 1:26 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
arnold_w16-Sep-19 22:00
arnold_w16-Sep-19 22:00 
Thank you, your link helped a lot. The following works great:
C#
[DllImport("user32.dll")]
public static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam);

    IntPtr windowHandle = IntPtr.Zero;
    if (this.InvokeRequired)
    {
        this.Invoke((MethodInvoker)delegate
        {
            windowHandle = this.Handle;
        });
     }
     else
     {
         windowHandle = this.Handle;
     }
     SendMessage(windowHandle, DBT_DEVNODES_CHANGED, IntPtr.Zero, IntPtr.Zero);  

GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
Richard MacCutchan16-Sep-19 22:45
mveRichard MacCutchan16-Sep-19 22:45 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 17:49
professionalBillWoodruff17-Sep-19 17:49 
AnswerRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 17:57
professionalBillWoodruff17-Sep-19 17:57 
QuestionUsing buttons on a form. Pin
Brian_TheLion15-Sep-19 17:48
Brian_TheLion15-Sep-19 17:48 
AnswerRe: Using buttons on a form. Pin
OriginalGriff15-Sep-19 20:43
mveOriginalGriff15-Sep-19 20:43 
AnswerRe: Using buttons on a form. Pin
GenJerDan15-Sep-19 20:55
GenJerDan15-Sep-19 20:55 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:32
professionalBillWoodruff16-Sep-19 4:32 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:30
professionalBillWoodruff16-Sep-19 4:30 
AnswerRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 16:20
Brian_TheLion16-Sep-19 16:20 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 16:36
professionalBillWoodruff16-Sep-19 16:36 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 20:40
Brian_TheLion16-Sep-19 20:40 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 22:49
professionalBillWoodruff16-Sep-19 22:49 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion17-Sep-19 20:03
Brian_TheLion17-Sep-19 20:03 
QuestionFile format not proper for excel mail attachment in c# Pin
Member 1225501213-Sep-19 8:33
Member 1225501213-Sep-19 8:33 
AnswerRe: File format not proper for excel mail attachment in c# Pin
MadMyche13-Sep-19 11:59
professionalMadMyche13-Sep-19 11:59 
QuestionHow to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 6:46
Member 1457084312-Sep-19 6:46 
AnswerRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 6:49
mveRichard MacCutchan12-Sep-19 6:49 

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.