15,908,581 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 jahanzaib ali khan 2237-FBAS/BSCS/F11 (Top 7 by date)
jahanzaib ali khan 2237-FBAS/BSCS/F11
7-Aug-15 1:57am
View
Thanks your code has worked , i am so much thankful to u. I modified it just a bit and it performed well.
jahanzaib ali khan 2237-FBAS/BSCS/F11
7-Aug-15 1:52am
View
Your code is just returning Column and Row index , i want data stored in them.
jahanzaib ali khan 2237-FBAS/BSCS/F11
7-Aug-15 1:23am
View
No i am not able to calculate next cell index . please help.
jahanzaib ali khan 2237-FBAS/BSCS/F11
7-Aug-15 1:15am
View
The code u gave me returns Column number and Row index. I want that if i click on any cell i get value of cell next to it . such as if click on John i should get its corresponding value from next cell .
jahanzaib ali khan 2237-FBAS/BSCS/F11
7-Aug-15 0:42am
View
i have shown gridstructure in my question.
jahanzaib ali khan 2237-FBAS/BSCS/F11
3-Aug-15 10:05am
View
Below is the full chat code which i am using it is blocking . I think the textBox1_KeyDown event handler is blocking ..
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
try
{
if (e.KeyCode == Keys.Enter)
{
writer.Write(Form1.GetSysName() + " : " + input_text.Text); // Send to Sever
output_text.Text += "\r\n" + Form1.GetSysName() + " : " + input_text.Text;
input_text.Clear();
}
}
catch (SocketException se)
{
output_text.Text += "\n Error waiting Object";
}
}
public void Run_client()
{
try
{
//output_text.Text += "Attempting to Connecting to the server\n";
// Step 1: Create TCPClient and connect to the Server
client = new TcpClient();
string var4 = ipaddress2;
client.Connect(var4, 5000); // 5000 is the port number that the Sever is listening on it
// Step 2: Get NetworkStream Associated With TcpClient
output_stream = client.GetStream();
// Step 3: Create Object for Writing and Reading Across Stream( NetworkStream)
writer = new BinaryWriter(output_stream);
reader = new BinaryReader(output_stream);
// output_text.Text += "\r\nGot IO Stream \r\n";
input_text.ReadOnly = false;
do
{
//Step 3:
try
{
//Reading the message form Server
message = reader.ReadString();
output_text.Text += "\r\n : " + message;
}
catch (Exception e)
{
//System.Environment.Exit(System.Environment.ExitCode);
}
}while (message != "Server>>terminate");
// Step 4: Closing Connection
writer.Close();
reader.Close();
output_stream.Close();
client.Close();
}
catch (SocketException se)
{
MessageBox.Show(se.Message);
}
}
jahanzaib ali khan 2237-FBAS/BSCS/F11
3-Aug-15 2:05am
View
I want to start a thread for the text_Box_Event , because my this text box event is continuosly being used until program is closed , so this text_box_event blocks the UI . Thats why i want to make a thread and attach a event with a thread....
Show More