Click here to Skip to main content
16,007,504 members
Home / Discussions / C#
   

C#

 
QuestionGetString function Pin
ita_cas30-Jan-06 23:25
ita_cas30-Jan-06 23:25 
AnswerRe: GetString function Pin
AETaylor31-Jan-06 1:17
AETaylor31-Jan-06 1:17 
AnswerRe: GetString function Pin
kasik31-Jan-06 1:20
kasik31-Jan-06 1:20 
QuestionTime hr:min AM/PM with updown control Pin
For_IT30-Jan-06 22:38
For_IT30-Jan-06 22:38 
AnswerRe: Time hr:min AM/PM with updown control Pin
Ingo30-Jan-06 22:56
Ingo30-Jan-06 22:56 
QuestionProblem in Sending Email Pin
sohne30-Jan-06 22:16
sohne30-Jan-06 22:16 
AnswerRe: Problem in Sending Email Pin
Ingo30-Jan-06 22:51
Ingo30-Jan-06 22:51 
QuestionUgly error Pin
nc3b30-Jan-06 20:57
nc3b30-Jan-06 20:57 
Ok here's the error
I am making a chat client. The user has to open a new windows for each client he wants to talk to. So if he clicks the button
if(TO[TOS[this.listBox1.SelectedIndex]].Visible)<br />
			{<br />
				TO[TOS[this.listBox1.SelectedIndex]].Focus();<br />
			}<br />
			else<br />
			{<br />
				TO[TOS[this.listBox1.SelectedIndex]].Show();<br />
			}

I use that and it works. But I also want the program to open a window when it receives data from a client who's window is not opened(just like Yahoo Messenger).
if(TO[num].Visible)<br />
{<br />
   TO[num].Receive(Got.Split(":".ToCharArray(),2)[1]);<br />
}<br />
else<br />
{	<br />
   TO[num].Show();<br />
   TO[num].Receive(Got.Split(":".ToCharArray(),2)[1]);<br />
}

And then i get something like the left-over of a window and the program exits, without pointing out an exceptio at least. Please help.Sigh | :sigh:

-- modified at 2:57 Tuesday 31st January, 2006
QuestionRe: Ugly error Pin
Vikram A Punathambekar30-Jan-06 22:03
Vikram A Punathambekar30-Jan-06 22:03 
AnswerRe: Ugly error Pin
nc3b30-Jan-06 22:06
nc3b30-Jan-06 22:06 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:11
nc3b30-Jan-06 22:11 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:27
Colin Angus Mackay30-Jan-06 22:27 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:29
nc3b30-Jan-06 22:29 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:46
Colin Angus Mackay30-Jan-06 22:46 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:48
nc3b30-Jan-06 22:48 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:50
Colin Angus Mackay30-Jan-06 22:50 
AnswerRe: Ugly error Pin
Ingo30-Jan-06 22:46
Ingo30-Jan-06 22:46 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:56
nc3b30-Jan-06 22:56 
GeneralRe: Ugly error Pin
Ingo30-Jan-06 23:08
Ingo30-Jan-06 23:08 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 23:11
nc3b30-Jan-06 23:11 
GeneralRe: Ugly error Pin
Ingo30-Jan-06 23:22
Ingo30-Jan-06 23:22 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 6:52
nc3b31-Jan-06 6:52 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 7:07
nc3b31-Jan-06 7:07 
GeneralRe: Ugly error Pin
S. Senthil Kumar31-Jan-06 15:50
S. Senthil Kumar31-Jan-06 15:50 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 21:41
nc3b31-Jan-06 21:41 

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.