Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# code to execute a particular method every 5 mints? Pin
Giorgi Dalakishvili1-Feb-09 3:21
mentorGiorgi Dalakishvili1-Feb-09 3:21 
AnswerRe: c# code to execute a particular method every 5 mints? Pin
PIEBALDconsult2-Feb-09 4:41
mvePIEBALDconsult2-Feb-09 4:41 
QuestionHow to make Gsm Sequential calls without blocking my application Pin
ajorge200831-Jan-09 23:02
ajorge200831-Jan-09 23:02 
QuestionRepost from ASP.NET forum - VBRUN : 80040154 Pin
coolestCoder31-Jan-09 21:39
coolestCoder31-Jan-09 21:39 
QuestionMp3 Spliting Pin
Learn Searcher31-Jan-09 21:18
Learn Searcher31-Jan-09 21:18 
AnswerRe: Mp3 Spliting Pin
Christian Graus31-Jan-09 22:05
protectorChristian Graus31-Jan-09 22:05 
AnswerRe: Mp3 Spliting Pin
Dragonfly_Lee1-Feb-09 20:17
Dragonfly_Lee1-Feb-09 20:17 
Questionwhen a method is called i want to get first index value from an arraylist and when the same methid is called nxt time i want to get the second index value from the same arraylist...how? Pin
merryjoy00031-Jan-09 20:30
merryjoy00031-Jan-09 20:30 
when a method is called i want to get first index value from an arraylist and when the same method is called next time i want to get the second index value from the same arraylist...how can i do that?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;


namespace roseapp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{

}
public ArrayList MPN = new ArrayList();
public string[,] Modems = new string[,]
{
{"Apple", "Banana", "81563840", "Damson"},
{"Elderberry", "Fig", "81547907", "Huckleberry"},
{"Indian Prune", "Jujube", "98764343322", "Lime"}
};
public string arrayValue;


private void button1_Click_1(object sender, EventArgs e)
{
// getphnum();

RoundRobin();
}
private int z = 0;
public void RoundRobin()
{

if (Modems == null)
throw new ArgumentNullException("Modem");
if (Modems.Length < 0)
return;

//int Count = 0;
int i;
int x = Modems.Length/4;

MessageBox.Show(Convert.ToString(x));
for (i = 0; i < x; i++)
{
string a = Modems[i, 2];
MessageBox.Show(a);
arrayValue = a;
MPN.Add(arrayValue);
}

for (int a = 0; a < MPN.Count; a++)
{
MessageBox.Show("ARRAY VALUE for index "+a+" "+Convert.ToString(MPN[a]));
}

}

public void getphnum()
{
z++;


MessageBox.Show(Convert.ToString(z));
}
}
}
in this when the getphnum() is called one time i wnat to get firts index value(ie index 0 ph number)ie MPN arraylist.ANd when next time when getphnum () is called i want to get index 1 value from arraylist MPN.(ie the same arraylist from which i call my first array index value)..
can somebody help meeeeeeeeeeee Hmmm | :| Hmmm | :|
AnswerRe: when a method is called i want to get first index value from an arraylist and when the same methid is called nxt time i want to get the second index value from the same arraylist...how? Pin
Kashif Sabir31-Jan-09 21:13
Kashif Sabir31-Jan-09 21:13 
AnswerRe: when a method is called i want to get first index value from an arraylist and when the same methid is called nxt time i want to get the second index value from the same arraylist...how? Pin
Dragonfly_Lee31-Jan-09 21:18
Dragonfly_Lee31-Jan-09 21:18 
Questiontablelayoutpanel in c#.net in windows application Pin
dilipmca0431-Jan-09 20:05
dilipmca0431-Jan-09 20:05 
AnswerRe: tablelayoutpanel in c#.net in windows application Pin
dan!sh 31-Jan-09 21:53
professional dan!sh 31-Jan-09 21:53 
AnswerRe: tablelayoutpanel in c#.net in windows application Pin
Alan N31-Jan-09 21:57
Alan N31-Jan-09 21:57 
QuestionHow to call a string value from a method within another class? Pin
Aghosh Babu31-Jan-09 19:29
Aghosh Babu31-Jan-09 19:29 
AnswerRe: How to call a string value from a method within another class? Pin
Karmendra Suthar31-Jan-09 19:50
Karmendra Suthar31-Jan-09 19:50 
GeneralRe: How to call a string value from a method within another class? Pin
Aghosh Babu31-Jan-09 20:15
Aghosh Babu31-Jan-09 20:15 
GeneralRe: How to call a string value from a method within another class? Pin
Karmendra Suthar1-Feb-09 1:00
Karmendra Suthar1-Feb-09 1:00 
AnswerRe: How to call a string value from a method within another class? Pin
Dragonfly_Lee31-Jan-09 20:11
Dragonfly_Lee31-Jan-09 20:11 
QuestionProtect password file Pin
Karmendra Suthar31-Jan-09 19:27
Karmendra Suthar31-Jan-09 19:27 
AnswerRe: Protect password file Pin
Dragonfly_Lee31-Jan-09 20:02
Dragonfly_Lee31-Jan-09 20:02 
GeneralRe: Protect password file Pin
Karmendra Suthar1-Feb-09 0:53
Karmendra Suthar1-Feb-09 0:53 
GeneralRe: Protect password file Pin
Dave Kreskowiak1-Feb-09 1:45
mveDave Kreskowiak1-Feb-09 1:45 
GeneralRe: Protect password file Pin
Dragonfly_Lee1-Feb-09 4:05
Dragonfly_Lee1-Feb-09 4:05 
Questionfile upload error Pin
George_George31-Jan-09 19:22
George_George31-Jan-09 19:22 
AnswerRe: file upload error Pin
Anthony Mushrow1-Feb-09 2:17
professionalAnthony Mushrow1-Feb-09 2:17 

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.