|
Yeah, I don't see such a statement, but maybe you need something like this:
try
{
process.PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal ;
}
catch
{
/* The process probably already exited due to error */
}
|
|
|
|
|
yes sir process is already exiting due to error .........i am also unable to understand why the process is exiting ...give some solution thanks
|
|
|
|
|
You'll need to check the output. You may need to redirect and capture the output.
|
|
|
|
|
how i can do this ....provide what code i should use or steps to do that thanks in advance
|
|
|
|
|
You can print reports that personal information, now I hit the print icon in the report and display the print dialog box has two buttons ok and cancel, if you click ok it will print, but how do you know that have hit the ok button? Thank you very much.
|
|
|
|
|
Try:
PrintDialog pd = new PrintDialog();
if (pd.ShowDialog() == DialogResult.OK)
{
....
}
BTW: Please do not post subjects in Vietnamese (or other languages) - most readers cannot understand it, so you reduce your chances of getting help. Google translate does a pretty good job:
Bắt sự kiện nút ok của hộp thoại print
Getting event print dialog's ok button
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
Hi , have a good day ,
I have Paired Nokia Mobile with my PC Windows 7 64 bit , through bluetooth
And Every thing works fine , Contacts , Messages , File Transfer ,
Even after I restart My PC or Turn my Mobile Bluetooh off/On , they connected Automatically ..
Except , one thing the "Telephony Audio Gateway!"
It does not Connect automatically , I have to press Connect Button from my PC Bluetooth settings , every time they connected again !
Setting Picture[^]
Thank you .
|
|
|
|
|
What does this have to do with C#?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Contact Nokia? Sounds like a user-problem, not programming-related.
Bastard Programmer from Hell
|
|
|
|
|
Nokia Restricted my country from accessing there web site
|
|
|
|
|
It is my understanding that the plug-in that would facilitate developing for the Blackberry has been retired. What tools, software,etc. are presently available to do so? Guidance sought
|
|
|
|
|
mauricemcse wrote: Guidance sought
Uhm... use this
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
im trying to upload,save the image and then want to move the image to another folder...
only when the control goes to move function i get this error (The process cannot access the file because it is being used by another process.)
//this is my code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OnBarcode.Barcode.BarcodeScanner;
using System.Drawing.Imaging;
using System.Diagnostics;
using System.IO;
namespace AutoImageProcessing
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "*.jpg|*.jpg";
ofd.Multiselect = false;
ofd.Title = "Select JPEG File";
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = ofd.FileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
string path = textBox1.Text;
//->if (textBox1.Text != string.Empty)
if (path != string.Empty)
{
try
{
pictureBox1.Image = Image.FromFile(path);
//->String[] barcodes = BarcodeScanner.Scan(textBox1.Text, BarcodeType.All);
String[] barcodes = BarcodeScanner.Scan(path, BarcodeType.All);
// MessageBox.Show(barcodes[0]);
// Specify a "currently active folder"
//string activeDir = @"f:";
//Create a new subfolder under the current active folder
//string newPath1 = System.IO.Path.Combine(activeDir, "export");
string newPath = @"f:/export/" + barcodes[1];
//string newPath = System.IO.Path.Combine(activeDir1, barcodes[1]);
// Create the subfolder
System.IO.Directory.CreateDirectory(newPath);
// Create a new file name. This example generates
// a random string.
string newFileName = barcodes[1];
// Combine the new file name with the path
newPath = System.IO.Path.Combine(newPath, newFileName);
//cropping the signature and photograph
//saving the 2 cropped images into the folder
if (!System.IO.File.Exists(newPath))
{
try
{
Point start = new Point();
Point end = new Point();
int width;
int height;
using (Bitmap bitmap = new Bitmap(pictureBox1.Image))
{
bitmap.Save(newPath + ".jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
bitmap.Dispose();
}
MessageBox.Show("image saved!!!");
start.X = 305;
start.Y = 489;
end.X = 843;
end.Y = 569;
width = 538;
height = 80;
Rectangle imageRectangle = new Rectangle(start.X, start.Y, width, height);
if (start == new Point(0, 0) || end == new Point(0, 0))
{
MessageBox.Show("First select start and end point by clicking on the image");
}
else
{
try
{
pictureBox1.Image = cropImage(pictureBox1.Image, imageRectangle);
using (Bitmap bitmap = new Bitmap(pictureBox1.Image))
{
bitmap.Save(newPath + "_barcode.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
bitmap.Dispose();
}
MessageBox.Show("image saved!!!");
}
catch (Exception ex)
{
MessageBox.Show("this is the error \n" + ex.Message);
}
}
}
catch (Exception ex)
{
MessageBox.Show("An Error has occured: \n" + ex.Message);
}
}
}
catch (Exception ex)
{
MessageBox.Show("An Error has occured: \n" + ex.Message);
return;
}
}
else
{
MessageBox.Show("Please Enter Location of Image");
}
try
{
Image.FromFile(path).Dispose();
MessageBox.Show("entering move function");
Process end=Process.GetCurrentProcess();
MessageBox.Show(end.ToString());
end.Dispose();
end.Close();
}
catch(IOException w)
{
MessageBox.Show("error"+w.Message);
}
try
{
System.IO.File.Move(path, @"f:\img_pr");
MessageBox.Show("move completed");
}
catch (IOException w)
{
MessageBox.Show("error" + w.Message);
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private Image cropImage(Image image, Rectangle imageRectangle)
{
Bitmap bitmap1 = new Bitmap(image);
Bitmap cropedBitmap = bitmap1.Clone(imageRectangle, bitmap1.PixelFormat);
return (Image)(cropedBitmap);
}
private Image bitmap2(Image image, Rectangle rectangle)
{
throw new NotImplementedException();
}
}
}
|
|
|
|
|
If you are going to post that much code, then please make sure you have formatted it - edit your message, and surround the code with
<pre lang="cs"> At the top, and
</pre> at the bottom.
This will preserve the indentation, and make it much, much easier to read!
Example: As you have it:
private void ClickButton(string name)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentNullException("ClickButton: Needs a button name");
}
else
{
FieldInfo fi = this.GetType().GetField(name);
if (fi == null)
{
throw new ArgumentException(string.Format("ClickButton: Button \"{0}\" not found", name));
}
else
{
Button bnew = fi.GetValue(this) as Button;
if (bnew == null)
{
throw new ArgumentException(string.Format("ClickButton: \"{0}\" is not a button", name));
}
else
{
bnew.PerformClick();
}
}
}
}
With tags round it:
private void ClickButton(string name)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentNullException("ClickButton: Needs a button name");
}
else
{
FieldInfo fi = this.GetType().GetField(name);
if (fi == null)
{
throw new ArgumentException(string.Format("ClickButton: Button \"{0}\" not found", name));
}
else
{
Button bnew = fi.GetValue(this) as Button;
if (bnew == null)
{
throw new ArgumentException(string.Format("ClickButton: \"{0}\" is not a button", name));
}
else
{
bnew.PerformClick();
}
}
}
}
I for one, am not looking at it as it is!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
That is unreadable; please use <PRE> tags to preserve formatting and get an appropriate font.
I am guessing one of three things happened:
1. you forgot to close the file.
2. something you did causes the file to be locked (is there a PictureBox? or an Image.FromFile?)
3. if the file is newly created, it may be currently being read by another program (an indexer, an antivirus, whatever), so you may have to retry later.
|
|
|
|
|
The problem you have is caused by Image.FromFile http://support.microsoft.com/kb/309482[^] which is locking the file and preventing reuse in the same process. The reference to another process in the error message is very misleading.
The work arounds are
1) Create a new Bitmap from the Image and then dispose of the Image
2) Create the Image by using the FromStream method and then dispose of the FileStream
Example code for these are
private const String ImageFile = @"E:\VC\Projects\CP\InUseImages\Pic.jpg";
private void LoadLockedImage() {
using (Image temp = Image.FromFile(ImageFile)) {
pictureBox1.Image = temp;
using (FileStream fs = new FileStream(ImageFile, FileMode.Open)) {
}
}
}
private void LoadFreeImage() {
using (Image temp = Image.FromFile(ImageFile)) {
pictureBox1.Image = new Bitmap(temp);
}
using (FileStream fs = new FileStream(ImageFile, FileMode.Open)) {
}
}
private void LoadFreeImage2() {
using (FileStream fs = new FileStream(ImageFile, FileMode.Open)) {
pictureBox1.Image = Image.FromStream(fs);
}
using (FileStream fs = new FileStream(ImageFile, FileMode.Open)) {
}
}
Alan.
|
|
|
|
|
thanx alot alan..
|
|
|
|
|
whitch are better to start and learn .
send me at sfa88electronic@gmail.com
|
|
|
|
|
It would depend on what type of application you want to build and also how good you are at learning a new programming language.
Pick up the one you feel most comfortable with - but learn it well, otherwise there would be no point in starting to learn it at all.
Note: By posting your email id here, you are tempting spammers to hit you with a lot of spam email.
|
|
|
|
|
C#, but if you don't know anything about programming you shouldn't start with any of those.
|
|
|
|
|
Learn the one that is right for the job you are trying to do.
Since you feel that you have to ask this type of question, then go with VB
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
nice guidence..short and too the point...
|
|
|
|
|
If you want low level systems programming or best performance for a large resource incentive application then C++ is good language as the C++ code is compiled directly as native code whereas in managed languages like C# and VB.NET the source code is first compiled to the MSIL and then to the native code by the JIT. But then be warned that the learning curve of C++ is steep and you have to be more cautious as the memory in C++ has to be managed by the programmer. A subtle mistake can lead to a memory leak which may be a nightmare. However, with Managed C++ both the C++ and managed C++ can be taken advantage of.
If you want to program for a normal business application, managed programming language like VB.NET or C# is good. In managed programming language, the memory is handled by .NET run time, (Garbage Collector) and hence the programmer can be free from cumbersome memory management. Of course, there may be a little performance hit in managed programming languages when compared to C++, but the difference is not considerable in most of the Business Line Applications. The OOP concept also easy in managed programming languages like VB.NET and C# due to single inheritence rather than multiple inherintance in C++.
VB.NET is more like C# except for syntatic difference and has very little resemblence to the VB6. So if you know VB6 it may be of little use.
The advantage of C# is that there are so many books available on C# from beginner to advanced level. There are so many on line forums and articles available in C#. Most of the third party libraries are written in C# and the .NET itself is written in C#. If we are stuck in the program, it is somewhat easy to get guidance in C#.
Hence, unless there is a specific requirement to use C++, I consider learning C# is easy and advantageous.
|
|
|
|
|
If you are very much new in the Object oriented programming, then you should go with C++ i.e. the base of OOP.
|
|
|
|
|
hi
this code server
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Asynchronous_Server
{
public class Form1 : System.Windows.Forms.Form
{
Socket server = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
IPEndPoint iep = new IPEndPoint(IPAddress.Any, 5020);
private byte[] data = new byte[1024];
private int size = 1024;
private System.Windows.Forms.TextBox conStatus;
private System.Windows.Forms.ListBox results;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.results = new System.Windows.Forms.ListBox();
this.conStatus = new System.Windows.Forms.TextBox();
this.SuspendLayout();
this.results.BackColor = System.Drawing.Color.AliceBlue;
this.results.Dock = System.Windows.Forms.DockStyle.Fill;
this.results.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
this.results.Items.AddRange(new object[] {
"Clients Transmissions ..."});
this.results.Location = new System.Drawing.Point(0, 0);
this.results.Name = "results";
this.results.Size = new System.Drawing.Size(288, 174);
this.results.TabIndex = 0;
this.results.SelectedIndexChanged += new System.EventHandler(this.results_SelectedIndexChanged);
this.conStatus.BackColor = System.Drawing.Color.Gainsboro;
this.conStatus.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.conStatus.Dock = System.Windows.Forms.DockStyle.Bottom;
this.conStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
this.conStatus.Location = new System.Drawing.Point(0, 153);
this.conStatus.Name = "conStatus";
this.conStatus.ReadOnly = true;
this.conStatus.Size = new System.Drawing.Size(288, 21);
this.conStatus.TabIndex = 1;
this.conStatus.Text = "Waiting for client...";
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(288, 174);
this.Controls.Add(this.conStatus);
this.Controls.Add(this.results);
this.Name = "Form1";
this.Text = "Asynchronous Server";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
void AcceptConn(IAsyncResult iar)
{
Socket oldserver = (Socket)iar.AsyncState;
Socket client = oldserver.EndAccept(iar);
conStatus.Text = "Connected to: " + client.RemoteEndPoint.ToString();
string stringData = "Welcome to my server";
byte[] message1 = Encoding.ASCII.GetBytes(stringData);
client.BeginSend(message1, 0, message1.Length, SocketFlags.None,new AsyncCallback(SendData), client);
server.BeginAccept(new AsyncCallback(AcceptConn), server);
}
void SendData(IAsyncResult iar)
{
Socket client = (Socket)iar.AsyncState;
int sent = client.EndSend(iar);
client.BeginReceive(data, 0, size, SocketFlags.None,new AsyncCallback(ReceiveData), client);
}
void ReceiveData(IAsyncResult iar)
{
Socket client = (Socket)iar.AsyncState;
int recv = client.EndReceive(iar);
if (recv == 0)
{
client.Close();
conStatus.Text = "Waiting for client...";
server.BeginAccept(new AsyncCallback(AcceptConn), server);
return;
}
string receivedData = Encoding.ASCII.GetString(data, 0, recv);
results.Items.Add(receivedData);
byte[] message2 = Encoding.ASCII.GetBytes(receivedData);
client.BeginSend(message2, 0, message2.Length, SocketFlags.None,new AsyncCallback(SendData), client);
}
void ButtonStopOnClick(object obj, EventArgs ea)
{
Close();
}
private void Form1_Load(object sender, System.EventArgs e)
{
server = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
IPEndPoint iep = new IPEndPoint(IPAddress.Any, 5020);
server.Bind(iep);
server.Listen(-1);
server.BeginAccept(new AsyncCallback(AcceptConn), server);
}
private void results_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}
and this code client
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace ASyn_Client_Example
{
public class Form1 : System.Windows.Forms.Form
{
private Socket client;
private byte[] data = new byte[1024];
private int size = 1024;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox newText;
private System.Windows.Forms.ListBox results;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox conStatus;
private System.Windows.Forms.TextBox textBox1;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.newText = new System.Windows.Forms.TextBox();
this.results = new System.Windows.Forms.ListBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.conStatus = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
this.button1.Enabled = false;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button1.Location = new System.Drawing.Point(328, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 56);
this.button1.TabIndex = 0;
this.button1.Text = "Send";
this.button1.Click += new System.EventHandler(this.button1_Click);
this.newText.BackColor = System.Drawing.Color.Azure;
this.newText.Location = new System.Drawing.Point(16, 24);
this.newText.Name = "newText";
this.newText.ReadOnly = true;
this.newText.Size = new System.Drawing.Size(304, 20);
this.newText.TabIndex = 1;
this.newText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.newText_KeyPress);
this.results.BackColor = System.Drawing.Color.LightCyan;
this.results.Location = new System.Drawing.Point(16, 56);
this.results.Name = "results";
this.results.Size = new System.Drawing.Size(304, 95);
this.results.TabIndex = 2;
this.results.SelectedIndexChanged += new System.EventHandler(this.results_SelectedIndexChanged);
this.button2.Enabled = false;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button2.Location = new System.Drawing.Point(328, 128);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 24);
this.button2.TabIndex = 3;
this.button2.Text = "Disconnect";
this.button2.Click += new System.EventHandler(this.button2_Click);
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button3.Location = new System.Drawing.Point(328, 160);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 24);
this.button3.TabIndex = 4;
this.button3.Text = "Connect";
this.button3.Click += new System.EventHandler(this.button3_Click);
this.conStatus.BackColor = System.Drawing.SystemColors.InactiveBorder;
this.conStatus.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.conStatus.Dock = System.Windows.Forms.DockStyle.Bottom;
this.conStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
this.conStatus.Location = new System.Drawing.Point(0, 187);
this.conStatus.Name = "conStatus";
this.conStatus.Size = new System.Drawing.Size(408, 21);
this.conStatus.TabIndex = 5;
this.conStatus.Text = "Disconnected";
this.textBox1.BackColor = System.Drawing.Color.Azure;
this.textBox1.Location = new System.Drawing.Point(16, 160);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(304, 20);
this.textBox1.TabIndex = 6;
this.textBox1.Text = "127.0.0.1";
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(408, 208);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.conStatus);
this.Controls.Add(this.newText);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.results);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Asynchronous Client";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
void ReceiveData(IAsyncResult iar)
{
try
{
Socket remote = (Socket)iar.AsyncState;
int recv = remote.EndReceive(iar);
string stringData = Encoding.ASCII.GetString(data, 0, recv);
results.Items.Add(stringData);
}
catch(Exception ex){MessageBox.Show(ex.Message);}
}
void SendData(IAsyncResult iar)
{
try
{
Socket remote = (Socket)iar.AsyncState;
int sent = remote.EndSend(iar);
remote.BeginReceive(data, 0, size, SocketFlags.None,
new AsyncCallback(ReceiveData), remote);
}
catch(Exception ex){MessageBox.Show(ex.Message);}
}
void Connected(IAsyncResult iar)
{
client = (Socket)iar.AsyncState;
try
{
client.EndConnect(iar);
conStatus.Text = "Connected to: " + client.RemoteEndPoint.ToString();
client.BeginReceive(data, 0, size, SocketFlags.None,
new AsyncCallback(ReceiveData), client);
}
catch (SocketException)
{
conStatus.Text = "Error connecting";
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
}
private void button1_Click(object sender, System.EventArgs e)
{
try
{
byte[] message = Encoding.ASCII.GetBytes(newText.Text);
newText.Clear();
client.BeginSend(message, 0, message.Length, SocketFlags.None,new AsyncCallback(SendData), client);
newText.Focus();
}
catch(Exception ex){MessageBox.Show(ex.Message);}
}
private void button3_Click(object sender, System.EventArgs e)
{
try
{
conStatus.Text = "Connecting...";
Socket newsock = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
IPEndPoint iep = new IPEndPoint(IPAddress.Parse(textBox1.Text), 5020);
newsock.BeginConnect(iep, new AsyncCallback(Connected), newsock);
newText.Focus();
button1.Enabled = true;
button2.Enabled = true;
newText.ReadOnly = false;
}
catch(Exception ex){MessageBox.Show(ex.Message);}
}
private void button2_Click(object sender, System.EventArgs e)
{
client.Close();
button1.Enabled = false;
button2.Enabled = false;
newText.ReadOnly = true;
conStatus.Text = "Disconnected";
}
private void newText_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (button1.Enabled == true)
if(e.KeyChar == '\r')
{
button1_Click(sender,e);
}
}
private void results_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}
when run and connect client with server i have problem in
conStatus.Text = "Connected to: " + client.RemoteEndPoint.ToString();
what are i can do ?
when do connect give me this error and out from client program
|
|
|
|
|