User Profile

Collapse

Profile Sidebar

Collapse
wivked
wivked
Last Activity: Sep 16 '10, 08:09 PM
Joined: Jun 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wivked
    started a topic Parameter problem

    Parameter problem

    Hi all,

    I have this problem,

    I want to return certain value's from a method.
    And that method has a parameter.

    And i want to use that return value in a
    other method, but it i dont have the
    correct parameters for the method.

    Example.
    Code:
     
    
    
     private void button1_Click(object sender, EventArgs e)
     {
     click(e);
     
     }
    ...
    See more | Go to post

  • wivked
    replied to Null reference combobox.
    Nevermind,, i got it :) sorry for the spam

    Code:
    object item = cbLocaties.SelectedItem;
    
    
                if (item != null || tbXcor.Text != string.Empty && tbYcor.Text != string.Empty)
                {
                    item.ToString();
    
                }
                else
                {
                    Simtimer.Stop();
                    MessageBox.Show("ERRROR");
    ...
    See more | Go to post

    Leave a comment:


  • wivked
    started a topic Null reference combobox.

    Null reference combobox.

    Hi,

    I've got a problem with my program.

    Code:
    string locatielist = cbLocaties.SelectedItem.ToString();  
               
    
                 if (locatielist == null && tbXcor.Text == string.Empty && tbYcor.Text == string.Empty)
                 {
                     Simtimer.Stop();
                     MessageBox.Show("ERROR");
                 }
    ...
    See more | Go to post
No activity results to display
Show More
Working...