Click here to Skip to main content
15,867,895 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 5:45
mveDave Kreskowiak3-Feb-21 5:45 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Gerry Schmitz3-Feb-21 6:28
mveGerry Schmitz3-Feb-21 6:28 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Richard MacCutchan3-Feb-21 6:45
mveRichard MacCutchan3-Feb-21 6:45 
QuestionAnyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Member 113774652-Feb-21 19:43
Member 113774652-Feb-21 19:43 
AnswerRe: Anyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Gerry Schmitz3-Feb-21 6:32
mveGerry Schmitz3-Feb-21 6:32 
QuestionTCPIP SOCKET DATA RECEIVE FROM INSTRUMENT Pin
cws_ap1-Feb-21 0:19
cws_ap1-Feb-21 0:19 
Question.NET Core Web API hosting docker Pin
johncodeproject15-Jan-21 16:25
johncodeproject15-Jan-21 16:25 
QuestionApply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 0:25
Interplain11-Jan-21 0: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 2:45
subeditorPete O'Hanlon11-Jan-21 2:45 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 3:00
Interplain11-Jan-21 3:00 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Gerry Schmitz11-Jan-21 5:05
mveGerry Schmitz11-Jan-21 5:05 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Richard Deeming11-Jan-21 22:14
mveRichard Deeming11-Jan-21 22:14 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain12-Jan-21 0:56
Interplain12-Jan-21 0:56 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Ralf Meier12-Jan-21 2:40
professionalRalf Meier12-Jan-21 2:40 
QuestionProblem with Calling builded exe from another form Pin
Member 149553323-Jan-21 0:38
Member 149553323-Jan-21 0:38 
AnswerRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov3-Jan-21 3:36
Victor Nijegorodov3-Jan-21 3:36 
GeneralRe: Problem with Calling builded exe from another form Pin
Member 149553326-Jan-21 9:38
Member 149553326-Jan-21 9:38 
GeneralRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov6-Jan-21 9:51
Victor Nijegorodov6-Jan-21 9:51 
GeneralRe: Problem with Calling builded exe from another form Pin
Richard MacCutchan6-Jan-21 22:52
mveRichard MacCutchan6-Jan-21 22:52 
QuestionHelp for a school Project Pin
Member 1502795822-Dec-20 4:48
Member 1502795822-Dec-20 4:48 
AnswerRe: Help for a school Project Pin
Ralf Meier26-Dec-20 23:13
professionalRalf Meier26-Dec-20 23:13 
QuestionHow can I setup connectionstring to a webroot dir Pin
Nguyễn Tuấn Anh 9216-Dec-20 18:22
Nguyễn Tuấn Anh 9216-Dec-20 18:22 
QuestionSpecification Pattern for validations Pin
TimWallace25-Nov-20 20:23
TimWallace25-Nov-20 20:23 
AnswerRe: Specification Pattern for validations Pin
Gerry Schmitz26-Nov-20 5:56
mveGerry Schmitz26-Nov-20 5:56 
GeneralRe: Specification Pattern for validations Pin
TimWallace27-Nov-20 15:07
TimWallace27-Nov-20 15: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.