Click here to Skip to main content
15,919,898 members
Home / Discussions / C#
   

C#

 
AnswerRe: what is the maximum size Pin
Thomas Krojer25-Nov-09 20:47
Thomas Krojer25-Nov-09 20:47 
GeneralRe: what is the maximum size Pin
Joe Rozario25-Nov-09 21:26
Joe Rozario25-Nov-09 21:26 
AnswerRe: what is the maximum size Pin
Member 218499725-Nov-09 20:56
Member 218499725-Nov-09 20:56 
GeneralRe: what is the maximum size Pin
Joe Rozario25-Nov-09 21:28
Joe Rozario25-Nov-09 21:28 
AnswerRe: what is the maximum size Pin
harold aptroot25-Nov-09 23:14
harold aptroot25-Nov-09 23:14 
GeneralRe: what is the maximum size Pin
Joe Rozario26-Nov-09 1:17
Joe Rozario26-Nov-09 1:17 
AnswerRe: what is the maximum size Pin
Luc Pattyn26-Nov-09 1:13
sitebuilderLuc Pattyn26-Nov-09 1:13 
GeneralRe: what is the maximum size Pin
Joe Rozario26-Nov-09 1:22
Joe Rozario26-Nov-09 1:22 
QuestionExport datagridview to excel file in Windows App. Pin
mostafa_h25-Nov-09 18:45
mostafa_h25-Nov-09 18:45 
AnswerRe: Export datagridview to excel file in Windows App. Pin
Abhijit Jana25-Nov-09 18:52
professionalAbhijit Jana25-Nov-09 18:52 
GeneralRe: Export datagridview to excel file in Windows App. Pin
mostafa_h25-Nov-09 22:31
mostafa_h25-Nov-09 22:31 
Questioncreating Generic Base Class Help Pin
Lino Chacko25-Nov-09 18:37
Lino Chacko25-Nov-09 18:37 
AnswerRe: creating Generic Base Class Help Pin
Mycroft Holmes25-Nov-09 21:06
professionalMycroft Holmes25-Nov-09 21:06 
QuestionRead mpp file [modified] [Solved] Pin
DJ24525-Nov-09 16:42
DJ24525-Nov-09 16:42 
AnswerRe: Read mpp file Pin
dan!sh 25-Nov-09 17:14
professional dan!sh 25-Nov-09 17:14 
QuestionCheck Children in MDIParent Pin
Socheat.Net25-Nov-09 16:15
Socheat.Net25-Nov-09 16:15 
AnswerRe: Check Children in MDIParent Pin
N a v a n e e t h25-Nov-09 16:34
N a v a n e e t h25-Nov-09 16:34 
GeneralRe: Check Children in MDIParent Pin
Socheat.Net25-Nov-09 17:08
Socheat.Net25-Nov-09 17:08 
GeneralRe: Check Children in MDIParent Pin
N a v a n e e t h25-Nov-09 17:11
N a v a n e e t h25-Nov-09 17:11 
AnswerRe: Check Children in MDIParent Pin
dan!sh 25-Nov-09 16:58
professional dan!sh 25-Nov-09 16:58 
GeneralRe: Check Children in MDIParent Pin
Socheat.Net25-Nov-09 17:17
Socheat.Net25-Nov-09 17:17 
QuestionArray Help Pin
Joe Spaz25-Nov-09 14:06
Joe Spaz25-Nov-09 14:06 
This is the final code, i finally got the array in the label. Thanks


public partial class ShippingCosts : Form
{
   //array of zip codes and charges
   int[,] intZip = { {33620, 5}, {33619, 10}, {33618, 12}, {33617, 13}, {33616, 14}, {33611, 18}, {33602, 22},
{33600, 25}, {33254, 26}, {33628,30}};

   public ShippingCosts()
   {
      InitializeComponent();
   }

   //click event handler
   private void btnSubmit_Click(object sender, EventArgs e)
   {

     int intZipCode=Int32.Parse(txtZipCode.Text);

      //for statement to find zip code
     for (int intcounter =0; intcounter <intZip.GetUpperBound(0); intcounter++)

    {
        //if statement for what to do if matches or doesnt match
        if (intZipCode== intZip[intcounter,0])
        {
        lblResults.Text=Convert.ToString(intZip[intcounter,1]);
        return;
        }
        else
        {
        lblResults.Text = "We do not deliver to this address";

         }}
      //end if statement


modified on Wednesday, November 25, 2009 8:43 PM

AnswerRe: Array Help Pin
Luc Pattyn25-Nov-09 14:29
sitebuilderLuc Pattyn25-Nov-09 14:29 
AnswerRe: Array Help Pin
_Maxxx_25-Nov-09 14:33
professional_Maxxx_25-Nov-09 14:33 
AnswerRe: Array Help Pin
Joe Spaz25-Nov-09 14:42
Joe Spaz25-Nov-09 14:42 

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.