Click here to Skip to main content
15,916,601 members
Home / Discussions / C#
   

C#

 
AnswerRe: DateTimePicker and Regional Setting Pin
XRaheemX11-Oct-05 4:53
XRaheemX11-Oct-05 4:53 
GeneralRe: DateTimePicker and Regional Setting Pin
AesopTurtle11-Oct-05 15:28
AesopTurtle11-Oct-05 15:28 
GeneralRe: DateTimePicker and Regional Setting Pin
XRaheemX12-Oct-05 3:12
XRaheemX12-Oct-05 3:12 
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 
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 
Yes, im positive it is a c# code behind page.

I pasted exactly what you wrote in, but just changed the case values and visible panel names to that of what I am using. I have underlined where I am getting build errors

private void Speciality_SelectedIndexChanged(object sender, System.EventArgs e)
		{	
			select(Speciality.SelectedItem.Value.ToLower()) 			
                        {
				case "Breast Surgery": 
			 SpecialityBreastSurgery.Visible = true;
			 break;
         
				case "Cardiology": 
			SpecialityCardiology.Visible = true;
			break;

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


Many thanks
Adam
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 

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.