15,898,373 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 Member 14589606 (Top 16 by date)
Member 14589606
21-Jan-21 6:06am
View
Thank you very much, it worked. Can you let me know how I can add an input box and use the value somewhere, I added the box but was unable to use the input elsewhere. Thank you again for the help. Regards
Member 14589606
20-Jan-21 6:34am
View
Hmm, strange. Thanks though
Member 14589606
20-Jan-21 6:14am
View
Thank you for your reply. I tried passing the arguments through the function and tried calling them but it does not work, it does not open any widget. Any ideas? Thanks
Member 14589606
20-Jan-21 4:59am
View
I passed temp and now the GUI does not pop up, it pop ups when I dont pass temp and when I dont pass temp, it only displays the 1st temperature
Member 14589606
7-Feb-20 20:51pm
View
Or do u mean to call the function 3 times for 64?
Member 14589606
7-Feb-20 20:42pm
View
How do I use it to split it 64 times?
Do you I loop it for 64 times?
Member 14589606
6-Feb-20 18:50pm
View
The path is correct, I added the reference
Member 14589606
6-Feb-20 18:49pm
View
I try to run this code but it closes immediately
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\temp\mybmp.jpg";
Bitmap image = new Bitmap(path, true);
Console.WriteLine(image.PixelFormat);
}
}
}
Member 14589606
5-Feb-20 19:48pm
View
Everytime I try to run it the console application shuts down or gives an invalid path format, and with right format it closes, any ideas?
Member 14589606
27-Jan-20 8:17am
View
now it is giving the following:
0020.0 0020.3 0050.0 0029.1 0100.0 0100.0 0000.0 0010.9 0000.0 0001.0 0000.0 0001.0 0000.0 0001.0 00000000000000000000000000000000
with some un-usual characters
Member 14589606
27-Jan-20 8:07am
View
I tried with Putty, and I am receiving the right response:
0020.0 0020.2 0050.0 0029.1 0100.0 0100.0 0000.0 0010.9 0000.0 0001.0 0000.0 000
9600 baud rate setting, what could be the problem?
Member 14589606
18-Nov-19 17:04pm
View
It says it exceeds the index.
I receive the response from the device and I save it in a string and then try to separate it or use your method
If i try writeLine on the string it prints each value in a separate line like this
0
0
6
5
Hence It states that the index exceeds
Member 14589606
15-Nov-19 17:35pm
View
It says it exceeds the index.
I receive the response from the device and I save it in a string and then try to separate it or use your method of yourString.Substring(9,4).
If i try writeLine on the string it prints each value in a separate line like this
0
0
6
5
Hence It states that the index exceeds
Member 14589606
1-Oct-19 12:29pm
View
it's unicast
Member 14589606
19-Sep-19 6:22am
View
Deleted
Hello. Thank you for your replies. It says that socketCmdText is null and shows an error here:
socketCmdText = new UdpClient(cmdTextPort);
Member 14589606
19-Sep-19 5:05am
View
When i call intializeJob() it shows an error stating; Normally, each socket address (protocol, network address or connection) may only be used once"
public void ExecuteJob()
{
int measureEventTime = 0;
intervalComparison = measurementEvent.repetitionIntervalTime * 0.75;
if (measurementEvent.eventRepetitionCount > 1)
{
measureEventTime = (int)(measurementEvent.eventIntervalTime * measurementEvent.eventRepetitionCount);
intervalComparison = measurementEvent.eventIntervalTime * 0.75;
}
initializeJob();
try
{
if (IsRepeatable())
{
// execute the job in intervals determined by the methd
// GetRepetionIntervalTime()
Thread.Sleep(measurementEvent.startDelay);
while (jobActive)
{
for (int i = 0; i < measurementEvent.eventRepetitionCount; i++)
{
//Thread thread = new Thread(new ThreadStart(DoJob));
//thread.Start();
System.Threading.Tasks.Task tStart = System.Threading.Tasks.Task.Run(() => { DoJob(); });
Thread.Sleep(measurementEvent.eventIntervalTime);
}
Thread.Sleep(measurementEvent.repetitionIntervalTime - measureEventTime);
}
}
// since there is no repetetion, simply execute the job
else
{
DoJob();
}
}
catch (ThreadInterruptedException e)
{
Console.WriteLine(String.Format("The Job \"{0}\" has been interrupted successfully.", jobName));
}
finally
{
deinitializeJob();
}
}
Show More