Avatar of Sha1395
Sha1395
 asked on

MSMQ Peek and Receive

Hi All,

am trying to populate my msqmq Q in my datagrid view,

i used below property to receive the queue but
mes = Queue.Receive(new TimeSpan(0, 0, 3)); problem for this is it will delete the queue also,so some one suggest use peek

mes = Queue.Peek(new TimeSpan(0, 0, 3)); but it gets only the top queue only,

how can i get all the queue's i was reading something about enumerator but couldn't find examples to solve my problem
C#

Avatar of undefined
Last Comment
Sha1395

8/22/2022 - Mon
SOLUTION
BourbonKid

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Sha1395

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Sha1395

ASKER
I solved the problem by myself but expert comment is helpful to understand some new way to think about it
Your help has saved me hundreds of hours of internet surfing.
fblack61