I'm working in Expression Blend and VS and have to load a dynamic url into the MediaElement of an silverlight media project I'm doing. I'm usiing C# in the code behind. Know anything about how to do that?
do u know the cod to get min and max for a set of numbers manually entered by a user,and aslo min and max for a set of random numbers. i know u have to use math.min and math.max somehow.... but im not sure of the entire code sequence, thanks if u get chance... : )
I gotta go to school now...Look into the Math class if you are just looking for the functions, but switch statements are meant for pre-determined cases =/
Hi thanks for the videos they're a great help.. but i was wonderin if u can help with this example... i have 2 primary switches (called option) which both contain a further secondary switch (called option2) inside them. does it matter if i call the cases in the priamary switch called 1 and 2, with cases 1 and 2 in the secondary switch. they seem to conflict eachother eventhough the switches have different names and i have enough breaks to seperate them, if u get chance to answer it wud be great!
thanks ive been searching for a way to convert int to work with switches, but i was trying to use a string then back to int.
ad5665 4 months ago
thanks mate, you have saved me, and your probally going to quite alot today with this piece of programming i have got to do
blackmage0 1 year ago
@blackmage0 Just message me if you need more help :P
babyyoyoboy 1 year ago 2
You don't need to put break, unless you don't want a fall through effect
You can also put default anywhere not just the bottom
Consider this:
for default and condition A you want statements X, Y and Z
for condition B you want statements Y and Z
for condition C you want statement Z
then you could do:...
IslandCave 1 year ago
Thanks for this and all other videos. Free knowledge at this convenience is seriously awesome. I really appreciate everyone who does this stuff.
Heathathnasoodua 1 year ago
The C# language is 10000000000times easier the C language
ScienceTutorials 1 year ago
I dont understand what the Convert.ToInt32 means...... what does the 32 mean??
nic0003 1 year ago
By far the best C# instruction out there!
I'm working in Expression Blend and VS and have to load a dynamic url into the MediaElement of an silverlight media project I'm doing. I'm usiing C# in the code behind. Know anything about how to do that?
kb3301 2 years ago
you just fixed my entire program by showing me the conversion lol. thanks
nickrohn93 2 years ago
im glad i could help
babyyoyoboy 2 years ago
if you ant to change the color and add A title here is a few tips
ok first you add this source above
int myInt;
Console.Title = "YOUR TXT HERE");
Console.ForegroundColor = ConsoleColor.Red;
Note you can also use Blue,Green,DarkGreen and mant other colors
shurtz67 2 years ago
First off...
int myInt; right there is worthless...
Second...
Console.Title = "YOUR TXT HERE"); would cause an error because there is a random )
The 3rd line you provided would compile but you didn't provide any specifics about how the line works...
babyyoyoboy 2 years ago
above is my email address without the spaces
spiw117 2 years ago
This has been flagged as spam show
b u r g e r n i p s 8 9 @ h o t m a i l . c o m
spiw117 2 years ago
it doesnt let me leave an email address
spiw117 2 years ago
I left my account on ur youtube account page
spiw117 2 years ago
i didn't get any o.o
send me a message
babyyoyoboy 2 years ago
ive tried loads of time to leave a comment.but its not workin, see if this one sticks!
spiw117 2 years ago
got this one
babyyoyoboy 2 years ago
do u know the cod to get min and max for a set of numbers manually entered by a user,and aslo min and max for a set of random numbers. i know u have to use math.min and math.max somehow.... but im not sure of the entire code sequence, thanks if u get chance... : )
spiw117 2 years ago
Do you have an AOL Messenger or Windows Live Messenger acc?
It'd be easier to talk to you there.
babyyoyoboy 2 years ago
is it possible to have an else statement in a switch or do i have to start again?
spiw117 2 years ago
Since cases are pre-defined, I can't see why you would have an if statement, but it is possible.
babyyoyoboy 2 years ago
Yea I can do the maths.... just not the programming
spiw117 2 years ago
Like I said, switch statements are for pre-determined cases, if you want more flexibility, go with if else statements
babyyoyoboy 2 years ago
the first switch is to have:
case1: =random numbers
case 2: =manual input
then inside these 2 you can choose from the second switch:
case1: scaled sum
case 2: average
case 3: min and max
the switches work fine but i dont know how to find the above cases 1, 2 and 3. if u cud give me a little help id be very thankful : )
spiw117 2 years ago
I gotta go to school now...Look into the Math class if you are just looking for the functions, but switch statements are meant for pre-determined cases =/
babyyoyoboy 2 years ago
not sure if u got that reply i sent u a second ago... doesnt show it on the comment list?
spiw117 2 years ago
I don't think so
babyyoyoboy 2 years ago
ahhh, u cant fall from one case to another, does this mean i have to use a loop?
spiw117 2 years ago
Hi thanks for the videos they're a great help.. but i was wonderin if u can help with this example... i have 2 primary switches (called option) which both contain a further secondary switch (called option2) inside them. does it matter if i call the cases in the priamary switch called 1 and 2, with cases 1 and 2 in the secondary switch. they seem to conflict eachother eventhough the switches have different names and i have enough breaks to seperate them, if u get chance to answer it wud be great!
spiw117 2 years ago
I'd like to know why you need two switch statements actually o.o
I'm not so sure about having one inside one, perhaps a theoretical snippet would help me understand your problem.
babyyoyoboy 2 years ago
I like your lessons, they are explaining pretty much what they teach us in school.
Thank you.
annils92 3 years ago