Click here to Skip to main content
15,498,398 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Dave Kreskowiak3-Feb-21 6:45
mveDave Kreskowiak3-Feb-21 6:45 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Gerry Schmitz3-Feb-21 7:28
mveGerry Schmitz3-Feb-21 7:28 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Richard MacCutchan3-Feb-21 7:45
mveRichard MacCutchan3-Feb-21 7:45 
QuestionAnyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Member 113774652-Feb-21 20:43
MemberMember 113774652-Feb-21 20:43 
AnswerRe: Anyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Gerry Schmitz3-Feb-21 7:32
mveGerry Schmitz3-Feb-21 7:32 
QuestionTCPIP SOCKET DATA RECEIVE FROM INSTRUMENT Pin
cws_ap1-Feb-21 1:19
Membercws_ap1-Feb-21 1:19 
Question.NET Core Web API hosting docker Pin
johncodeproject15-Jan-21 17:25
Memberjohncodeproject15-Jan-21 17:25 
QuestionApply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 1:25
MemberInterplain11-Jan-21 1:25 
Hello, I have a request for help with how to format a text box with numbers with 3 digits with two decimal places. but will not advance until a decimal point is placed, this works with one box. but i would like to implement this on 14 text boxes in a group box. so i don't have to duplicate the code 14 times.
Private Sub RollTemp_BOTTextBox_KeyPress(sender As Object, e As KeyPressEventArgs) Handles RollTemp_BOTTextBox.KeyPress
        Dim keyChar = e.KeyChar
        If Char.IsControl(keyChar) Then
            'Allow all control characters.
        ElseIf Char.IsDigit(keyChar) OrElse keyChar = "."c Then
            Dim text = Me.RollTemp_BOTTextBox.Text
            Dim selectionStart = Me.RollTemp_BOTTextBox.SelectionStart
            Dim selectionLength = Me.RollTemp_BOTTextBox.SelectionLength
            text = text.Substring(0, selectionStart) & keyChar & text.Substring(selectionStart + selectionLength)
            If Integer.TryParse(text, New Integer) AndAlso text.Length > 3 Then
                'Reject an integer that is longer than 16 digits.
                e.Handled = True
            ElseIf Double.TryParse(text, New Double) AndAlso text.IndexOf("."c) < text.Length - 4 Then
                'Reject a real number with two many decimal places.
                e.Handled = True
            End If
        Else
            'Reject all other characters.
            e.Handled = True
        End If
    End Sub


The Text Box will have like 123.67 in it. But if you enter 123 it doesn't let you put another number in and advance until you put the (.) in and then allows you to put another number in.

Thank you
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Pete O'Hanlon11-Jan-21 3:45
mvaPete O'Hanlon11-Jan-21 3:45 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 4:00
MemberInterplain11-Jan-21 4:00 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Gerry Schmitz11-Jan-21 6:05
mveGerry Schmitz11-Jan-21 6:05 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Richard Deeming11-Jan-21 23:14
mveRichard Deeming11-Jan-21 23:14 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain12-Jan-21 1:56
MemberInterplain12-Jan-21 1:56 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Ralf Meier12-Jan-21 3:40
mveRalf Meier12-Jan-21 3:40 
QuestionProblem with Calling builded exe from another form Pin
Member 149553323-Jan-21 1:38
MemberMember 149553323-Jan-21 1:38 
AnswerRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov3-Jan-21 4:36
MemberVictor Nijegorodov3-Jan-21 4:36 
GeneralRe: Problem with Calling builded exe from another form Pin
Member 149553326-Jan-21 10:38
MemberMember 149553326-Jan-21 10:38 
GeneralRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov6-Jan-21 10:51
MemberVictor Nijegorodov6-Jan-21 10:51 
GeneralRe: Problem with Calling builded exe from another form Pin
Richard MacCutchan6-Jan-21 23:52
mveRichard MacCutchan6-Jan-21 23:52 
QuestionHelp for a school Project Pin
Member 1502795822-Dec-20 5:48
MemberMember 1502795822-Dec-20 5:48 
AnswerRe: Help for a school Project Pin
Ralf Meier27-Dec-20 0:13
mveRalf Meier27-Dec-20 0:13 
QuestionHow can I setup connectionstring to a webroot dir Pin
Nguyễn Tuấn Anh 9216-Dec-20 19:22
MemberNguyễn Tuấn Anh 9216-Dec-20 19:22 
QuestionSpecification Pattern for validations Pin
TimWallace25-Nov-20 21:23
MemberTimWallace25-Nov-20 21:23 
AnswerRe: Specification Pattern for validations Pin
Gerry Schmitz26-Nov-20 6:56
mveGerry Schmitz26-Nov-20 6:56 
GeneralRe: Specification Pattern for validations Pin
TimWallace27-Nov-20 16:07
MemberTimWallace27-Nov-20 16:07 

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.