Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
QuestionHow to scroll an image? Pin
E6AD11-Oct-05 4:12
E6AD11-Oct-05 4:12 
AnswerRe: How to scroll an image? Pin
ediazc11-Oct-05 4:28
ediazc11-Oct-05 4:28 
QuestionDisaplying different panels from options in a dropdown list Pin
AdamskiR11-Oct-05 4:04
AdamskiR11-Oct-05 4:04 
AnswerRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 4:51
XRaheemX11-Oct-05 4:51 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
AdamskiR11-Oct-05 5:07
AdamskiR11-Oct-05 5:07 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 5:21
XRaheemX11-Oct-05 5:21 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
AdamskiR11-Oct-05 5:32
AdamskiR11-Oct-05 5:32 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 5:37
XRaheemX11-Oct-05 5:37 
OK, so lets say that the other dropdowns are named option1, option2, option3 etc. The following code will work for you:

<code>

private void Speciality_SelectedIndexChanged(object sender, System.EventArgs e)
{
    select(Speciality.SelectedItem.Value.ToLower())
    {
         case "option 1":
           option1.Visible = true;
           break;
         
         case "option 2":
           option2.Visible = true;
           break;

         case "option 3":
           option3.Visible = true; 
            break;

         case "option 4":
            option4.Visible = true;
            break;

         case "option 5":
            option5.Visible = true;
            break;

         default:
            //In case you want to do something "else"
            break;
    }
}
</code>

GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 5:38
XRaheemX11-Oct-05 5:38 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
AdamskiR11-Oct-05 6:03
AdamskiR11-Oct-05 6:03 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 7:08
XRaheemX11-Oct-05 7:08 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX11-Oct-05 7:37
XRaheemX11-Oct-05 7:37 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
AdamskiR11-Oct-05 22:55
AdamskiR11-Oct-05 22:55 
GeneralRe: Disaplying different panels from options in a dropdown list Pin
XRaheemX12-Oct-05 3:52
XRaheemX12-Oct-05 3:52 
QuestionButton Event Handler Pin
Brendan Vogt11-Oct-05 3:27
Brendan Vogt11-Oct-05 3:27 
AnswerRe: Button Event Handler Pin
XRaheemX11-Oct-05 3:40
XRaheemX11-Oct-05 3:40 
GeneralRe: Button Event Handler Pin
Brendan Vogt11-Oct-05 4:34
Brendan Vogt11-Oct-05 4:34 
GeneralRe: Button Event Handler Pin
XRaheemX11-Oct-05 4:47
XRaheemX11-Oct-05 4:47 
QuestionWait in loop Pin
mrnoname11-Oct-05 3:16
mrnoname11-Oct-05 3:16 
AnswerRe: Wait in loop Pin
XRaheemX11-Oct-05 3:29
XRaheemX11-Oct-05 3:29 
GeneralRe: Wait in loop Pin
S. Senthil Kumar11-Oct-05 4:20
S. Senthil Kumar11-Oct-05 4:20 
GeneralRe: Wait in loop Pin
XRaheemX11-Oct-05 4:39
XRaheemX11-Oct-05 4:39 
GeneralRe: Wait in loop Pin
mrnoname11-Oct-05 9:25
mrnoname11-Oct-05 9:25 
AnswerRe: Wait in loop Pin
Wjousts11-Oct-05 4:22
Wjousts11-Oct-05 4:22 
GeneralRe: Wait in loop Pin
XRaheemX11-Oct-05 4:42
XRaheemX11-Oct-05 4: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.