Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to build a PDF maker program at C# Pin
User 1367511424-Mar-18 2:19
User 1367511424-Mar-18 2:19 
QuestionAzure Service Bus Messaging - passing messages to UI Pin
Solo118-Mar-18 1:56
Solo118-Mar-18 1:56 
AnswerRe: Azure Service Bus Messaging - passing messages to UI Pin
Pete O'Hanlon18-Mar-18 2:52
mvePete O'Hanlon18-Mar-18 2:52 
AnswerRe: Azure Service Bus Messaging - passing messages to UI Pin
Gerry Schmitz18-Mar-18 8:12
mveGerry Schmitz18-Mar-18 8:12 
QuestionDifferent behaviors for toggleClass and hasClass Pin
VK1915-Mar-18 3:31
VK1915-Mar-18 3:31 
AnswerRe: Different behaviors for toggleClass and hasClass Pin
Pete O'Hanlon15-Mar-18 4:05
mvePete O'Hanlon15-Mar-18 4:05 
GeneralRe: Different behaviors for toggleClass and hasClass Pin
VK1915-Mar-18 4:30
VK1915-Mar-18 4:30 
AnswerRe: Different behaviors for toggleClass and hasClass Pin
Gerry Schmitz15-Mar-18 6:19
mveGerry Schmitz15-Mar-18 6:19 
GeneralRe: Different behaviors for toggleClass and hasClass Pin
Eddy Vluggen15-Mar-18 11:00
professionalEddy Vluggen15-Mar-18 11:00 
QuestionWhile converting XML to JSON using c#, By providing the data within the class,I’m getting the output.I need to fetch data from file present in folder .Could anyone please help me on this Pin
Member 1372663914-Mar-18 9:37
Member 1372663914-Mar-18 9:37 
AnswerRe: Load XmlDocument from file Pin
Richard Deeming14-Mar-18 10:14
mveRichard Deeming14-Mar-18 10:14 
AnswerRe: While converting XML to JSON using c#... Pin
Dave Kreskowiak14-Mar-18 10:18
mveDave Kreskowiak14-Mar-18 10:18 
Questionwant to know how can i access a list from another class Pin
Member 1372660714-Mar-18 9:15
Member 1372660714-Mar-18 9:15 
AnswerRe: want to know how can i access a list from another class Pin
Dave Kreskowiak14-Mar-18 10:12
mveDave Kreskowiak14-Mar-18 10:12 
AnswerRe: want to know how can i access a list from another class Pin
#realJSOP15-Mar-18 5:56
professional#realJSOP15-Mar-18 5:56 
QuestionC# CA1060 P/Invoke method Pin
Member 1371048711-Mar-18 17:15
Member 1371048711-Mar-18 17:15 
Hello
So recently i've been making a program that uses DllExport of "user32.dll". The program itself is running pretty ok but this warning always pops up.

Because it is a P/Invoke method, 'Form1.mouse_event(uint)' should be defined in a class named NativeMethods, SafeNativeMethods, or UnsafeNativeMethods

I tried already many times and watched a lot of examples but it didnt help me.


Here is the part of the code

namespace XXX
{
    public partial class Form1 : Form
    {
        [DllImport ("user32.dll")]
        
        static extern void mouse_event(uint dwFlags);
        public Form1()
        {
            InitializeComponent();
        }



private void keyPressAction(object sender, KeyEventArgs e)
{
    e.SuppressKeyPress = true;
    System.Threading.Thread.Sleep(300);
    Cursor.Position = new System.Drawing.Point(1000, 0);
    mouse_event(0x002 | 0x004);

DC

AnswerRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon11-Mar-18 22:16
mvePete O'Hanlon11-Mar-18 22:16 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff11-Mar-18 22:34
mveOriginalGriff11-Mar-18 22:34 
GeneralRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon11-Mar-18 22:52
mvePete O'Hanlon11-Mar-18 22:52 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 7:11
Member 1371048712-Mar-18 7:11 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 7:13
Member 1371048712-Mar-18 7:13 
GeneralRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon12-Mar-18 10:04
mvePete O'Hanlon12-Mar-18 10:04 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 13:45
Member 1371048712-Mar-18 13:45 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff13-Mar-18 0:18
mveOriginalGriff13-Mar-18 0:18 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen13-Mar-18 4:35
professionalEddy Vluggen13-Mar-18 4:35 

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.