15,999,429 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 Admire Mhlaba (Top 32 by date)
Admire Mhlaba
14-Dec-16 23:24pm
View
Thank you for being kind enough to respond to my question. Kindly share some links with related content for me to read up please. I haven't done anything like this before so I need some tutorials to guide.
Admire Mhlaba
6-Dec-16 10:44am
View
Funny thing is I have done this before in other projects and everything works fine. I'm also baffled. The error isn't specific enough
Admire Mhlaba
6-Dec-16 10:16am
View
Actually that is the exception message I'm getting from my error log file. Here is the link to download the DBContext Class: https://drive.google.com/open?id=0By9xalH13y_lcUsycFBtTWJ0MFE
Admire Mhlaba
6-Dec-16 9:23am
View
Good day, thank you for response but HttpPostedFildBase is an Abstract Class within System.Web namespace used to store stream data. I can not modify that class. I have added the Attribute [Key] to my primary key field but this doesn't solve the problem.
Admire Mhlaba
6-Dec-16 7:52am
View
Thank you, I will do so.
Admire Mhlaba
7-Jun-15 15:54pm
View
Good day Lusvardi Gianmarco, thank you for your insightful pointers, the link really helped and my problem has been solved.....
Admire Mhlaba
18-Sep-14 5:38am
View
Deleted
Here is the logical sequence of events:
1: A new SmS is received and processed by Method "CommandHandler(string[] smsText)", this method decodes the sms and calls a specific method based on the switch structure Value.
2: case "monitor": calls RemoteScan(parameters[2]);
3: RemoteScan calls RemoteMonitor() inside ReaderMonitor Form.
4: RemoteMonitor() calls ComPortSetup() which opens the com port.
5: RemoteMonitor() must then display the Form and return true or false back to RemoteScan inside SmsProcessor.
6: CommandHandler() will then call SendResponse();
Admire Mhlaba
18-Sep-14 5:28am
View
Deleted
https://www.dropbox.com/s/jnyo6bks4eb45zp/ReaderMonitor.cs?dl=0
https://www.dropbox.com/s/ptwrp6z4rvtr67i/SmsProcessor.cs?dl=0
Admire Mhlaba
18-Sep-14 5:22am
View
Deleted
Hi, Bill I really do appreciate you taking precious time out of your busy schedule to lend a helping hand. Kindly allow me to post a drop box link with the complete code of two classes in question.
Admire Mhlaba
18-Sep-14 5:04am
View
Deleted
As it stands, RemoteMonitor() is called inside a switch structure, at the end of the Method() that implements the switch structure that is where the SMS sending Method() is.
Admire Mhlaba
18-Sep-14 5:02am
View
Deleted
Yes the form does not show in Task manager and must be on top other forms. I wish I could send you the whole code but it is too big. I unless you don't mind.
Admire Mhlaba
18-Sep-14 4:45am
View
Deleted
I have changed the code according to the sample you provided. but now I can't send sms back to the sender. The code locks all threads until the form is closed.
Admire Mhlaba
18-Sep-14 3:51am
View
Deleted
Removing method RemoteMonitor is causing errors because the method is using controls of ItemMonitor Form??
Admire Mhlaba
18-Sep-14 3:46am
View
Deleted
Sorry to respond this late: I was trying something you guys mentioned about threads. I did something like this:
public bool RemoteMonitor()
{
this.Invoke(new ClearOutPutBoxEvent(ClearOutPutBox));
isStartButtonClicked = true;
object isOpen = null;
isOpen = this.Invoke(new RemoteScanEvent(ComPortSetup));
thread.Start();
return Convert.ToBoolean(isOpen);
}
public void WorkThreadFunction()
{
try
{
//this.Invoke(new Action(() => this.Show()));
this.ShowDialog();
}
catch
{
// log errors
}
}
however the code returns but does not display the form anymore.
Admire Mhlaba
18-Sep-14 3:44am
View
Deleted
okay, let me give it a try, thank you
Admire Mhlaba
18-Sep-14 3:18am
View
Deleted
If RemoteMonitor() returns false, it means that the "isOpen = this.Invoke(new RemoteScanEvent(ComPortSetup));" a call to ComPortSetup() which opens up a serail port to talk to RFID hardware was not successful, I will have to dispose the form and send sms message.
Admire Mhlaba
18-Sep-14 3:13am
View
Hi, no I'm not creating multiple instances or either instances, I think the form is unable to continue running on the current thread.
Admire Mhlaba
18-Sep-14 3:03am
View
I have class that receives sms messages, I then call a specific form based on the message sent to the system. I'm using Ozeki as my gateway. Currently I have a rfid scanner attached to my com port so RemoteMonitor method starts up the serail communication with rfid hard and displays rifd tag readings on the form. If the serial port is opened then I must send back the boolean value and use it to inform the sms sender if the system is running or not.
Admire Mhlaba
18-Sep-14 2:50am
View
Thank you for your kind input,i will consider your suggestion. Just a quick note, if I use this.Show() it does return the focus back but the form becomes unresponsive or hangs? Any idea how to allay this.
Admire Mhlaba
18-Sep-14 2:23am
View
Good day, thank you for your response, I'm using showDialog to display ItemMonitor form such that I can see data being generated by hardware connected to com ports
Admire Mhlaba
18-Sep-14 2:21am
View
Thank you for your kind response, well RemoteScanEvent invokes ComPortSetup Method that returns a boolean value to denote a success or failure and that is the value I'm trying to return back such that some other events can be triggered based on that.
Admire Mhlaba
30-Aug-14 14:34pm
View
thank you but the code was tricky for me to understand. Kindly help me improve the code I posted as a solution to display messages as this :
"USB Serial (COM4)" was plugged.
"USB Serial (COM4)" was unplugged.
Admire Mhlaba
30-Aug-14 14:32pm
View
Kindly help me improve the code I posted as a solution to display messages as this :
"USB Serial (COM4)" was plugged.
"USB Serial (COM4)" was unplugged.
Admire Mhlaba
30-Aug-14 14:25pm
View
Kindly help me improve the code I posted as a solution to display messages as this :
"USB Serial (COM4)" was plugged.
"USB Serial (COM4)" was unplugged.
Admire Mhlaba
30-Aug-14 12:40pm
View
I'm sorry for the late response, I have an Arduino Mega Board that is connected to my pc.
Admire Mhlaba
30-Aug-14 10:48am
View
scanningPort.DsrHolding returns false.
Admire Mhlaba
30-Aug-14 10:45am
View
Deleted
okay, thnk you
Admire Mhlaba
30-Aug-14 10:37am
View
Deleted
kindly pardon me but I'm not sure how to check for that.
Admire Mhlaba
30-Aug-14 10:21am
View
Deleted
I have registered the event.
scanningPort.PinChanged += scanningPort_PinChanged;
Admire Mhlaba
30-Aug-14 9:59am
View
Thank you Griff but the event is not firing.
Admire Mhlaba
12-Aug-14 3:41am
View
Thank you all for your kind and quick responses. FileSecurity argument is essential because without it I get another exception raised by lack of administrative privileges to read/write to files in C:// drive.
Admire Mhlaba
11-Aug-14 16:49pm
View
Thank you for the response Gautam Raithatha. Kindly shed a bid of light on how to apply "Appropriate join to fetch data in desired structure". Code snippet will be highly appreciated.
Show More