Click here to Skip to main content
15,902,634 members
Everything / Message

Message

message

Great Reads

by cjmakwana
This article outlines the C# code implementation for the popular message broker pattern generally used in common problems which involves brokering of messages with arbitrary type.
by VIGNESH SUKUMAR
Simple Message only BizTalk Project
by Ayush Swiss
Establish the communication between WebView2 and JavaScript by which you can send and receive the message via WebView2
by axuno
Take this ready-to-use VBA module for MS-Outlook, that lets you export all mail messages selected in the current Outlook email browser to the file system.

Latest Articles

by Jason Sultana
Understanding and preventing Newline Injection
by Wessel Beulink
As someone who frequently employs Logic Apps – Azure’s fantastic low-code solution – I’ve come to appreciate its wide range of actions and connectors. One of the keys to this balance? Solid documentation!
by DotNetLead.com
How to build an OpenAI chat application using Angular, ASP.NET API, and Azure
by Ștefan-Mihai MOGA
How to save a message to an MSG Compound file.

All Articles

Sort by Title

Message 

10 Sep 2013 by Saurabh Raoot
Hi, I have two different Win32 consol applications. Both these applications has multiple threads. I want to send message from thead_1 of application_1 to thread_1 of applcation_2. Can I do this ?? If yes .. then what all I need to do ??I have used message queue beween threads of same...
10 Sep 2013 by User 59241
What you seek to do is called inter process communication (IPC). It is more complex than communicating between threads within a process. There are many mechanisms to achieve this.An overview is given...
16 Sep 2013 by Jeankininho
HiBasically, I'm using the class of .Net MessageQueue, I send a Message with FileName to a Queue, but I've received many errors from the Machines that consume the Queue like "File doesn't exist" or "FileNotFoundException". The machines supposed to delete the files.If someone familiar...
17 Sep 2013 by Mehdy Moini
Imagine one thread is completed and another thread is not, so thread one, after endReceive , will delete the file when second thread have a message queue with a file name which doesn't point to a file, because first thread delete that.
15 Oct 2010 by Andre Trollip
A simple set of classes to make creating Peer to Peer messaging easy using UDP. Features built-in message concatenation and delivery receipts for reliable transmission.
15 Jul 2020 by honey the codewitch
How to implement a complicated multithreaded message passing scenario
7 Jan 2022 by Jeankininho
My problem is little confusing, I have 2 servers (Windows Server 2008 R2) with MSMQ installed and I want consume a MessageQueue are in Server A from Server B, but when I try to Receive always throw a message error: "Access to message queuing system is denied.".IP between them.Server A:...
29 Oct 2013 by Jeankininho
After many hours and much sweat HALLELUJAH.The answer is:In "Server Manager">"Features"> Right click in "Message Queueing">"Properties">Tab "Server Security" and disable the option "Disable un-authenticated RPC calls".
23 Mar 2001 by Wolfram Steinke
An entry level tutorial on using one of the Windows Common Controls in a dialog.
7 May 2023 by ToughDev
How to allow only numeric input in TextBox
16 Jun 2014 by Ehouarn Perret
Hi,I'm designing some C# .NET drivers for communicating with industrial equipments, mainly for testing purposes.The communication is based on text messages (a start(@/#) and stop(;) flags).The start flag is different when receiving(#) and sending(@) data.I started to create a...
16 Jun 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. In essence, you did not provide enough material for thinking and giving you some serious ideas.So, I can give you only some rather trivial idea: use either WCF or "classical" remoting (some says it's deprecated, but there are cases when it's better)....
2 Jul 2017 by Balaji1982
Hi,I would like to know the best approach.I have 10 different screens accessing the same table for an unique order number. Once a screen requests a unique number the same is generated and stored in this table and this value is sent back to the screen. This becomes a problem when the...
25 Mar 2013 by Bim Garcia
Implementation of ISO8583 in .NET
22 Jul 2012 by Allen Qake09
I want to make my browser's window to NEVER process or apply or receive or whatever any WM_ messages received, like WM_KILLFOCUS or WM_PAINT !So can it be done ? ( something like overwriting the WndProc maybe ? )Right now I'm coding in the AutoIt script-language, so if it can be possible...
22 Jul 2012 by Christian Graus
Your best bet is either to NOT try to stop Windows from working, or explain why you want to do this, so we can suggest alternatives. You can't stop the messages from being sent, you MAY be able to hook in to the WndProc and stop them being processed. Please don't ask the same question...
13 Oct 2023 by DotNetLead.com
How to build an OpenAI chat application using Angular, ASP.NET API, and Azure
23 Jun 2014 by Ehouarn Perret
Hi there,This is a long long long post... I'm afraid that I cannot really make it shorter, so please be indulgent with me :)Well, I'm trying to design an API.NET for communication with Testing Equipment and I cannot figure out a proper way for designing the architecture.Basically, we...
27 Feb 2014 by imbaro
Hi, I am writing a code, trying to connect to JMS, so I am using IConnectionFactory class, and creating a connection. the server i'm connecting to does not exist and the default timeout is 60 sec.while trying to connect, CPU is 100% and gets released only when time out occures.i know it's...
26 Nov 2010 by Achilleas Margaritis
C++0x Dynamic Message Passing Ala Objective-C
4 Sep 2013 by Sergey Alexandrovich Kryukov
In brief, this is a really bad architecture. But basically, Receiver.exe should "register" in the server and pass it its HWND, which Server.exe should remember. After that, Server.exe can use SendMessage(HWMD, ...) to send a message to Receiver.exe. Receiver.exe should process the message in a...
5 Jun 2013 by Jeankininho
HelloI'm working with MessageQueue and I'd like to know if there a way to know if there are message on Queue or not. I'm using it, but is too slow:private bool HasMessage(){ return _MessageQueue.GetAllMessages().Count() > 0;}I'd appreciate if someone know a easy way to...
5 Jun 2013 by Prasad Khandekar
Hello,Have a look at this documentation on MSDN. I think this is what you are looking for.Regards,
5 Jun 2013 by Sergey Alexandrovich Kryukov
Such property is not available, due to the multithreading nature of the class System.Messaging.MessageQueue: http://msdn.microsoft.com/en-us/library/system.messaging.messagequeue.aspx[^].You can thing of it as of some full-proof feature. Otherwise, what does it mean if you check up...
21 Mar 2013 by iDebD
Hi, Let me try to explain my problem here.I have a DLL, it is written in C++. It monitors all print objects for incoming print jobs (Through a Thread)and then fetch some information from print details. Upto here it is OK. Now I have to send this information to delphi project who loaded this...
21 Mar 2013 by Matthew Faithfull
If you have the source to both parts, C++ and Delphi and you build both with C++ Builder/Rad Studio then you can call the C++ code from the Delphi and the other way around too. In that case you could do what you want with a callback. You pass the address of a Delphi function into the C++ as a...
21 Mar 2013 by Espen Harlinn
Assuming you're using Visual C++, you could use COM, here is a pretty nice tutorial: A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012[^]Delphi works pretty well with COM, so accessing the COM object should be quite easy.Best regardsEspen Harlinn
1 Apr 2013 by iDebD
C++ DLL: "MyDll.dll"/////////////////////////////////////////////////////typedef HRESULT (CALLBACK * CALLBACKPROC)(DWORD wEvent,LONG_PTR arg,PVOID pParam);/////////////////////////////////////////////////////CALLBACKPROC g_pCallback = NULL;LPVOID g_pCallbackParam =...
12 Jul 2012 by a_daish
Hi All,Wondered if you could help.Putting together a Twitter desktop client together in Visual Studio 2010 using Visual Basic for a project. The Twitter client works a charm but I'm trying to figure out how to receive socket messages from third party applications. It needs to be able to...
5 Aug 2011 by sczii
Heya guysI was wondering if anyone had any links to tutorials or source code that I could look at for creating your own version of MSN messenger ? If anyone could help me out that would be great.There has to be a tutorial on the web somewhere that someone knows about... I just cant find...
5 Aug 2011 by walterhevedeich
Try finding it here[^]. Hope this helps
29 Mar 2015 by Web Technobrat
This tip shows a quick way to create a Yes No Confirmation Box using Bootstrap Modal Dialog. It helps go around the general Ok Cancel Confirm box built into JavaScript.
11 Oct 2013 by ASP.NET Community
This article presents a way to log and mail the errors from any web page.It logs following details -Control on which the error is raisedPage
11 Oct 2013 by ASP.NET Community
 Today I will show you the message bar which I normally used to display the standard place to display the messages like confirmation, errors,
17 Oct 2012 by Member 9522261
Every time I try to launch Cyberlink YouCam I get the following error message:C:\ProgramFiles(x86)\CyberLink\YouCam.exeThe application has failed to start because its side by side configuration is incorrect. Please see the application event log oruse the command-line sxstrace.exe tool for...
17 Oct 2012 by fjdiewornncalwe
The place to ask this question would be here[^], which is the vendor's support site.
13 Jan 2014 by akhil.krish
" CssClass="Delete" onclientclick="return confirm(" ")" Width="75px" Font-Bold="True" /> is not working ..... i want confirmation global...
19 May 2015 by Bo Li (KAFFEECKO)
Discuss three ways displaying error messages using Angular
21 Jun 2011 by derkoni87
Hi,is there a chance to disable the messaging system for a particular window dynamically during runtime? Looking at my application, I have got a CEdit control (lets say Edit1) and a handler routine which will be called on EN_CHANGE notification.The message handler now invokes...
21 Jun 2011 by Albert Holguin
Well, one quick way of doing this is to just derive your classes from the same base but don't include the SetWindowText() to the secondary CEdit in one.With a derivation sort of like this (where CEdit is whatever common base you want): class CEditSetTxt : public CEditclass CEditFinal ...
21 Jun 2011 by KarstenK
overwrite PreTranslateMessage and handle the messages your way. Tip: best is to call the default PreTranslateMessage at the end
21 Jun 2011 by వేంకటనారాయణ(venkatmakam)
I did not completely understood your question.But upto my understanding you are doing this.ON_EN_CHANGE(IDC_EDIT1, &CTestCEdit1Dlg::OnEnChangeEdit1)ON_EN_CHANGE(IDC_EDIT2, &CTestCEdit1Dlg::OnEnChangeEdit2)in OnEnChangeEdit1 you are changing the text of EDIT2 and in OnEnChangeEdit2 you...
5 Jul 2012 by kyawwinmin
EDI Message INVRPT (Inventory report) Type 632 (Goods Receipt) Donaldson standard reader for vb.net code
19 Jun 2016 by Stack Holder
I have build a database and created the below tables:CREATE TABLE Signup ( UserName VARCHAR(30) NOT NULL PRIMARY KEY, Email VARCHAR(30) NOT NULL PRIMARY KEY, password VARCHAR(50), )CREATE TABLE Sigin ( UserName VARCHAR(30) FOREIGN KEY (UserName) REFERENCES...
19 Jun 2016 by User 11060979
In your first Approach you simply mixed up the keys.Primary Key:UserName VARCHAR(30) NOT NULL PRIMARY KEY,Email VARCHAR(30) NOT NULL PRIMARY KEY,vs. Foreign:UserName VARCHAR(30) FOREIGN KEY (UserName) REFERENCES Signup (UserName),password VARCHAR(50) FOREIGN KEY (password) REFERENCES...
7 May 2023 by ToughDev
Interesting findings about GSM SIEMENS TC35
16 Sep 2016 by axuno
Take this ready-to-use VBA module for MS-Outlook, that lets you export all mail messages selected in the current Outlook email browser to the file system.
6 Sep 2012 by Ali_100
The method is here,The file name extract which is unziped successfully, but when i goto the directory & try to delete it,but it says it is using by another program,what i got missing? public static void UnZipFiles() { ZipInputStream stream = new...
6 Sep 2012 by bbirajdar
Use File.Close() or enclose the code inside the using blocks like this using(ZipInputStream stream = new ZipInputStream(File.OpenRead(@"c:\DoUnZip.zip"));){ // do your work here }
6 Sep 2012 by Sunil Kumar Pandab
Try this code what i have used in my application and it is working fine :-public string Zip(string ZipFileName) { try { if (!File.Exists(ZipFileName)) { //lstProcess.Items.Add("File Does Not Exists."); return...
25 Jun 2010 by GeniusMchlahla
I entered the South African Computer Olympiad for high school students. I found it relatively easy. It was not much of a challenge, with the exception of one particular question. The question proposes an alien language, which uses only one character to write with, '%'. The full problem can be...
25 Jun 2010 by Dalek Dave
Good Question, but I shall leave it to others to solve :)
27 Jun 2010 by Peter_in_2780
What the question is looking for can be re-expressed like this:How many different ways can we divide a pile of beans? By different, we mean that the sizes of the resulting piles are not all the same. For example,1 => 12 => 2, 1 13 => 3, 2 1, 1 1 14 => 4, 3 1, 2 2, 2 1 1, 1 1 1 15 =>...
7 May 2023 by ToughDev
How to fix ‘Search fields undefined’ error when generating source code for a Scriptcase gridview
21 Jul 2012 by Allen Qake09
What can I make to a window to NEVER receive any WM_ message ? OR atleast to not process or apply them? Or to discard them from the Message Queue ?Can those functions be helpful ? :-GetMessage function ? or-DispatchMessage function ? or-PostQuitMessage...
21 Jul 2012 by woutercx
I'll assume C#. What kind of messages do you not want to receive anymore? I assume keyboard messages?Maybe I have an idea for you:I used a certain control in my project:KRBTabControl[^] that had an override: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) ...
21 Jul 2012 by woutercx
Or override WndProc in your form:protected override void WndProc(ref Message m) as they explain here: http://msdn.microsoft.com/en-us/library/system.windows.forms.message.aspx[^]
22 Jul 2012 by woutercx
What you want is a "system wide" filter on WM_ messages.This is a Codeproject that provides something like that..NET system wide hotkey component[^]Now the only thing you have to find out is to find the handle of the existing Chrome window.Maybe this will be a good...
22 Jul 2012 by woutercx
Hmm seems like this could be a solution in autoit itself!http://www.autoitscript.com/forum/topic/97867-keeping-my-gui-not-focused/[^]
22 Jul 2012 by woutercx
In C++http://stackoverflow.com/questions/9164659/code-in-petzolds-programming-windows-making-window-error[^]Closer to a solution, but still you'll have to know the proper handle of the Google Chrome window, and if you don't know what you're doing you can mess up your Window session...
22 Jul 2012 by woutercx
"How to get the handle of the window"http://www.cplusplus.com/forum/beginner/3811/[^]
15 Apr 2015 by Member 11609804
I'm using your FlexibleMessageBox code and though it appears to be working (not throwing any errors), when it attempts to display the message box, nothing appears and my application is frozen. I'm running it in debug mode so the only way to unfreeze it is to stop the application and restart. Any...
15 Apr 2015 by OriginalGriff
Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.Posting this here relies on them...
15 Dec 2017 by Member 13570338
The client: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net.Sockets; using System.Threading; using System.Net;...
12 Dec 2017 by CPallini
It exits because you have designed it to do so: both your client and server threads terminate upon receiving the first input data. This way, after first data receival, the receiving endpoint is no more active.
2 Apr 2018 by Babiiii
Good evening, I've been trying to create my own C# program that can message another Computer within the network. Unfortunately, none works. Please help me to make a C# Program that can pop-up message or notification message another computer within its network. What I have tried: I tried ...
2 Apr 2018 by RickZeeland
I think it would be easier to use SignalR, see introduction here: SignalR | The ASP.NET Site[^] See examples here: c# - SignalR Console app example - Stack Overflow[^] Tutorial: SignalR Self-Host | Microsoft Docs[^] SignalR Chat App With ASP.NET WebForm And BootStrap - Part One[^]
26 Oct 2021 by OriginalGriff
Repost: Deleted. Please do not repost your question; use the Improve question widget to add information or reformat it, but posting it repeatedly just duplicates work, wastes time, and annoys people. The answer isn't going to change because you...
6 May 2020 by ZurdoDev
You can ask at Bugs and Suggestions[^].
24 Feb 2013 by Esmaeil Ebrahimi
hi allmy cms message some time appear in page that php code execute in it (php code in index.php and message appear in top of index.php) , and some time they appear in white page ...now i want all message of my cms appear in same place (like popup div or one page or else)i want a php...
10 Oct 2017 by Wessel Beulink
Checkout this tutorial: [^]
15 Feb 2017 by Richard MacCutchan
This is the wrong place. Try Bugs and Suggestions[^].
4 Aug 2013 by Member 10153126
Dear all,get data for all user on company the program have 2 programs1- Clint program (hide)2- IT program (visible)I want to send message from it to all user in company and available send message to one user only. How to do it ?
4 Aug 2013 by Status BreakPoint
You can use the Inter Process Communication. See. Inter-Process Communication (IPC) Introduction and Sample Code[^]
24 Nov 2010 by Kambaa
How to check whether .NET is installed in PC Visual Basic 6 code
30 Oct 2011 by skathirmca1
( For Example user select any one ip address in dropdow list.After selecting ip address it' will ask user name and password of particular ip address,After entring usrename and password the system will validate the user name and password, the are correct , the particular system path will...
27 Oct 2011 by Mehdi Gholam
You can connect to a any machine with the following methods :1) Using TcpClient connections2) Using Remote Desktop Protocol3) Using WebServices4) Using WebClient and getting a html page5) Using Named Pipes6) Using WCFTake your pick.
29 Mar 2015 by Anshumaan C
I have the following Request xml: ...
20 Aug 2013 by kkklko
hi I want to get all messages in message queue in linux,could you give me some tips?many thanks!
6 Jun 2022 by Cameron Grant 2021
I am creating a registration form using the Django framework and I want to display some error messages to the user if they enter the wrong confirm password, or an email already taken etc. I have written the code and it seems to be working, but I...
1 Aug 2013 by Aren Nov
Hi codeproject gentlemen,How can I find the handle of a new window when is about to get created/opened by another window BUT before the OS will display it, because I want to imediately kill that new window for not interrupting my other running tasks on the desktop, by stealing the focus....
21 Aug 2013 by kkklko
hi i want to post a message to a message queue of a process,but i do not know how to get the message queue of the process.could you give me some help? -kkklko
21 Aug 2013 by Richard MacCutchan
I already answered this question at how to get the id of message queue of a process in linux?[^]. Please do not post the same question multiple times.
4 Aug 2010 by Ondrej_Uzovic
The example in the article implements the service application Calculator. This service application listens to request messages and calculates numbers (summation, subtraction, multiplication and dividing). The result is then sent back to the client as the response message.
16 Apr 2013 by PJ Arends
I need to know when the screen saver has ended. Windows sends the WM_SYSCOMMAND message with the SC_SCREENSAVE parameter when the screen saver starts, but I have not been able to figure out how to tell when the screen saver ends. Google is no use as all I get there is free screen saver...
16 Apr 2013 by Manfred Rudolf Bihy
There is a way of checking if the screensaver is still running. See the discussion on MSDN: Screen Saver notifications[^]. nobugz[^] answer shows how to pinvoke SystemParametersInfo to poll the current status of the screensaver.Google search: "C# screen saver running"Regards,—...
14 Oct 2013 by Salah Abualrob
Hi,can i know when someone opens my messages? i mean i want to make an application which plays a sound when someone opens a message to read it, something like a broadcast?thanks
16 Jul 2020 by Kevin Mack
When storing data in Azure blob storage, the process of upload a blob is fairly straight forward, and all it takes is setting the access tier to “Archive” to move data to blob storage.
7 Dec 2013 by footballpardeep
public static void ComplexLocalPing () { // Ping's the local machine. Ping pingSender = new Ping (); IPAddress address = IPAddress.Loopback; // Create a buffer of 32 bytes of data to be transmitted. string data =...
7 Dec 2013 by Dave Kreskowiak
There is no application I know of that will show you the data. An ICMP packet normally does not make it high enough up the network stack for that data to be shown. An application would have to be specifically written for the purpose and running on the target machine, with someone logged in at...
11 Jul 2020 by wedagedara
Hi,I am new to MFC, I am using a thread and want to send a message to dialogue class using that thread(ThreadProc) so i can call a function in the dialogue class using that thread. Please tell me the message code to use.(Sendmessage(?????????????))Think i need to send "ON_CBN_SELCHANGE" ...
18 Aug 2012 by stib_markc
I suggest to use PostThreadMessage instead of SendMessage, check PostThreadMessage Demystified[^] for reasons. For Documentation see http://msdn.microsoft.com/en-us/library/windows/desktop/ms644946%28v=vs.85%29.aspx[^]And by the way if you want to invoke a function of your dialog class from...
19 Dec 2012 by CarlosEveris
Hello mates,I'm trying to send a windowsmessage from an app in C# (Compact Frame) to another one in C++ (MFC), both of them in a PDA.In the receiver app (MFC) I realize that I receive the message but I can't read the string message, it shows a little square.This is the code of the...
19 Dec 2012 by CPallini
You cannot pass a pointer (the string) across process. Have a look at this CodeProject article: "Use WM_COPYDATA to send data to/from C++ and C# Windows processes"[^].
26 Oct 2021 by OriginalGriff
This is a repost of your question from some days ago: Sending messages to phone numbers[^] The answer hasn't changed in the meantime.
11 Oct 2013 by ASP.NET Community
How to Send Mail with Error Message DetailsSometimes need to handle error and send it to technical support to handle error and send the solution to
24 Nov 2012 by Younth
Hello Everyone,I'm trying to redraw the menu (a menu with POPUP style ,right keydown menu), I already recoded three messages: WM_MESUREITEM, WM_INITPOPUP and WM_DRAWITEM, but the finally result doesn't make me satisfied.The three messages above only deal with menu items, the whole menu...
24 Nov 2012 by Richard MacCutchan
You have not really explained what your problem is, but some of these links[^] may help you.