Click here to Skip to main content
16,004,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: java script problem Pin
DIMPLE_R30-Jun-06 0:40
DIMPLE_R30-Jun-06 0:40 
GeneralRe: java script problem Pin
ayyp30-Jun-06 0:54
ayyp30-Jun-06 0:54 
AnswerRe: java script problem Pin
psamy30-Jun-06 0:49
psamy30-Jun-06 0:49 
GeneralRe: java script problem Pin
ayyp30-Jun-06 0:54
ayyp30-Jun-06 0:54 
GeneralRe: java script problem Pin
psamy30-Jun-06 1:41
psamy30-Jun-06 1:41 
GeneralRe: java script problem Pin
DIMPLE_R30-Jun-06 2:01
DIMPLE_R30-Jun-06 2:01 
QuestionEnabling and disabling desktop icons programmatically Pin
Prashant Gadhave29-Jun-06 23:05
Prashant Gadhave29-Jun-06 23:05 
Questionhelp me solve this problem ? please ... Pin
cmpeng3429-Jun-06 23:02
cmpeng3429-Jun-06 23:02 
hi all,
i have a function like this in my form1.cs:

public void SendAll(string str)
{
for (int i = 0; i < Soketler.Count; ++i)
{
if (((Socket)Soketler[i]).Connected)
{
ns = new NetworkStream(((Socket)Soketler[i]));
sw = new StreamWriter(ns);
sw.WriteLine(str);

string[] dataread = new string[3];
char[] splitter = { ' ' };
dataread = str.Split(splitter);
txtOdaNo.Text = dataread[0].ToString();
txtKiraBaslangic.Text = dataread[1].ToString();
txtKiraBitis.Text = dataread[2].ToString();
cmbCOSaati.Text = "12:00";
button12_Click(sender, e);
MessageBox.Show("Kiralama Kodunuz!!!\n\n Ciktisini Almak Ister Misiniz ?"," Kira Kodu Bilgisi",MessageBoxButtons.YesNo,MessageBoxIcon.Information);

sw.Flush();
}
}
}

bold line represent a button on my form. i have a user interface and some textboxes. these boxes may be filled both manually by typing from keyboard or they can be send via tcp/ip as a string with " " (a space) in each data.
then i parse the string according to that space and assign each value to the corresponding textboxes.

the problem is this: if user fill datas manually, s/he can easily press the button12 to run it. but if datas were send via tcp/ip and textboxes filled by parsing, button12_click(sender,e); doesnt work in my function Frown | :(

i get these errors:

> the name 'sender' does not exist in the current context.
> the name 'e' does not exist in the current context.

how can i solve this problem and make button12_click work in my function as well ?

help please,
thanks in advance, bye.
AnswerRe: help me solve this problem ? please ... Pin
Stefan Troschuetz29-Jun-06 23:14
Stefan Troschuetz29-Jun-06 23:14 
GeneralRe: help me solve this problem ? please ... Pin
W. Kleinschmit30-Jun-06 2:22
W. Kleinschmit30-Jun-06 2:22 
AnswerRe: help me solve this problem ? please ... Pin
J4amieC29-Jun-06 23:54
J4amieC29-Jun-06 23:54 
QuestionHot keys Pin
Prashant Gadhave29-Jun-06 22:35
Prashant Gadhave29-Jun-06 22:35 
AnswerRe: Hot keys Pin
stancrm29-Jun-06 23:18
stancrm29-Jun-06 23:18 
GeneralRe: Hot keys Pin
Prashant Gadhave29-Jun-06 23:37
Prashant Gadhave29-Jun-06 23:37 
GeneralRe: Hot keys Pin
stancrm30-Jun-06 0:24
stancrm30-Jun-06 0:24 
QuestionServices and Top Most Forms Pin
DUKEMAN29-Jun-06 22:19
DUKEMAN29-Jun-06 22:19 
AnswerRe: Services and Top Most Forms Pin
Martin#29-Jun-06 23:59
Martin#29-Jun-06 23:59 
AnswerRe: Services and Top Most Forms Pin
AB777130-Jun-06 1:37
AB777130-Jun-06 1:37 
GeneralRe: Services and Top Most Forms Pin
DUKEMAN30-Jun-06 1:46
DUKEMAN30-Jun-06 1:46 
AnswerRe: Services and Top Most Forms Pin
pq4noeh30-Jun-06 1:50
pq4noeh30-Jun-06 1:50 
QuestionDataGrid column icon background Pin
Kais4U29-Jun-06 20:44
Kais4U29-Jun-06 20:44 
QuestionA question about Net.Socket? Pin
Phuongkar29-Jun-06 20:05
Phuongkar29-Jun-06 20:05 
AnswerRe: A question about Net.Socket? Pin
stancrm30-Jun-06 0:37
stancrm30-Jun-06 0:37 
QuestionHow to work with panels Pin
JacquesDP29-Jun-06 19:58
JacquesDP29-Jun-06 19:58 
AnswerRe: How to work with panels Pin
Martin#29-Jun-06 20:20
Martin#29-Jun-06 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.