15,899,937 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 Ahsan98 (Top 29 by date)
Ahsan98
15-Feb-14 6:35am
View
thanks very much...
Ahsan98
15-Feb-14 3:45am
View
i just want simple random number....The repetition of no. does not matter unless its comes different....Please just tell my a simple example an easy method by code to get random no......just give me a little example of code i dont know the use of arrays much plz tell me the siple and easy way some repetition is totally fine.....
Ahsan98
15-Feb-14 3:11am
View
everyone plz take a look at my another question and plz help if you can i shall be very thankful........
The other question
Ahsan98
15-Oct-13 7:06am
View
there is no code......all i said is just change the extension from .txt to .xml...thats the whole thing if extension(.txt isnt visible)...just use the method in the q to make it visible
hope this helps.........
Regards,
Ahsan Naveed
Ahsan98
15-Oct-13 6:22am
View
yes and isnt the method i told you helping????
Ahsan98
10-Sep-13 11:25am
View
no this is not working
just beat it i made an alternative method to do it
Ahsan98
10-Sep-13 10:47am
View
but how will switch help....switch will just make a condition.....i think what you mean to say is to make two conditions using switch player1 win and player2 win already thought about that but i have code mixed up and its too long to write again just tell me a method to check what the messagebox shows plzzzzz
Ahsan98
8-Sep-13 10:54am
View
yes sane was my method 5ed
Ahsan98
6-Sep-13 8:21am
View
I was using .wav files but i got my mistake and solved thnks for your help i added inverted commas in my path thought maybe i had to write the path like that for directory thnks very much your idea was very good
Regards,
Ahsan Naveed
Ahsan98
6-Sep-13 6:51am
View
and yes it is a win form
Ahsan98
6-Sep-13 6:51am
View
your solution is very good although i do need one help about this....
actually a added the files in the resources...now your step 3 code i assume is the path or the code to call it plz give more detail about it tried using it like this
Tic_tac_toe.Properties.Resources.win1
didint work
i also tried this
System.Media.SoundPlayer winner = new System.Media.SoundPlayer("Tic_tac_toe.Properties.Resources.win1");
winner.Play();
didnt work so plz tell me exactly what to do.......
Ahsan98
6-Sep-13 6:38am
View
thanks 5ed it great just what i needed i had already kep it in the executing directory but i didnt know that it takes the file from that directory in this way
Ahsan98
6-Sep-13 5:34am
View
5ed thnks very much great solution.........
Ahsan98
26-Aug-13 10:12am
View
thanks very much........
Ahsan98
26-Aug-13 10:09am
View
actually i dont use the goto keyword too......the label is actually not present in the original code........that label i only wrote to show where i needed help......it didnt have any purpose...... :D
Ahsan98
26-Aug-13 8:06am
View
i hope i make my point cause i dont have a better way to explain it....... :D
Ahsan98
26-Aug-13 8:03am
View
ok so here's the code for better explanation
string a;
a = textBox1.Text;if (textBox2.Text == "")
{
textBox2.Text = a;
}
else if (textBox1.Text == "")
{
}
else
{
textBox2.Text += "\r\n" + a;
}
}
condition:
if (textBox1.Text == "What are you?" || textBox1.Text == "what are you?")
{
textBox2.Text += "\r\nI am a computerized robot and my name is Dr. A";
}
textBox1.Clear();
so the problem is that when i write what are you? it directly goes to line referenced 'condition'...and so if i use timer sleep my text also gets copied to the textbox2 after one second.......and the way you used the timer it would give only one answer so for every condition i develop a seperate timer as far as i get it...... :) although using the timer is still going to create the same problem(according to me)... :)
Ahsan98
26-Aug-13 7:07am
View
yes i did but the problem here is that i have to make a program that answer to what you say.......and it uses a lot of it statements and the way you used the timer showed that you have to write what to do in a timer so that means i have to create separate timer for every condition and thats a great bunch of problem also far as i think it is also gonna create the same problem as c# directly goes to the condition which matches the text so its still gonna do write my text s late.....please just tell me some method on how to MAKE some bunch of code executed in the end...........
Ahsan98
25-Aug-13 6:33am
View
I also know that timers are better but alas I dont know how to use them....i am a beginner and dont have the knowledge on the usage of timers..........i dont know what to do i found this method so i used it please help..........
Ahsan98
24-Aug-13 23:48pm
View
please give a bit more explanation on how to do this i am only a beginner so tell me exactle how and what do i do in a for loop with application.doevent so please help.....thanks in advance
Ahsan98
24-Aug-13 9:26am
View
thanks very much.
Ahsan98
23-Aug-13 10:39am
View
Thanks that helped however could you do me a favor by telling me what this line does
myTimer.Tick += new EventHandler(myTimer_Tick);
Ahsan98
23-Aug-13 10:27am
View
Yes I know that but this only works for console in win form the app gets held I want it for win apps........so please help..........
Ahsan98
23-Aug-13 9:37am
View
ill try but could you give some link that gives easy description.............
Ahsan98
23-Aug-13 9:35am
View
i need to wait in the real program not here this was just an example i didnt write the real code b/c it was too long........
Ahsan98
23-Aug-13 9:33am
View
hi i tried using loops but i didnt work.......
for(int a=0;a==999999;a++){}
label1.text==hello;
but the result still comes quickly.........i dont know what to do please give me some detail on how to use a loop..........timers are a little above level and would take mounths untill i get a better understanding but i nee it now please help.........................
Ahsan98
23-Aug-13 9:29am
View
I tried to use loop like this
for(int a=0;a==9999;a++){
}
textbox1.text="Hello";
this is only an example the real code i didnt upload because I think it would be too large and thus inappropriate to write.........
Ahsan98
22-Aug-13 10:35am
View
No i dont think so I had a small chat with my cousin whose a programmer and he told me that i need to write margins in percentage.........although as it was a small chat i couldnt ask the why to do it.........
Ahsan98
19-Aug-13 3:54am
View
I have already created an age calculator please read the question completely i have made it exactly as you described........
Show More