
CodeProject » C#
292 FOLLOWERS
CodeProject was formed to allow developers to freely share their knowledge, code and ideas. We believe that by opening your code to others, by teaching those who are learning, and by sharing our daily experiences we all become better programmers. Visit the forum and discuss everything related to C# and its features.
CodeProject » C#
3h ago
Hi We are coding an open source C# projet based on MS Orleans. This is our first alpha version. I'm just here to present Democrite and may be chat with coders to exchange ideas or by miracle make some of you to play with us.
Democrite is more oriented to deploy AI agents, but not only. Then...
I'll write an article ASAP...
Thanks for your feedback
GitHub - Nexai-net/democrite: Orchestration framework allowing to execute dynamic grains configurations to create a meta agent cluster only limited by grains implementations ..read more
CodeProject » C#
3d ago
namespace ATAS.Indicators.Technical
{
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Windows.Media;
using ATAS.Indicators.Technical.Properties;
using OFT.Attributes;
[DisplayName("5.Heiken Ashi Z")]
[Category("# 1234")]
public class HeikenAshiz : Indicator
{
private readonly CandleDataSeries _candles = new CandleDataSeries("Heiken Ashi Z"){ Visible = true };
private readonly PaintbarsDataSeries _bars= new PaintbarsDataSeries("Bars Z"){ Visible = false };
public HeikenAshiz()
{
Panel = IndicatorDataProvider.NewPanel;
DataSeries[0]= _bars ..read more
CodeProject » C#
1w ago
I have the below function which is called with a button click. It is supposed to chart from a database. The problem is that when selecting from database I am filtering the database using "WHERE". When I don't use this "WHERE" and plot the whole database table, the code works fine, but when I use this filter, it often leads to blank charts even though the data is there in the table. What is wrong with this code?
void PlotChart()
{
try
{
// Clear existing series
chart1.Series.Clear();
// Create new series ..read more
CodeProject » C#
1w ago
im a newbie to coding,,how can i get highest for the below code
C#
private decimal Lowest(int bar, ValueDataSeries src, int length)
{
if (bar < length)
return (0.0m);
decimal res = decimal.MaxValue;
for (int index = bar; index >= bar - (length - 1); index--)
{
if (src[index] < res)
res = src[index];
}
return (res ..read more
CodeProject » C#
1w ago
Hello & Salutations to Everyone, using: Win Forms .NET 4.7.2
I have a set of Form buttons named button1, button2, button3,………
I have an array of strings BUTTON_LIST_str[] =” button1”, “button2”, “button3”,…
I have a function:
private void APPLY_BUTTON_CFG(Button b)
{ …………… }
What I need to do is loop through BUTTON_LIST_str[] and pass each button object to APPLY_BUTTON_CFG(Button b).
Basically for every string I need to use for pointing to a different type form object or its property of object, I get the error "String cannot be converted to the object required type/format (System.Form ..read more
CodeProject » C#
2w ago
i want code to search in data grid view by date that the same date in date time picker tool in the same form ..read more
CodeProject » C#
2w ago
C#
1 namespace ATAS.Indicators.Technical;
2
3 using ATAS.Indicators.Drawing;
4 using OFT.Localization;
5 using OFT.Rendering.Context;
6 using OFT.Rendering.Settings;
7 using OFT.Rendering.Tools;
8 using System;
9 using System.ComponentModel;
10 using System.ComponentModel.DataAnnotations;
11 using System.Drawing;
12 using System.Runtime.Intrinsics.X86;
13 using Color = System.Drawing.Color;
14
15 [DisplayName("Candle X")]
16 public class CandleStatist : Indicator
17 {
18 #region Nested types
19
20 public enum LabelLocations
21 ..read more
CodeProject » C#
2w ago
I have a lines of data being written to a serial port. This data is in the following form
50 100 150 200 250 300 300 136 55 110 175 225 268 364 398 193
I am trying to make a C# application which would continously update 16 text boxes with these 16 values which are seperated by a tab. My current code just writes some garbage to the first textbox then the application closes. WHy?
void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e)
{
string dataLine = serialPort1.ReadLine();
if (dataLine == null || dataLine.Trim().Length == 0 ..read more
CodeProject » C#
3w ago
I'm trying to populate a combobox with a column in a SQLite database table. Im using an Absolute path in my connection string but Im getting an Error that the table doesn't exist. Ive read through other posts and still cant resolve the problem. Here is my code.
public Form1()
{
InitializeComponent();
if (File.Exists(@"R:\TEOP\Tracker\Tracker.db"))
{
SQLiteConnection conn;
conn = new SQLiteConnection("Data Source=R:\\TEOP\\Tracker\\Tracker.db,version=3;");
conn.Open();
SQLiteCommand cmd;
cmd = conn.CreateCommand();
cmd.CommandTex ..read more