15,886,027 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 13174280 (Top 12 by date)
Member 13174280
28-Jan-21 11:11am
View
thanks I'm at my first experiments with Parallel, applying the suggestions the loop is completed as long as I don't associate a control to another one.
limited the number of threads to 2
var options = new ParallelOptions()
{
MaxDegreeOfParallelism = 2
};
with association pnlCatalogo.Controls.Add(nDia[i]) , Cross-threading exception is guaranteed.
public void TestCornici(int i, Panel pnlImmagini)
{
numeroDia[i] = new Label();
pnlCatalogo.Controls.Add(numeroDia[i]); --> Cross-threading exception
.... without association
//pnlCatalogo.Controls.Add(numeroDia[i]); --> correct cycle
numeroDia[i].BorderStyle = BorderStyle.None;
.....
}
Member 13174280
28-Jan-21 11:04am
View
I limited the number of threads to 2
var options = new ParallelOptions()
{
MaxDegreeOfParallelism = 2
};
the cycle is executed correctly if I exclude: pnlCatalogo.Controls.Add(nDia[i])
nDia[i] = new Label();
//pnlCatalogo.Controls.Add(nDia[i]); --> exclude
nDia[i].BorderStyle = BorderStyle.None;
........
why the exception occurs associating a control (Label) to an other (Panel)?
Member 13174280
29-Nov-20 3:52am
View
just know the position of the cursor while dragging.
I am trying the solution by dragleave event
Member 13174280
9-Dec-19 13:44pm
View
this routine solve then \n
string newLine = Environment.NewLine;
int at = 0;
string app;
string app1 = "";
while (s.Length > 0)
{
at = s.IndexOf("\n");
app = s.Substring(0, at) + newLine;
s = s.Substring(at + 1);
app1 = app1 + app;
}
textBox1.Text = app1;
now show
line1
line2
...
linex
Member 13174280
9-Dec-19 12:32pm
View
ok, thanks; my error on row
this is correct.
DataTable dtFoto = new DataTable();
dtFoto = gesdb.QryRead(conn, dtFoto, Query); //execute query
MemoryStream ms;
int x = 0;
foreach (DataRow row in dtFoto.Rows)
{
FileImg = row["description"].ToString();
byte[] byteBLOBData = (Byte[])(row["public_note"]);
textBox1.Text = Encoding.UTF8.GetString(byteBLOBData);
}
then Blob is
line1
line2
...
the result is line1/nline2/nline3/n
texBox1 does not apply the /n
and show line1line2line3
Member 13174280
29-Apr-19 11:47am
View
I have installed connector 8.0.6 win32 (libeay32.dll)
inserted this file on
C:\Users _Test _Documents _Embarcadero _Studio _Projects _Win32 _Debug
and on
C:\Windows\System32
FDPhysMySQLDriverLink1.VendorLib
C:\Users _Maurizio _Documents _Embarcadero _Studio _Projects _Win32 _Debug _libeay32.dll
A Design Time doesn't work
At runtime, it all goes down.
FDPhysMySQLDriverLink1.VendorLib := ExtractFilePath(Application.ExeName) + 'libmysql.dll';
FDConnection1.Connected := true;
Member 13174280
15-Feb-18 5:49am
View
yes, see what I have to do with "Button".
www.efalco.it/temp/test.jpg
Member 13174280
14-Feb-18 4:24am
View
This solution is better than mine, I still can't move the focus from one item to the next.
I think we can simulate the click on ImageButton control
protected void Timer1_Tick(object sender, EventArgs e)
{
//simulate clck on ImageButton to enable event
}
Member 13174280
14-Feb-18 4:18am
View
I have modified and executed the code (for db MySql) of the link, but only responds to the click on an Item of the DataList.
Member 13174280
24-Jan-18 13:10pm
View
Deleted
better use c#
Member 13174280
24-Jan-18 8:04am
View
What you published yesterday does not need to understand which way to go or where the basic error is.
Member 13174280
24-Jan-18 4:36am
View
it is clear that I am wrong, otherwise I would not have asked.
a minimal example would have been more constructive, to everyone's blessin
Show More