dcsimg

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.39 seconds.

  1. Replies
    3
    Views
    49

    Re: Threads and shared code?

    Sounds like a static approach could be useful in your case. That does involve shared objects, but we do need to see your code...
  2. VS 2012 Re: Google Charts link broken in VB Application

    You're using a webbrowser control then?
  3. VS 2012 Re: Google Charts link broken in VB Application

    What type of app is it? A desktop app, an asp web app?
  4. VS 2012 Re: Google Charts link broken in VB Application

    Is this a VB.Net winforms question? It doesn't look so...
    You'll get better answers in the appropriate forum
  5. Replies
    10
    Views
    363

    VS 2017 Re: Create a timeline

    This is the sort of design i tried to suggest... I kept it as simple as possible in this example.

    174631

    174645
  6. Replies
    12
    Views
    302

    VS 2019 Re: Get regex from web source

    That is very relevant. I like my code to continue working once i've written it...
  7. Replies
    12
    Views
    302

    VS 2019 Re: Get regex from web source

    Html is not reliably consistent. What works today might not work tomorrow or next week...
  8. Replies
    12
    Views
    302

    VS 2019 Re: Get regex from web source

    Html is not reliably consistent. What works today might not work tomorrow or next week...
  9. Replies
    7
    Views
    214

    Re: Investigating Drag and Drop

    You could add a const in each controls code such as className = “ShaggysControls” After verifying they are controls, verify they’re your controls...
  10. Replies
    10
    Views
    363

    VS 2017 Re: Create a timeline

    It’s the panel within the scrollable panel that would host the blocks. It’s this inner panel that moves when the outer panel scrollbar is clicked. I’d give the outer panel a fixed width and height,...
  11. Replies
    10
    Views
    363

    VS 2017 Re: Create a timeline

    You can do something along those lines, with a panel within a scrollable panel. You can set up the VScroll so that it scrolls the height of one of your blocks (one row) per smallchange, and three of...
  12. Replies
    5
    Views
    169

    VS 2019 Re: Adding array values for a total

    The Sum function is just one of many LINQ functions. You could select a specific subset of your books and get a sum of your values on that subset.
  13. Replies
    7
    Views
    214

    Re: Investigating Drag and Drop

    Can’t you just use LINQ .All trycasting each obj?

    But I can’t see a case where you’re likely to allow dropping anything but your extended controls
  14. Replies
    5
    Views
    169

    VS 2019 Re: Adding array values for a total

    Try this. As mentioned previously, it’s LINQ...


    Label18.Text = b.Sum(Function(book) book.value)
  15. Replies
    10
    Views
    363

    VS 2017 Re: Create a timeline

    If you want 'pages' each containing nine blocks, use an extended panel for a block, a tabcontrol for a varying number of pages (TabPages), and optionally a TableLayoutPanel or a FlowLayoutPanel (per...
  16. Replies
    12
    Views
    302

    VS 2019 Re: Get regex from web source

    If you really do have an xml file and not an html file as I suspect, there are loads of examples of how to read an xml file on google
  17. Replies
    12
    Views
    302

    VS 2019 Re: Get regex from web source

    Here's an example for Using regex to parse an Html page source

    https://www.dotnetperls.com/regex-vbnet

    Parsing Html is not the most reliable. Source code can and probably will change over time,...
  18. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    Try pasting this exact code...


    Process.Start("mailto:somene@domain.com?subject=Hello there&body=The message's first paragraph.%0A%0AaSecond")
  19. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    I was referring to the 2nd highlighted ampersand
  20. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    there&body=The message's first paragraph.&%0A%0AaSecond

    Try removing the ampersand
  21. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    I just noticed in your original question, you use %0A%0 which was missing the second A. Try %0A%0A for two new lines
  22. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    I wasn’t able to test it on my workstation, but on my tablet, inserting %0A where I wanted a new line worked. That’s %0A (zero)
  23. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    You just insert it in the string...


    Process.Start("mailto:address@domain.com?subject=Hello&body=first paragraph/nsecond paragraph")
  24. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    Try inserting /n in your string for newlines
  25. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    Or...


    Process.Start("mailto:address@domain.com?subject=Hello&body=first paragraph" & environment.newline & "second paragraph")
  26. Replies
    18
    Views
    303

    VS 2013 Re: Mailto paragraphs

    Try using html formatting...


    Process.Start("mailto:address@domain.com?subject=Hello&body=<html><p>first paragraph</p><p>second paragraph</p></html>")
  27. Re: Issue with ToolStripStatusLabel disappearing

    Are there no Dock and Anchor settings for ToolStripStatusLabels? Seems setting Dock to fill would solve it...
  28. Re: ddrag a selected line from a multiline textbox to drop in another textbox

    And if you’d used the other code as I showed you, you would see the line of text below the mousepointer as you drag it... :D
  29. VS 2015 Re: VB.net WinForms Control Validation not working

    You need to look in the CancelEventArgs...

    174465

    Setting e.Cancel = True if an invalid value is entered won't allow the user to leave the control until a valid value is entered
  30. Replies
    14
    Views
    264

    VS 2015 Re: Binding data from DataGridView To Textbox

    Using part of paulg4ije's code example



    Private Sub Connect_DGV()

    Dim myConn As New SQLiteConnection(GsConString)
    myConn.Open()

    Dim cmd As New SQLiteCommand With {
  31. Replies
    14
    Views
    264

    VS 2015 Re: Binding data from DataGridView To Textbox

    Just use the databindings code I showed you, using the same datasource as the dgv, with each text box binding having the appropriate field name
  32. Replies
    14
    Views
    264

    VS 2015 Re: Binding data from DataGridView To Textbox

    To pass a bindingsource to a form (when you open the form)...


    Public Class Form2
    Private bs as BindingSource

    Public Sub New(source as BindingSource)
    Me.bs = source
    End...
  33. Replies
    14
    Views
    264

    VS 2015 Re: Binding data from DataGridView To Textbox

    It's easy. In my example you just need to change [bindingsource] and "fieldname"


    TextBox1.DataBindings.Add("Text", [bindingsource], "fieldname")
  34. Re: Option Strict On does not allow "Narrowing" error

    :thumb:
  35. Re: Option Strict On does not allow "Narrowing" error

    It's similar to adding a button click handler with addhandler


    addhandler Button1.Click, addressof Button1_Click


    Private Sub Button1_Click(Sender as Object, e as EventArgs)

    End Sub
  36. Re: Option Strict On does not allow "Narrowing" error

    No...

    DesktopIconSize.DropDownItems.Add("16 x 16 Size Icons", DesktopIconSize.Image,
    AddressOf SetIconSize16x16)

    The onClick parameter expects a name of a sub. If you doubleclick on a...
  37. Replies
    14
    Views
    2,108

    Re: Textbox numeric type and paste only

    @Karen... Looks familiar. I remember that from somewhere. Shouldn't you impose the maxlength when keypressing or pasting?
  38. Re: Option Strict On does not allow "Narrowing" error

    If your imageSize variable isn’t an Integer, a Double or a Single would cause a narrowing error
  39. Re: Option Strict On does not allow "Narrowing" error

    If that doesn’t solve it, it’d be helpful if you tell us which line the debugger breaks on
  40. Re: Option Strict On does not allow "Narrowing" error

    The error is on imageSize. You’re using it both as an Integer and as a Size.
    One of them is wrong. Probably the Integer...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width