Click here to Skip to main content
15,902,908 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sending email using SmtpClient SendAsync with gmail doesn’t work Pin
fquaino10-May-10 9:35
fquaino10-May-10 9:35 
QuestionDrive Control Pin
amiralimadadi1-Feb-09 1:24
amiralimadadi1-Feb-09 1:24 
AnswerRe: Drive Control Pin
amiralimadadi1-Feb-09 17:52
amiralimadadi1-Feb-09 17:52 
AnswerRe: Drive Control Pin
Dragonfly_Lee1-Feb-09 19:02
Dragonfly_Lee1-Feb-09 19:02 
GeneralRe: Drive Control Pin
amiralimadadi3-Feb-09 18:05
amiralimadadi3-Feb-09 18:05 
GeneralRe: Drive Control Pin
amiralimadadi17-Feb-09 1:46
amiralimadadi17-Feb-09 1:46 
Questionhow to paste graphic object on screen from arraylist...in c#.net Pin
priyareguri1-Feb-09 0:57
priyareguri1-Feb-09 0:57 
AnswerRe: how to paste graphic object on screen from arraylist...in c#.net Pin
Natza Mitzi1-Feb-09 3:37
Natza Mitzi1-Feb-09 3:37 
GeneralRe: how to paste graphic object on screen from arraylist...in c#.net Pin
priyareguri1-Feb-09 13:24
priyareguri1-Feb-09 13:24 
QuestionProblem with Listbox and removing items... [modified] Pin
Matjaz-xyz31-Jan-09 23:41
Matjaz-xyz31-Jan-09 23:41 
AnswerRe: Problem with Listbox and removing items... Pin
User 66581-Feb-09 0:50
User 66581-Feb-09 0:50 
GeneralRe: Problem with Listbox and removing items... Pin
Matjaz-xyz1-Feb-09 1:33
Matjaz-xyz1-Feb-09 1:33 
AnswerRe: Problem with Listbox and removing items... Pin
Dragonfly_Lee1-Feb-09 19:09
Dragonfly_Lee1-Feb-09 19:09 
Questionc# code to execute a particular method every 5 mints? Pin
merryjoy00031-Jan-09 23:24
merryjoy00031-Jan-09 23:24 
AnswerRe: c# code to execute a particular method every 5 mints? Pin
Giorgi Dalakishvili31-Jan-09 23:38
mentorGiorgi Dalakishvili31-Jan-09 23:38 
AnswerRe: c# code to execute a particular method every 5 mints? Pin
merryjoy00031-Jan-09 23:43
merryjoy00031-Jan-09 23:43 
GeneralRe: c# code to execute a particular method every 5 mints? Pin
ajorge20081-Feb-09 0:32
ajorge20081-Feb-09 0:32 
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 | :|

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.