16,012,110 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by pluss400 (Top 41 by date)
pluss400
16-Nov-13 6:24am
View
SAK solution did not work at all. As I pointed out to him. If I use KeyDown or KeyPress doesn’t change anything.
The question is easy to understand.
The point is what happens width the key running from the keyboard all the way to the control. What the solution in the end will be when I intercept at deferent stages.
Ive solved it by remembering the keyboard message queue system. It explain the control behavior very well and I shall be handling the key code accordingly.
Anyway. Thank you for answering.
pluss400
16-Nov-13 5:39am
View
Deleted
I’m so sorry to insist, but as long as you continue pointing out that your answer was ok, I have to reply that your answer was NOT AT ALL YOUSTEFIED.
I feel wary insulted by your answer and I understand you removed it. So now you won´t give me the opportunity of making a complaint.
Keep your personal opinion to yourself!
pluss400
10-Nov-13 15:44pm
View
Deleted
saMaybe you shouldn’t jump the gun before you know who you try lecturing. You use your knowledge to undermine people with less knowledge, so you thought.
My other advice is to you. Try to be helpful instead. That’s way many of us are in here. Trying to get an answer to some peculiar incident.
pluss400
10-Nov-13 4:12am
View
Deleted
Hi again SA.
My question was easy to understand despite the gibberish.
You should take time reading the text correctly without getting a nerves breakdown. I wouldn’t want that on my account.
For your information the EventArgs do NOT have the key code that KeyEventArag have. I want the Virtual-key Codes. I don´t want to use the low level windows hooks. I don´t want to get involved with the TranslateMessage function because I don´t need to.
I have solved the problem. It was steering me in the eye all the time. By remembering the order in which the keyboard message queue operates.
Now I will give you some advice. Maybe you should go some anger management course.
You should try have a nice day because I will.
pluss400
8-Nov-13 1:34am
View
Deleted
SAI thought someone would understand the gibberish. I kept the text to a minimal. I was in a hurry. Sorry for that.
Now I´ve done some updating that you might like, like it should have been the first time.
Now I don´t want the gibberish "eventArg" you should use "EventArgs" but I want to use KeyEventArgs to chatch the non character keys.
Now. My solution dos´nt work neither dos yours. Maybe I´t works in KeyPress but that dos´nt suit my solution!
What do you think. Should´nt I learn C# and WINAPI to?
pluss400
7-Nov-13 12:39pm
View
It´s unsafe direct against win api. Catching keybord low level event, it translates key kodes beföre the textbox get a caracter posted.
pluss400
21-Feb-13 6:11am
View
I´ve tryed it out and it works perfect.
Thank you.
pluss400
20-Feb-13 3:55am
View
C# .NET version 4.0 visual studio 2010
I have tried this
"Server =.\SqlExpress; AttachDBFilename = my.mdf; User Instance = True; Integrated Security = True;"
pluss400
20-Feb-13 3:40am
View
I want a connection like this one
"Server = .\SqlExpress; Database = master; Integrated Security = SSPI"
that connects to my.mdf after i created my database
i tryed a lot of different settings and not any works. i obviously do something wrong.
pluss400
20-Feb-13 3:23am
View
there happen something before i could finish my question.
it is fully readable now.
thank you fore looking.
pluss400
22-Aug-12 13:54pm
View
Very nice. But the button also has to work like a normal button I can click on with the mouse. I got 18 of those buttons.
Best Per.
pluss400
26-Nov-11 3:05am
View
Thank´s.
Do I really have to pick the computer apart again:( Is there no software solution or other way you can think of?
I´s there no program that stretches into the kernel and the disk. What I´m thinking, is alterring the BOOT secter manualy, altering the activ and primary bit´s. That would bee fun doing it that way.
In the old days there was a Norton Commander that hade that ability. It was posible to alter all bits on the disk.
Youst wondering.
pluss400
26-Nov-11 2:50am
View
AAaaahhh. Of course it´s a SSD disk. Sorry about that.
pluss400
17-Apr-11 6:43am
View
Hi. Thanks for answering.
The port is generated automatic by WCF in app.config by setting the bindings/binding/…port = ”0”. Now I need this same port when I register into a cloud so my WCF Endpoint has the same port nr as my Socket Endpoint in my PeerName.
I know I can do everything in C# code and seriously thinking doing it that way. Way I want to use config file is to be able to do an easy update later on.
Any suggestions are appreciated.
I´m just curious. Are you Danish because I’m Swedish.
pluss400
24-Mar-11 2:08am
View
I thought with that long explanation it was obvious I meant changing the parameter in the firewall. If you have looked at the link then everything would have been clear as daylight.
Don’t bother. Someone, a little bit more helpful pointed me in the right direction.
-P
pluss400
23-Mar-11 7:00am
View
Hi again. Ones again, thanks.
It gave me a pointer, where I found what I was looking for. I´l put the link here, witch was very discriptiv with som C# code ex:
http://blogs.msdn.com/b/ncl/archive/2009/07/27/end-to-end-connectivity-with-nat-traversal-.aspx
Now I will precid with security and firewalls.
pluss400
22-Mar-11 13:57pm
View
Yes. Thank you. I appreciate it. But the other comments, I can be without.
I’ve looked at it and I found the assembly’s. I´m not quite sure what It accomplishes.
I’m going to ask you a stupid question. My 2 update: dos it accomplish that task. So I only have to do these ones?
pluss400
22-Mar-11 13:56pm
View
Deleted
Yes. Thank you. I appreciate it. But the other comments, I can be without.
I’ve looked at it and I found the assembly’s. I´m not yet quite sure what It accomplishes.
I’m going to ask you a stupid question. My 2 update: dos it accomplish that task. So I only have to these ones
pluss400
22-Mar-11 12:46pm
View
If you’re so capable, it should be a piece of cake generating a decent answer.
But, watt I can see, you’re just mumbling like a bunch of old ladies.
pluss400
22-Mar-11 12:37pm
View
????
pluss400
22-Mar-11 10:23am
View
When I install communication program like dropbox it dos the changes by it self. It dos have a client, server configuration ofcourse. That has to be done in code.
I want to WCF P2P that uses PNRP to be able communicate wold wide.
pluss400
22-Mar-11 10:02am
View
When I install communication program like dropbox it dos the changes by it self. I dos have a client, server configuration. That has to be done in code. Right.
pluss400
24-Jan-11 16:39pm
View
Deleted
Ok. I´m quite new at certificates. So HTTP Imetatdata attempts to start a web service. It has to be verified by windows. It uses x509 certificate to get clearance:
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
="" listenurimode="Explicit">
<identity>
<dns value="localhost">
<certificatereference storename="My" storelocation="LocalMachine"
="" x509findtype="FindBySubjectDistinguishedName">
Question:
1) Where do I Put my username identifier when I got it?
2) When everything is finished and compiled. I take the app to a new computer. What happens then?
Thanks. Hope for a reply.
pluss400
23-Jan-11 11:45am
View
Thanks.
pluss400
23-Jan-11 11:45am
View
Thanks.
pluss400
22-Jan-11 6:25am
View
I’m sorry. I’m allergic to VB at all. But you gave me an idea. I can hardcode the authorization before starting the service. In .NET code.
Have a nice day.
pluss400
21-Jan-11 13:58pm
View
Thanks. I have being looking at this before. There is 2 problems with this solution. The application I´m building, is a sensitive one. It can’t be halted for long time.
1) When I give the compiled application to my friend and he get the error message. What shall he do? He knows nothing about computers, and it should not work this way.
2) If I want to do an update in the future, which I most certainly will. It´s no easy task. Installing, compiling and so forth. The computer will be reboted.
So. There must be an XML alternative in app.config.
pluss400
21-Jan-11 13:52pm
View
Deleted
Thanks. I have being looking at this before. There is 2 problems with this solution. The application I´m building, is a sensitive one. It can’t be halted for long time.
1) When I give the compiled application to my friend and he get the error message. What shall he do? He knows nothing about computers, and it should not work this way.
2) If I want to do an update in the future, which I most certainly will. It´s no easy task. Installing, compiling and so forth. The computer will be reboted.
So. There must be an XML alternative in app.config.
The app.config and I done comment about the problem.
<configuration>
<system.web>
<compilation debug="true">
<system.servicemodel>
<services>
<service behaviorconfiguration="TestServiceLibrary.Service1Behavior"
="" name="TestServiceLibrary.TestService">
<clear>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
="" listenurimode="Explicit">
<identity>
<dns value="localhost">
<certificatereference storename="My" storelocation="LocalMachine"
="" x509findtype="FindBySubjectDistinguishedName">
<endpoint address="net.pipe://localhost/TestService" binding="netNamedPipeBinding"
="" bindingconfiguration="" contract="TestServiceLibrary.ITestService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/TestService" />
<!—MY INSERT : If I change this "<add baseAddress="http://localhost:8731/Design_Time_Addresses/TestService" /> to this <add baseAddress="http://localhost:8731/TestService" />
or this <add baseAddress="http://localhost:8000/Design_Time_Addresses/TestService" /> the WcfSvcHost will generate the descibed error and not start!
I´m using Edit Solution Explorer/WCF Configuration/Configuration/Services/Host/BaseAddress/Edit???-->
</baseAddresses>
<behaviors>
<servicebehaviors>
<behavior name="TestServiceLibrary.Service1Behavior">
<servicemetadata httpgetenabled="True">
<servicedebug includeexceptiondetailinfaults="True">
pluss400
20-Jan-11 3:38am
View
You got to be kiding me: endpoint address="basic" binding="basicHttpBinding" bindingConfiguration=""
contract="TestServiceLibrary.ITestService"
IT DONT WORK!
pluss400
20-Jan-11 2:38am
View
After the change to basicHttpBindig It still generates the same error.
pluss400
20-Jan-11 2:27am
View
Hi. What about mexHttpBinding. It uses the baseaddress to? The baseaddress is http://localhost:8731/Design_Time_Addresses/TestService". When I alter or remove this bit "Design_Time_Addresses" in the address it crashes.
pluss400
20-Jan-11 2:26am
View
Deleted
Hi. What about mexHttpBinding. It uses the baseaddress to? The baseaddress is http://localhost:8731/Design_Time_Addresses/TestService". When I alter or remove this bit "Design_Time_Addresses" in the address it crashes.
pluss400
19-Dec-10 8:20am
View
Thanks again. Youst what I was looking for. Found a total explanation on this sigt.
http://csharpindepth.com/Articles/General/Singleton.aspx
Best to you.
Per
pluss400
19-Dec-10 5:55am
View
Ok. Read about Singelton. Thats what I have tryed to do all the time. Hove do you devide the Singel instance(Queue object) between Projects and their classes? Do I go about this the wrong way. If so tell mee hove?
Best to you
Per
pluss400
19-Dec-10 5:44am
View
what is put in is not comming out.
pluss400
19-Dec-10 5:38am
View
Thanks. What is the singleton design pattern?
pluss400
19-Dec-10 5:20am
View
Than you.
My intension is to use the Queue system, shoveling data between 2 Projects in the same solution. In Project 1. The receiver side there are 2 classes depenging on this Queue. In Project 2, the giver side, one class puting data in Queue.
Do you have a better solution to the problem, Please, Im all ears off course.
I want to solve this problem with one instance, serving all projects and classes.
Best to you.
Per
pluss400
19-Dec-10 5:08am
View
Thank you.
I have some strange results that only can be my Queue. If I take this a step further and make the Queue thread safe with "class ReaderWriterLockSlim". Then using the static Queue to shovel data between the 2 clases with one thread in each class that handles the data. Should that be a problem?
Best to you.
Per
pluss400
18-Dec-10 4:09am
View
Deleted
Ex Do I have to make Methods static in one Project, that shall be seen in other Projects
pluss400
18-Dec-10 4:07am
View
Thats not posible. It has to bee in the announced order. But howe do I do this, irrespectively order?
A snippet maybe?
Ex Do I have to make Methods static in one Project, that shall be seen in other Projects
Best
pluss400
9-Dec-10 8:31am
View
Thank you Markus, but Im way past Threads. Im not taking about Threads. Im taking about *.exe.
Ex you can import an *.exe or/and *.dll to the project. You can start Process in your app. but the question is. How do Process talk with an other Process.? I read something thats cald Intercommunicating Processes.
Thanks again.
Show More