16,023,117 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 Visual Basic questions
View Javascript 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 TolgaCiftci (Top 14 by date)
TolgaCiftci
2-Jun-10 13:49pm
View
I use the second bit of code at the beginning as:
private void InputBox_TextChanged(object sender, EventArgs e)
{
if (InputBox.Text.StartsWith("p") == false)//Clear the box if the message does not start with p
{
InputBox.Text = "";
}
if ((InputBox.Text.StartsWith("p") == true) && (InputBox.Text.EndsWith("}") == true))// only process if the message starts with p and ends with }
{
string Message = InputBox.Text;
InputBox.Text = "";// Clear the box when done.
// Butt1 message line
if (Message.StartsWith("plabelt1") == true)
{
if (Message.StartsWith("plabelt1_BackColor") == true)
{
Message = Message.Substring(19);
labelt1.BackColor = System.Drawing.Color.FromName(Message.Replace("}", ""));
}
}
I know it doesnt exist therefore it can't but how am i going to overcome that?
TolgaCiftci
1-Jun-10 13:32pm
View
When I add the name property.. lets say I add the name labelt, will it go as labelt1, labelt2 as I create new labels?
TolgaCiftci
27-May-10 11:45am
View
I used Bring to front is it the same with Z-order?
TolgaCiftci
25-May-10 14:24pm
View
Thanks for taking your time and trying to help I used regular expression and fixed the problem. but to answer your question it does contain 1 or more digits so it can be {34,2343,233,1)
TolgaCiftci
25-May-10 9:07am
View
I don't know if my earlier comment went through but I can't see it posted so if this is a duplicate accept my apologies. When I try your code it is giving me unrecognized escape sequence error for "d"s on the expression. Any ideas?
TolgaCiftci
24-May-10 15:23pm
View
Thank you for the advice before checking in I was doing the exact same thing but it is not letting me do it. I am getting an error saying a local variable named 'rect' cannot be declared in this scope!!!
here is the code:
private void ImageBox_Paint_1(object sender, PaintEventArgs e)
{
RecList.Add(rect);
RecList = RecList.Distinct().ToList();
rect = new Rectangle(buttcorrs[0], buttcorrs[1], buttcorrs[3] - buttcorrs[1], buttcorrs[2] - buttcorrs[0]);
foreach (Rectangle rect in RecList)
{
e.Graphics.FillRectangle(Brushes.Green, rect);
}
TolgaCiftci
21-May-10 10:06am
View
Thanks for the advise
TolgaCiftci
21-May-10 9:16am
View
I totally do :) Learning slowly but surely
TolgaCiftci
21-May-10 8:45am
View
Thank you for all your help I got my answers.
TolgaCiftci
21-May-10 8:36am
View
Sorry I am new to programming what exactly the difference between appendText and StreamWriter? just before you answered I added a boolean and it worked but I want to learn the difference. TextWriter
tw = new StreamWriter("xk24.txt",true); This is what i did and worked but your code also works so what are the differences?
TolgaCiftci
20-May-10 14:03pm
View
I have a picture of a device which has 24 buttons. I need to get the coordinates to each button and save them and use the coordinates to test press and release functions coming from the device. I have more than one device and my idea is to get the coordinates of device buttons and save them like as1.txt for one device and as2.txt for the other. When application starts it will check the devicetxt folder and match the device name with the txt so when I use button press/release functions it will parse the coordinates from the txt file and display a check mark or paint it when the button on the device is pressed.
TolgaCiftci
20-May-10 13:54pm
View
I only need this once it won't be repetitive after i got the coordinates, I thought i can count coordinates and do imgcoor.count = 0 but as i said I am just learning :)
TolgaCiftci
20-May-10 11:10am
View
It worked great. Thank you soooo much. I was going crazy for the past couple of days :)
TolgaCiftci
20-May-10 10:31am
View
So I basically create an empty click event?
Show More