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

C#

 
AnswerRe: record no update Pin
OriginalGriff6-Apr-10 22:25
mveOriginalGriff6-Apr-10 22:25 
AnswerRe: record no update Pin
Greg Chelstowski6-Apr-10 22:45
Greg Chelstowski6-Apr-10 22:45 
Questionplz help!!error use of unassigned local variable Pin
crisjala6-Apr-10 17:24
crisjala6-Apr-10 17:24 
AnswerRe: plz help!!error use of unassigned local variable Pin
Matt U.6-Apr-10 17:59
Matt U.6-Apr-10 17:59 
AnswerRe: plz help!!error use of unassigned local variable Pin
uraghu6-Apr-10 18:22
uraghu6-Apr-10 18:22 
AnswerRe: plz help!!error use of unassigned local variable Pin
Arun Jacob6-Apr-10 19:00
Arun Jacob6-Apr-10 19:00 
AnswerRe: plz help!!error use of unassigned local variable Pin
Morgs Morgan6-Apr-10 20:58
Morgs Morgan6-Apr-10 20:58 
AnswerRe: plz help!!error use of unassigned local variable Pin
OriginalGriff6-Apr-10 22:29
mveOriginalGriff6-Apr-10 22:29 
You can use String.Empty as the others say, or better still use StringBuilder:
private void btnSave_Click(object sender, EventArgs e)
   {
   string[] FieldName = { "Lastname", "Firstname", "Address", "Model", "Trouble Reported" };
   StringBuilder messEmptyField = new StringBuilder();
   int i = 0;

   foreach (Control ctrl in groupBox1.Controls)
      {
      TextBox txt = ctrl as TextBox;

      if (txt.Text == string.Empty)
         {
         messEmptyField.Append(FieldName[i]);
         }
      i++;
      }

   MessageBox.Show(messEmptyField.ToString() + "please filled up all");
   dtDateLog.Focus();
   return;
   }

You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

QuestionCreating a file and saving it to C Pin
Darrall6-Apr-10 14:09
Darrall6-Apr-10 14:09 
AnswerRe: Creating a file and saving it to C Pin
Super Lloyd6-Apr-10 14:32
Super Lloyd6-Apr-10 14:32 
AnswerRe: Creating a file and saving it to C Pin
harold aptroot6-Apr-10 15:03
harold aptroot6-Apr-10 15:03 
GeneralRe: Creating a file and saving it to C Pin
Darrall6-Apr-10 15:47
Darrall6-Apr-10 15:47 
GeneralRe: Creating a file and saving it to C Pin
Dan Mos6-Apr-10 16:49
Dan Mos6-Apr-10 16:49 
GeneralRe: Creating a file and saving it to C Pin
Darrall7-Apr-10 4:47
Darrall7-Apr-10 4:47 
AnswerRe: Creating a file and saving it to C Pin
PIEBALDconsult6-Apr-10 15:24
mvePIEBALDconsult6-Apr-10 15:24 
GeneralRe: Creating a file and saving it to C Pin
Darrall6-Apr-10 16:01
Darrall6-Apr-10 16:01 
GeneralRe: Creating a file and saving it to C Pin
PIEBALDconsult6-Apr-10 16:13
mvePIEBALDconsult6-Apr-10 16:13 
QuestionHow to call a COM function with arguments using IDispatch in C# Pin
JF Pomerleau6-Apr-10 11:27
JF Pomerleau6-Apr-10 11:27 
AnswerRe: How to call a COM function with arguments using IDispatch in C# Pin
chrismisztur15-Jun-10 11:01
chrismisztur15-Jun-10 11:01 
Questiontips on windows application running on a local server Pin
mrkeivan6-Apr-10 7:33
mrkeivan6-Apr-10 7:33 
AnswerRe: tips on windows application running on a local server Pin
Not Active6-Apr-10 8:48
mentorNot Active6-Apr-10 8:48 
AnswerRe: tips on windows application running on a local server Pin
Dave Kreskowiak6-Apr-10 9:58
mveDave Kreskowiak6-Apr-10 9:58 
GeneralRe: tips on windows application running on a local server Pin
mrkeivan6-Apr-10 18:31
mrkeivan6-Apr-10 18:31 
AnswerRe: tips on windows application running on a local server Pin
PIEBALDconsult6-Apr-10 11:43
mvePIEBALDconsult6-Apr-10 11:43 
Questiondatagridview Pin
hamid53056-Apr-10 6:45
hamid53056-Apr-10 6:45 

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.