Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    88

    Re: Cast DataTable to get its Update method?

    Actually… I apologise, it’d be a DataAdaptor you’d update…

    https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/updating-data-sources-with-dataadapters
  2. Replies
    3
    Views
    88

    Re: Cast DataTable to get its Update method?

    Why not just…

    _dataTable.UpDate

    ???

    I’ve never seen anything similar to your code before…
  3. VS 2010 Re: How to save data from 15 textboxes into table with only 3 fields

    Dim textBoxes(5)() = {New TextBox() {TextBox1, TextBox2, TextBox3},
    New TextBox() {TextBox4, TextBox5, TextBox6},
    New TextBox()...
  4. Replies
    4
    Views
    227

    Re: Rotate image of windbarb around tip point

    Ok. First, always format code when you post it in this forum


    ’ your code[/code]

    Will format as…

    [code]’ your code

    Secondly, you’ve posted code, and a brief description of your...
  5. Replies
    15
    Views
    553

    Re: Close all Forms except main Form

    Wouldn't MyBase.WndProc(m) be better placed at the end of the sub?



    Protected Overrides Sub WndProc(ByRef m As Windows.Forms.Message)
    If m.Msg = WM_MOUSEACTIVATE AndAlso m.Result...
  6. Replies
    15
    Views
    553

    Re: Close all Forms except main Form

    Const WM_MOUSEACTIVATE As Integer = &H15
    Const MA_ACTIVATEANDEAT As Integer = &H2
    Const MA_ACTIVATE As Integer = &H1
  7. Re: Manually adjusting column width in DataGridView requires two iterations

    Try wrapping your loading code with Dgv.SuspendLayout() and dgv.ResumeLayout()
  8. Re: Transparent Hotspots on PictureBox

    That's the simplest method...


    Private Sub pbMap_MouseClick(sender As Object, e As MouseEventArgs) Handles pbMap.MouseClick
    If New Rectangle(30, 30, 100, 10).Contains(e.Location) Then
    ...
  9. Re: [RESOLVED] Compensating for Day light savings time

    Your Function doesn’t return a value on all paths - you need to add Return False after the End If
  10. Re: Compensating for Day light savings time

    Yes. The page you referred to can show VB or C#. There’s a combo type control at the top right of the page for switching between languages…
  11. VS 2015 Re: What is the value when I delete the string in a DGV cell?

    If (DailyView.CurrentCell.Value <> "VL" OR DailyView.CurrentCell.Value <> "SL") Then
    MsgBox("Value input is not allowed." & vbCrLf & "Value deleted")
    End If
  12. VS 2015 Re: What is the value when I delete the string in a DGV cell?

    The default cell value is Nothing, but…, that changes if you enter a string, then delete the string. At that point the cell value is “”
  13. Replies
    8
    Views
    352

    Re: Find Upwards in text file.

    Easiest way to change that...


    Dim allMatches() As Match = Regex.Matches(input, pattern, RegexOptions.Singleline).Cast(Of Match).ToArray
  14. Replies
    8
    Views
    352

    Re: Find Upwards in text file.

    Dim allMatches() As Match = Regex.Matches(input, pattern, RegexOptions.Singleline)

    For x As Integer = allMatches.Count - 1 to 0 Step -1
    Dim regex As Regex = New Regex("id=""group.+?""")
    ...
  15. VS 2019 Re: Disable Scroll on ComboBox MouseOver

    Good solution. Does the ComboBox still work properly?
  16. VS 2019 Re: Disable Scroll on ComboBox MouseOver

    Possibly use the ComboBox MouseMove event in conjunction with your code for disabling MouseWheel handling, although you may be able to create a Message in the OnMouseWheel event that you’re using and...
  17. VS 2019 Re: Disable Scroll on ComboBox MouseOver

    You need to use some method of the ComboBox to set the focus back to the form or TableLayoutPanel or panel that is the parent of the ComboBox
  18. VS 2010 Re: Looking to make application font size same as system

    It was the only Font information I found in the SystemInformation properties

    https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.systeminformation?view=windowsdesktop-6.0
  19. VS 2010 Re: Looking to make application font size same as system

    Label1.Font = new Font(Me.Font.Name, SystemInformation.MenuFont.Size, Me.Font.Style, Me.Font.Unit)
  20. Replies
    15
    Views
    856

    Re: Customized? Select All

    If it really is select only those where the ComboBox has a valid value, then I answered your question in post #2
  21. Replies
    15
    Views
    856

    Re: Customized? Select All

    If you want one checkbox as a select all checkbox, why don’t you show us ALL of the relevant code?
    I’d set Enabled = false, and only enable the checkbox when ALL of your comboboxes had a valid...
  22. Replies
    15
    Views
    856

    Re: Customized? Select All

    You want to programmatically set a checkbox based on the selection of a ComboBox??? Use the ComboBox SelectedIndex_Changed event. If you use the CheckBoxes Checked_Changed event, of course your...
  23. Replies
    15
    Views
    856

    Re: Customized? Select All

    To answer your question… If you want to programmatically set your checkboxes checkedstate, then the CheckBox.Checked event is not the place to do that.’
  24. Replies
    15
    Views
    856

    Re: Customized? Select All

    Those array names could be the butt of someone’s jokes :D
  25. Replies
    15
    Views
    856

    Re: Customized? Select All

    Loop through you ComboBox array. If each item selectedindex > -1 then check your checkbox via your parallel checkbox array
  26. Thread: Multi-clicks.

    by .paul.
    Replies
    14
    Views
    763

    Re: Multi-clicks.

    Private ReadOnly _boxes() As PictureBox = { Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11, Box12, Box13 }

    Those PictureBoxes won't exist at that point in the application...
  27. Thread: Multi-clicks.

    by .paul.
    Replies
    14
    Views
    763

    Re: Multi-clicks.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    For Each tb As TextBox In Me.Controls.OfType(Of TextBox)()
    AddHandler tb.Click,...
  28. Thread: Multi-clicks.

    by .paul.
    Replies
    14
    Views
    763

    Re: Multi-clicks.

    Just use addhandler on form load to set up handlers


    Private Sub boxes_Click(sender As Object, e As EventArgs)
    Dim b As TextBox = DirectCast(sender, TextBox)

    End Sub

    One Sub can handle...
  29. Re: Can´t use two CreateParams functions ... Error BC30269

    I’m not certain exactly how to make it work as you’re intending, but I am pointing out to you that the way you had it when you thought it was working, was not doing what you thought it was…
  30. Re: Can´t use two CreateParams functions ... Error BC30269

    You’re missing my point…
  31. Re: Can´t use two CreateParams functions ... Error BC30269

    In your second snippet, you’re only returning cp if AeroEnabled
  32. Replies
    12
    Views
    527

    Re: Error: System.InvalidCastException

    Ok. I thought you were probably right, but it was worth asking either way…
  33. Replies
    12
    Views
    527

    Re: Error: System.InvalidCastException

    Is that right? You only have an expression and one value in your Ternary Operator?
  34. Re: [RESOLVED] What could cause a running application to just close down ?

    It’s set to True before setting the text within the TextChanged Event. Therefore when it instantly fires TextChanged, it ignores it, sets ignore back to False so it will fire properly from user...
  35. Re: [RESOLVED] What could cause a running application to just close down ?

    If you want to avoid recursion…


    Private ignore As Boolean = false

    Private Sub BoxChange ‘ etc
    If ignore Then
    ignore = False
    Return
    End If
  36. Thread: Vs 2022

    by .paul.
    Replies
    7
    Views
    330

    Re: Vs 2022

    Project-->Add Form (Windows Form)
  37. Re: What could cause a running application to just close down ?

    If txt >= "A" And txt <= "Z" Then'

    That’s an implicit conversion. It’s not testing greater than or equal (or lees than or equal) on the one character strings. It is testing on the Asc code for...
  38. Replies
    3
    Views
    350

    Re: Paint event nto being called - why?

    Does it need to be called async?

    Try…


    Dim wc As new Net.WebClient
    Dim response as string = wc.DownLoadString(url)
  39. Re: What could cause a running application to just close down ?

    Use Asc(txt), Asc(“A”) and Asc(“Z”)



    Txt is already uppercase
  40. Re: What could cause a running application to just close down ?

    Your error doesn’t appear to be in the code you’ve posted. Does your app contain any COM components or references? You’re making debugging more difficult than is necessary with all of this multiple...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width