15,892,059 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 Python 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 Abhishek Sivasubramanian (Top 5 by date)
Abhishek Sivasubramanian
23-May-14 17:20pm
View
+1 Ryan. Best option is to rewrite it.
Abhishek Sivasubramanian
23-May-14 15:32pm
View
Develop a class library that will do OAuth authentication. This topic will help you to understand Open Authorization (which is the latest trend of safe and secure authentication).
Read more at : http://deanhume.com/Home/BlogPost/a-simple-guide-to-using-oauth-with-c-/49
http://oauth.net/2/
Abhishek Sivasubramanian
23-May-14 15:22pm
View
Are you getting some error on that line you highlighted OR your problem is that you cannot see the forecolor being applied ?
If later is the case, you need to place the dynamically generated label to the form's control collection or a panel. Then only you can see that.
Abhishek Sivasubramanian
23-May-14 14:47pm
View
If you are trying to use Adam.NET class library, please refer the API documentation and see if you are coding in the way documentation says you to. I am not sure of which version of ADAM micro controller you are using. http://downloadt.advantech.com/ProductFile/Downloadfile4/1-D9M661/Adam.NET_Installation_Guide_Ver1.pdf
Abhishek Sivasubramanian
2-May-14 16:26pm
View
What I would suggest is to use the DataContractSerializer to generate serialized form of the DataContract class. Now prepare an XmlDictionaryWriter object. You could use the WriteAttributeString() method to add attributes to these XML elements. As Sergey said, you need not create XElemenet and parse stuff when DataContract serializer does all this for you.
Applicant p = new Applicant();
DataContractSerializer dcs = new DataContractSerializer(typeof(Applicant));
XmlDictionaryWriter xdw = XmlDictionaryWriter.CreateTextWriter(someStream,Encoding.UTF8 );
dcs.WriteObject(xdw, p);
dcs.WriteStartObject(xdw, p);
xdw.WriteAttributeString("IsEnabled", "True");
dcs.WriteObjectContent(xdw, p);
dcs.WriteEndObject(xdw);
Does this help ?