Click here to Skip to main content
14,742,808 members
Home » Discussions » C#
   

C#

 
AnswerRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff27-Oct-20 0:59
mveBillWoodruff27-Oct-20 0:59 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
harold aptroot27-Oct-20 1:45
Memberharold aptroot27-Oct-20 1:45 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff27-Oct-20 6:46
mveBillWoodruff27-Oct-20 6:46 
QuestionHow to allow numbers and special characters in a textBox in C#? Pin
Alex Dunlop25-Oct-20 6:51
MemberAlex Dunlop25-Oct-20 6:51 
AnswerRe: How to allow numbers and special characters in a textBox in C#? Pin
Richard MacCutchan25-Oct-20 7:19
mveRichard MacCutchan25-Oct-20 7:19 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Alex Dunlop25-Oct-20 8:00
MemberAlex Dunlop25-Oct-20 8:00 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Richard MacCutchan25-Oct-20 8:13
mveRichard MacCutchan25-Oct-20 8:13 
AnswerRe: How to allow numbers and special characters in a textBox in C#? Pin
BillWoodruff25-Oct-20 22:58
mveBillWoodruff25-Oct-20 22:58 
for cases where you must handle entry of groups of characters that do not map to the many
Is---- methods provided by Char, you may need to test if the char is in a specific group of characters:
private string legalChars = "()+-*/";
        
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
    char c = e.KeyChar;

    e.Handled = !
    (
        char.IsDigit(c)
        || legalChars.Contains(c)
    );
}

«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

QuestionHi guys, currently making a guessing game and need some help with my code.. Pin
Member 1497438624-Oct-20 13:53
MemberMember 1497438624-Oct-20 13:53 
AnswerRe: Hi guys, currently making a guessing game and need some help with my code.. Pin
BillWoodruff24-Oct-20 16:04
mveBillWoodruff24-Oct-20 16:04 
GeneralRe: Kayan Yazı Pin
CHill6022-Oct-20 23:09
mveCHill6022-Oct-20 23:09 
GeneralRe: Kayan Yazı Pin
OriginalGriff22-Oct-20 23:14
mveOriginalGriff22-Oct-20 23:14 
QuestionInconveniente con la función MesageBox en C# Pin
Hernán Camilo21-Oct-20 9:50
professionalHernán Camilo21-Oct-20 9:50 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan21-Oct-20 23:02
mveRichard MacCutchan21-Oct-20 23:02 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
jsc4223-Oct-20 0:28
professionaljsc4223-Oct-20 0:28 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan23-Oct-20 0:54
mveRichard MacCutchan23-Oct-20 0:54 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
OriginalGriff23-Oct-20 2:13
mveOriginalGriff23-Oct-20 2:13 
QuestionApertura de Archivos en C# ASP.Net interactuando con base de datos SQL Server Pin
Hernán Camilo21-Oct-20 9:50
professionalHernán Camilo21-Oct-20 9:50 
AnswerRe: Apertura de Archivos en C# ASP.Net interactuando con base de datos SQL Server Pin
BillWoodruff21-Oct-20 16:30
mveBillWoodruff21-Oct-20 16:30 
QuestionGhost click mouse Pin
cloude8317-Oct-20 2:54
Membercloude8317-Oct-20 2:54 
AnswerRe: Ghost click mouse Pin
OriginalGriff17-Oct-20 3:16
mveOriginalGriff17-Oct-20 3:16 
GeneralRe: Ghost click mouse Pin
cloude8317-Oct-20 12:01
Membercloude8317-Oct-20 12:01 
AnswerRe: Ghost click mouse Pin
jsc4220-Oct-20 0:03
professionaljsc4220-Oct-20 0:03 
GeneralRe: Ghost click mouse Pin
trønderen20-Oct-20 6:54
Membertrønderen20-Oct-20 6: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 13:32
MemberMarcus Riggs14-Oct-20 13:32 

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.