Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: Automating Telnet Pin
Green Fuze9-Sep-06 11:07
Green Fuze9-Sep-06 11:07 
GeneralRe: Automating Telnet Pin
Green Fuze9-Sep-06 13:20
Green Fuze9-Sep-06 13:20 
GeneralRe: Automating Telnet Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:23
Arjun "Mjolnir" Bahree10-Sep-06 4:23 
Questioncan a property in c# takes arguments as in vb.net Pin
Brosis8-Sep-06 23:20
Brosis8-Sep-06 23:20 
AnswerRe: can a property in c# takes arguments as in vb.net Pin
Nader Elshehabi9-Sep-06 0:05
Nader Elshehabi9-Sep-06 0:05 
Questionmoving from one line to another ... Pin
mrkeivan8-Sep-06 22:16
mrkeivan8-Sep-06 22:16 
AnswerRe: moving from one line to another ... Pin
Nader Elshehabi9-Sep-06 0:00
Nader Elshehabi9-Sep-06 0:00 
AnswerRe: moving from one line to another ... Pin
Amar Chaudhary9-Sep-06 0:02
Amar Chaudhary9-Sep-06 0:02 
this is the way
<br />
private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            int i;<br />
            for (i = 0; i < 10; i++)<br />
            {<br />
                if (i == 5)<br />
                    goto skip;<br />
            }<br />
        skip:<br />
            MessageBox.Show("i = " + i);<br />
        }<br />
<br />


but this is not so robust 
try this 

<br />
 private void button2_Click(object sender, EventArgs e)<br />
        {<br />
            int i;<br />
            i = skip(); // create a function and return appropriate value<br />
            MessageBox.Show("i = " + i);<br />
        }<br />
<br />
        private int skip()<br />
        {<br />
            for (int i = 0; i < 10; i++)<br />
            {<br />
                if (i == 5)<br />
                    return i;<br />
            }<br />
            return 0;<br />
        }<br />

QuestionCalling Dialog from Thread Pin
MudkiSekhon8-Sep-06 20:04
MudkiSekhon8-Sep-06 20:04 
AnswerRe: Calling Dialog from Thread Pin
Stefan Troschuetz8-Sep-06 21:42
Stefan Troschuetz8-Sep-06 21:42 
Questionreport Pin
TAREQ F ABUZUHRI8-Sep-06 13:15
TAREQ F ABUZUHRI8-Sep-06 13:15 
AnswerRe: report Pin
CWIZO9-Sep-06 0:53
CWIZO9-Sep-06 0:53 
QuestionHandling the tab key in a datagridview Pin
Drew McGhie8-Sep-06 12:06
Drew McGhie8-Sep-06 12:06 
AnswerRe: Handling the tab key in a datagridview Pin
Nader Elshehabi8-Sep-06 13:17
Nader Elshehabi8-Sep-06 13:17 
QuestionWrite data to an xml file Pin
Yustme8-Sep-06 10:59
Yustme8-Sep-06 10:59 
AnswerRe: Write data to an xml file Pin
Nader Elshehabi8-Sep-06 11:14
Nader Elshehabi8-Sep-06 11:14 
AnswerRe: Write data to an xml file Pin
Guffa8-Sep-06 13:18
Guffa8-Sep-06 13:18 
GeneralRe: Write data to an xml file Pin
lmoelleb8-Sep-06 20:47
lmoelleb8-Sep-06 20:47 
AnswerRe: Write data to an xml file Pin
Guffa9-Sep-06 7:53
Guffa9-Sep-06 7:53 
AnswerRe: Write data to an xml file Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:25
Arjun "Mjolnir" Bahree10-Sep-06 4:25 
QuestionBuffering Images Pin
Randomlick8-Sep-06 9:53
Randomlick8-Sep-06 9:53 
QuestionMax Number of Processes limit Pin
Subby Dev8-Sep-06 8:59
Subby Dev8-Sep-06 8:59 
Questionhow to create a System.data.datatabe from interop.excel.worksheet? Pin
qahwah8-Sep-06 7:54
qahwah8-Sep-06 7:54 
QuestionDigit To text Converter [modified] Pin
Syed Shahid Hussain8-Sep-06 6:50
Syed Shahid Hussain8-Sep-06 6:50 
AnswerRe: Digit To text Converter Pin
leppie8-Sep-06 7:11
leppie8-Sep-06 7:11 

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.