?
Solved

C# snytax help

Posted on 2007-10-10
4
Medium Priority
?
202 Views
Last Modified: 2010-04-15
I can do this in VB but need it in C#.
I want to use the "if else" structure for this:

    if (RB1I5.Checked)
      {
      }

    if (RB2I8.Checked)
      {
      }

    if (RB3F3.Checked)
      {
      }

    else
      {
      }
0
Comment
Question by:MikeMCSD
  • 3
4 Comments
 
LVL 21

Accepted Solution

by:
surajguptha earned 2000 total points
ID: 20049751
   if (RB1I5.Checked)
      {
      }

   else if (RB2I8.Checked)
      {
      }

else    if (RB3F3.Checked)
      {
      }

    else
      {
      }
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20049758
or am i missing understanding your question?
0
 
LVL 16

Author Comment

by:MikeMCSD
ID: 20049824
no, that did the trick, thank you . .
this C# syntax is driving me fking nuts.
I wish I could just keep using VB but most companies
use C# and I'm forcing myself to learn it.
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20049905
Its not that hard. Will just take a couple of weeks to get used to it, once you get used to it, it is fun :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question