15,894,337 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 ronakT (Top 21 by date)
ronakT
20-Feb-14 11:56am
View
Deleted
I don't want anyone to write it for me!!! I want to find a good subject that they accept it!!! a good subject to start writing it.
ronakT
18-Feb-14 5:07am
View
Ok. Could you please suggest me a good subject to work on it?? Do you think something in artificial intelligence is good or not? becouse I love artificial intelligence. but also I dont know how to start and what to select for it!!!
ronakT
18-Feb-14 5:02am
View
Deleted
I have not any tutor because I am not a Ma student or a PhD student now!!!.I think I have to solve this myself. Although I need consultation of qualified people... and of corse my english is not so good to give my meaning to others.
ronakT
18-Feb-14 4:46am
View
Deleted
I want to register for Ma. they want an article on every thing that I know like C#!
ronakT
18-Feb-14 4:43am
View
Deleted
no. I am not an student now. in fact I want to go to a university that wants me to write an article in every programming language that I know. oh it's so hard to explain.!!!!!!
ronakT
18-Feb-14 4:38am
View
Deleted
It is not a PhD thesis. oh my god!! How did you think about me??
ronakT
18-Feb-14 4:37am
View
I am not a university student now. Ok?!! I want to go to another country and take scholarship for Ma. I am not a student now! But the University of that Country wants me to write an article on every programming language that I know, to accepting me on that university!
ronakT
13-Nov-13 13:48pm
View
thank you so much.
ronakT
12-Nov-13 4:51am
View
I solved it in this way and had been accepted finally!!!!
ronakT
12-Nov-13 4:50am
View
<pre lang="c#"> private void button1_Click(object sender, EventArgs e)
{
if(textBox1.Text=="")
{
MessageBox.Show("لطفا واژه را وارد کنید.");
}
int x = 10;
int y = 95;
int l = textBox1.Text.Length;
Graphics fishdraw = this.CreateGraphics();
fishdraw.Clear(Color.Aqua);
Brush eye = Brushes.OrangeRed;
for (int i = 0; i < l; i++)
{
if (i % 2 == 0)
{
Color fishcolor = Color.Red;
Pen dr = new Pen(fishcolor, 2);
//up arc
fishdraw.DrawArc(dr, 200 + x, 30 + y, 180, 85, 200, 150);
//mouth
fishdraw.DrawLine(dr, 350 + x, 70 + y, 373 + x, 58 + y);
fishdraw.DrawLine(dr, 350 + x, 70 + y, 370 + x, 80 + y);
//tail
fishdraw.DrawLine(dr, 220 + x, 50 + y, 180 + x, 35 + y);
fishdraw.DrawLine(dr, 180 + x, 40 + y, 180 + x, 100 + y);
fishdraw.DrawLine(dr, 220 + x, 85 + y, 180 + x, 100 + y);
//eye
fishdraw.FillEllipse(eye, 310 + x, 50 + y, 10, 10);
//down arc
fishdraw.DrawArc(dr, 198 + x, 20 + y, 180, 85, 10, 150);
x = x + 230;
if (x > 660 & l <= 10)
{
x = 10;
y = y + 100;
}
else if (x > 660 & l > 10)
{
x = 10;
y = y + 120;
}
}
else
{
Color fishcolor = Color.Yellow;
Pen dr = new Pen(fishcolor, 2);
//up arc
fishdraw.DrawArc(dr, 200 + x, 30 + y, 180, 85, 200, 150);
//
//mouth
fishdraw.DrawLine(dr, 350 + x, 70 + y, 373 + x, 58 + y);
fishdraw.DrawLine(dr, 350 + x, 70 + y, 370 + x, 80 + y);
//tail
fishdraw.DrawLine(dr, 220 + x, 50 + y, 180 + x, 35 + y);
fishdraw.DrawLine(dr, 180 + x, 40 + y, 180 + x, 100 + y);
fishdraw.DrawLine(dr, 220 + x, 85 + y, 180 + x, 100 + y);
//eye
fishdraw.FillEllipse(eye, 310 + x, 50 + y, 10, 10);
//down arc
fishdraw.DrawArc(dr, 198 + x, 20 + y, 180, 85, 10, 150);
x = x + 230;
if (x > 660 & l <= 10)
{
x = 10;
y = y + 100;
}
else if (x > 660 & l > 10)
{
x = 10;
y = y + 120;
}
}
}
}</pre>
ronakT
9-Nov-13 3:54am
View
he said I have to use drawing tools.
ronakT
9-Nov-13 3:52am
View
Deleted
no .I have solved it in this way:
pre lang="c#"> int x = 10;//noghte ebtedaee roy mehvar x
int y = 95;///noghte ebtedaee roy mehvar y
int l = textBox1.Text.Length;//tedad horof kalame vared shode
Graphics fishdraw = this.CreateGraphics();//esharegari ke dar lahze naghshi ra tarsim mikonad
fishdraw.Clear(Color.Aqua);//rang zamine mahiha
Brush eye = Brushes.OrangeRed;//az in item baray tarsim cheshm mahi estefade mikonim
for (int i = 0; i < l; i++)//halghei baray tarsim be tedad horof kalame
{
if (i % 2 == 0)//in shart baray in ast ke mahi hay zoj be rang ghermez bashand
{
Color fishcolor = Color.Red;//rang badan mahi ba in khat kod moshakhas mishavad
Pen dr = new Pen(fishcolor, 2);//in khat kod zekhamat va rang khat tarsim ra taeen mikonad
/***/
fishdraw.DrawArc(dr, 200 + x, 30 + y, 180, 85, 200, 150);//in khat kaman balaee badan mahi ra tarsim mikonad
/***/
fishdraw.DrawLine(dr, 350 + x, 70 + y, 373 + x, 58 + y);///in 2khat kod dahan mahi ra tarsim mikonad
fishdraw.DrawLine(dr, 350 + x, 70 + y, 370 + x, 80 + y);
/***/
fishdraw.DrawLine(dr, 220 + x, 50 + y, 180 + x, 35 + y);//in 3khat kod dom mahi ra tarsim mikonad
fishdraw.DrawLine(dr, 180 + x, 40 + y, 180 + x, 100 + y);
fishdraw.DrawLine(dr, 220 + x, 85 + y, 180 + x, 100 + y);
fishdraw.FillEllipse(eye, 310 + x, 50 + y, 10, 10);//cheshmhay mahi ra tarsim mikonad
fishdraw.DrawArc(dr, 198 + x, 20 + y, 180, 85, 10, 150);
x = x + 230;//har bar makan x bishtar mishavad ta mahiha roy ham gharar nagirand
if (x > 660 & l <= 10)//vaghti tedade mahiha ziyad bashad dobare be makan aval x barmigardim
{
x = 10;
y = y + 100;
}
else if (x > 660 & l > 10)//agar tedade horof az 10 bishtar shod roy mehvar amodi 120 vahed paeen miaeem
{
x = 10;
y = y + 120;
}
}
else//in else baray in ast ke mahihay fard be rang zard bashand
{
Color fishcolor = Color.Yellow;
Pen dr = new Pen(fishcolor, 2);
//bala
fishdraw.DrawArc(dr, 200 + x, 30 + y, 180, 85, 200, 150);
// g1.DrawArc(dr, 200 + x, 30 + y, 180, 85, 190, 130);
//dahan
fishdraw.DrawLine(dr, 350 + x, 70 + y, 373 + x, 58 + y);
fishdraw.DrawLine(dr, 350 + x, 70 + y, 370 + x, 80 + y);
//dom
fishdraw.DrawLine(dr, 220 + x, 50 + y, 180 + x, 35 + y);
fishdraw.DrawLine(dr, 180 + x, 40 + y, 180 + x, 100 + y);
fishdraw.DrawLine(dr, 220 + x, 85 + y, 180 + x, 100 + y);
//cheshm
fishdraw.FillEllipse(eye, 310 + x, 50 + y, 10, 10);
fishdraw.DrawArc(dr, 198 + x, 20 + y, 180, 85, 10, 150);
x = x + 230;
if (x > 660 & l <= 10)
{
x = 10;
y = y + 100;
}
else if (x > 660 & l > 10)
{
x = 10;
y = y + 120;
};</pre>
ronakT
6-Nov-13 4:27am
View
I created it in this way:
<pre lang="c#">private void button1_Click(object sender, EventArgs e)
{
int x = 10;
int y = 95;
int l = textBox1.Text.Length;
for (int i = 0; i < l; i++)
{
Label lbl = new Label();
this.Controls.Add(lbl);
if (i % 2 == 0)
{
lbl.ForeColor = Color.DarkRed;
}
else
{
lbl.ForeColor = Color.YellowGreen;
}
lbl.Text = "<°)))><";
lbl.Show();
lbl.Location = new Point(x + 70, y);
x = x + 70;
if(x==360 & l<=10)
{
x = 10;
y=y+40;
}
else if(x==360 & l>10)
{
x = 10;
y = y + 60;
}
}
}
</pre>
but my teacher did't accept it!!!!!
ronakT
4-Nov-13 4:47am
View
thank you a lot... I will try it....
ronakT
4-Nov-13 4:44am
View
my teacher wanted it!!! I don't know what to do... I am a beginner. she said to me you have to create a program that show picture of a fish for length of a text...and the fish color has to changes..
ronakT
4-Nov-13 4:38am
View
I mean fish I want to show pictur of fish... that its color changes
ronakT
26-Jan-13 11:24am
View
I called everyone I know to find a compiler! but I am somewhere that could not find any other solution!!
ronakT
26-Jan-13 11:19am
View
I have visual studio but I don't know how to use it!!!!!!!
ronakT
6-Dec-10 2:56am
View
thanks a lot for your attention.
ronakT
6-Dec-10 2:56am
View
thanks a lot for your attention.
ronakT
23-Jun-10 3:03am
View
I saw this but it is not in sql 2005. microsoft suggest that dont use image data type because it may not be sopported by higher versions. I have to use varbinary in sql 2005 not image ok.I use these codes but it didn't work.
Show More