Click here to Skip to main content
15,884,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Alex Dunlop25-Oct-20 7:00
Alex Dunlop25-Oct-20 7:00 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Richard MacCutchan25-Oct-20 7:13
mveRichard MacCutchan25-Oct-20 7:13 
AnswerRe: How to allow numbers and special characters in a textBox in C#? Pin
BillWoodruff25-Oct-20 21:58
professionalBillWoodruff25-Oct-20 21:58 
QuestionHi guys, currently making a guessing game and need some help with my code.. Pin
Member 1497438624-Oct-20 12:53
Member 1497438624-Oct-20 12:53 
AnswerRe: Hi guys, currently making a guessing game and need some help with my code.. Pin
BillWoodruff24-Oct-20 15:04
professionalBillWoodruff24-Oct-20 15:04 
GeneralMessage Closed Pin
22-Oct-20 21:58
Osman Bur22-Oct-20 21:58 
GeneralRe: Kayan Yazı Pin
CHill6022-Oct-20 22:09
mveCHill6022-Oct-20 22:09 
GeneralRe: Kayan Yazı Pin
OriginalGriff22-Oct-20 22:14
mveOriginalGriff22-Oct-20 22:14 
And?
What does it do that you didn't expect, or not do that you did?
What have you tried to do to find out why?
Are there any error messages, and if so, where and when? What did you do to make them happen?

This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.

And to be honest, even for student grade code, that's really very poor quality! Stop using default names for controls, use an enum instead of a string based mode, use a switch instead of if ... else if ... else if ... and think about what you are doing:
C#
if (mode == "SoSa")
{
   ...
}
else if (mode == "SaSo")
{
   ...
}

if (mode == "Asagi")
{
   ...
}
else if(mode == "Yukari")
{
   ...
}
What if it is none of them?
Shouldn't that be
C#
else if (mode == "Asagi")


Don't use the text of a button to determine what it does: use the Tag field instead - it can hold any type so a bool would be more appropriate.
Don't use string literals directly in code anyway: "DUR" and "DEVAM" should be constant values not inline literals, so if they change at a later date to - say - "Dur" and "Devam" they only need changing in one place.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionInconveniente con la función MesageBox en C# Pin
Hernán Camilo21-Oct-20 8:50
professionalHernán Camilo21-Oct-20 8:50 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan21-Oct-20 22:02
mveRichard MacCutchan21-Oct-20 22:02 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
jsc4222-Oct-20 23:28
professionaljsc4222-Oct-20 23:28 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan22-Oct-20 23:54
mveRichard MacCutchan22-Oct-20 23:54 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
OriginalGriff23-Oct-20 1:13
mveOriginalGriff23-Oct-20 1:13 
QuestionApertura de Archivos en C# ASP.Net interactuando con base de datos SQL Server Pin
Hernán Camilo21-Oct-20 8:50
professionalHernán Camilo21-Oct-20 8:50 
AnswerRe: Apertura de Archivos en C# ASP.Net interactuando con base de datos SQL Server Pin
BillWoodruff21-Oct-20 15:30
professionalBillWoodruff21-Oct-20 15:30 
QuestionGhost click mouse Pin
cloude8317-Oct-20 1:54
cloude8317-Oct-20 1:54 
AnswerRe: Ghost click mouse Pin
OriginalGriff17-Oct-20 2:16
mveOriginalGriff17-Oct-20 2:16 
GeneralRe: Ghost click mouse Pin
cloude8317-Oct-20 11:01
cloude8317-Oct-20 11:01 
AnswerRe: Ghost click mouse Pin
jsc4219-Oct-20 23:03
professionaljsc4219-Oct-20 23:03 
GeneralRe: Ghost click mouse Pin
trønderen20-Oct-20 5:54
trønderen20-Oct-20 5:54 
Questionhi im a bit stuck i followed this tut on youtube and its just not working can anyone help me plz i get error Pin
Marcus Riggs14-Oct-20 12:32
Marcus Riggs14-Oct-20 12:32 
AnswerRe: hi im a bit stuck i followed this tut on youtube and its just not working can anyone help me plz i get error Pin
OriginalGriff14-Oct-20 20:23
mveOriginalGriff14-Oct-20 20:23 
QuestionRe: hi im a bit stuck i followed this tut on youtube and its just not working can anyone help me plz i get error Pin
ZurdoDev15-Oct-20 1:18
professionalZurdoDev15-Oct-20 1:18 
Questionwhat is better way to handle audit data in sequel server? Pin
ronak752113-Oct-20 2:54
ronak752113-Oct-20 2:54 
AnswerRe: what is better way to handle audit data in sequel server? Pin
OriginalGriff13-Oct-20 2:57
mveOriginalGriff13-Oct-20 2:57 

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.