Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
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 
QuestionParallel Extensions Pin
427748025-Nov-09 12:17
427748025-Nov-09 12:17 
AnswerRe: Parallel Extensions Pin
Nicholas Butler25-Nov-09 21:32
sitebuilderNicholas Butler25-Nov-09 21:32 
QuestionWeb authentication by code Pin
ika225-Nov-09 11:12
ika225-Nov-09 11:12 
AnswerRe: Web authentication by code Pin
Mycroft Holmes25-Nov-09 13:24
professionalMycroft Holmes25-Nov-09 13:24 
GeneralRe: Web authentication by code Pin
ika225-Nov-09 23:41
ika225-Nov-09 23:41 
QuestionUser Feedback while main thread is busy Pin
User 260419325-Nov-09 9:47
User 260419325-Nov-09 9:47 
AnswerRe: User Feedback while main thread is busy Pin
Luc Pattyn25-Nov-09 10:23
sitebuilderLuc Pattyn25-Nov-09 10:23 
GeneralRe: User Feedback while main thread is busy Pin
Mycroft Holmes25-Nov-09 13:31
professionalMycroft Holmes25-Nov-09 13:31 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn25-Nov-09 14:16
sitebuilderLuc Pattyn25-Nov-09 14:16 
GeneralRe: User Feedback while main thread is busy Pin
Mycroft Holmes25-Nov-09 14:30
professionalMycroft Holmes25-Nov-09 14:30 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn25-Nov-09 14:45
sitebuilderLuc Pattyn25-Nov-09 14:45 
GeneralRe: User Feedback while main thread is busy Pin
Mycroft Holmes25-Nov-09 14:55
professionalMycroft Holmes25-Nov-09 14:55 
GeneralRe: User Feedback while main thread is busy {modified} Pin
Luc Pattyn25-Nov-09 15:02
sitebuilderLuc Pattyn25-Nov-09 15:02 
GeneralRe: User Feedback while main thread is busy {modified} Pin
N a v a n e e t h25-Nov-09 16:32
N a v a n e e t h25-Nov-09 16:32 

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.