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

.NET (Core and Framework)

 
Question.NET Core Web API hosting docker Pin
johncodeproject15-Jan-21 17:25
johncodeproject15-Jan-21 17:25 
QuestionApply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 1:25
Interplain11-Jan-21 1:25 
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
Interplain11-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
Interplain12-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 
this could also be your Solution - integrate the functionality into your own customized Textbox :
VB
Public Class NumericTextbox
    Inherits TextBox

    Private Sub NumericTextBox_KeyPress(sender As Object, e As KeyPressEventArgs) Handles Me.KeyPress
        Dim keyChar = e.KeyChar
        If Char.IsControl(keyChar) Then
            'Allow all control characters.
        ElseIf Char.IsDigit(keyChar) OrElse keyChar = "."c Then
            Dim box As TextBox = DirectCast(sender, TextBox)
            Dim text As String = box.Text
            Dim selectionStart As Integer = box.SelectionStart
            Dim selectionLength As Integer = box.SelectionLength
            text = text.Substring(0, selectionStart) & keyChar & text.Substring(selectionStart + selectionLength)

            Dim valueInt32 As Integer
            Dim valueDouble As Double

            If Integer.TryParse(text, valueInt32) AndAlso valueInt32 > 999 Then
                ' Reject an integer that is longer than 3 digits.
                e.Handled = True
            ElseIf Double.TryParse(text, valueDouble) 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

End Class

QuestionProblem with Calling builded exe from another form Pin
Member 149553323-Jan-21 1:38
Member 149553323-Jan-21 1:38 
AnswerRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov3-Jan-21 4:36
Victor Nijegorodov3-Jan-21 4:36 
GeneralRe: Problem with Calling builded exe from another form Pin
Member 149553326-Jan-21 10:38
Member 149553326-Jan-21 10:38 
GeneralRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov6-Jan-21 10:51
Victor 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
Member 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
Nguyễn Tuấn Anh 9216-Dec-20 19:22 
QuestionSpecification Pattern for validations Pin
TimWallace25-Nov-20 21:23
TimWallace25-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
TimWallace27-Nov-20 16:07 
General.Net 5 Performance Improvements Pin
GerVenson24-Nov-20 4:56
professionalGerVenson24-Nov-20 4:56 
GeneralRe: .Net 5 Performance Improvements Pin
Gerry Schmitz27-Nov-20 6:56
mveGerry Schmitz27-Nov-20 6:56 
QuestionInterested in a VB.Net Winforms Master/Detail DataGridView with RichTextBox Cell/Column? Pin
Jo_vb.net15-Nov-20 12:36
Jo_vb.net15-Nov-20 12:36 
QuestionMaster/Detail GridView - issue with the some keys not working Pin
Jo_vb.net11-Nov-20 8:09
Jo_vb.net11-Nov-20 8:09 
AnswerRe: Master/Detail GridView - issue with the some keys not working Pin
Gerry Schmitz11-Nov-20 12:34
mveGerry Schmitz11-Nov-20 12:34 
GeneralRe: Master/Detail GridView - issue with the some keys not working Pin
Jo_vb.net12-Nov-20 0:59
Jo_vb.net12-Nov-20 0:59 

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.