Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 2.33 seconds.

  1. VS 2015 Re: WebClient.DownloadString(URL) returns Error 403 - Forbidden

    I got Access Denied here in England
  2. Replies
    17
    Views
    524

    Re: [RESOLVED] Problem with Color.FromName

    Color choice in your 70's BASIC would be easy. These days choosing knowncolors is more complicated. I'd still use my extended combobox. It avoids user error. Allowing text entry in a textbox for...
  3. VS 2019 Re: [RESOLVED] Select file from listbox show contents in Textbox

    Are you going to be editing those files and subsequently saving them? What if the listbox selected item changes?
    When you load the TextBox...


    TextBox1.Text = IO.File... ‘etc
    TextBox1.Tag =...
  4. Replies
    3
    Views
    149

    Re: play a tone sound

    Here's how to use an API function, and a frequencies chart...



    Public Class Form1

    Declare Function NtBeep Lib "kernel32.dll" Alias "Beep" (ByVal FreqHz As Integer, ByVal DurationMs As...
  5. VS 2019 Re: Select file from listbox show contents in Textbox

    Dim path as string = IO.Path.Combine(folderPath, ListBox1.Text)
    if IO.File.Exists(path) Then
    TextBox1.Text = IO.File.ReadAllText(path)
    Else
    MsgBox(path)
    End If
  6. VS 2019 Re: View files in folder based on button

    Check post #3 and post #4

    You just need to add in my code, then open EntryLogs as an instance as I showed in post #3
  7. VS 2019 Re: View files in folder based on button

    Actually, I missed a line. The first line in sub new should be...


    InitializeComponent
  8. VS 2019 Re: View files in folder based on button

    It’ll be something like this...


    Public Class Form2

    Public folderPath As String

    Public Sub New(ByVal folderPath As String)
    Me.folderPath = folderPath
    End Sub
  9. VS 2019 Re: View files in folder based on button

    You’d need to modify the constructor in Form2, so you could pass in the folder path when the form is created. Show me your Form2 code and I can explain how to modify it...
  10. Replies
    6
    Views
    309

    Re: Handles Clause on WithEvent

    Private WithEvents Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ???

    You don't declare a sub withevents. You declare a variable withevents. For example...


    Public...
  11. Replies
    17
    Views
    524

    Re: [RESOLVED] Problem with Color.FromName

    If you wanted to give a color preview for your color selection process, you could use an extended combobox...



    Public Class colorComboBox
    Inherits ComboBox

    Public Sub New()
    ...
  12. Replies
    17
    Views
    524

    Re: [RESOLVED] Problem with Color.FromName

    As you're using TextBoxes for inputting color names, I'd recommend using AutoComplete to avoid many errors. Here's an example...



    Public Class Form1

    Private Sub Form1_Load(ByVal sender...
  13. Replies
    17
    Views
    524

    Re: [RESOLVED] Problem with Color.FromName

    If TextBox1.Text = ‘red’ this is how to change it to ‘Red’
    If it already is ‘Red’ and not ‘red’, no harm done...


    chk(0) = StrConv(TextBox1.Text, vbProperCase)
    chk(1) = StrConv(TextBox2.Text,...
  14. Replies
    17
    Views
    524

    Re: [RESOLVED] Problem with Color.FromName

    Why declare colours(2) and chk(2)???
    You’re only using 2 elements in both. You know arrays are zero based, but you need to declare arrays with the Upperbound and not the Length...

    I.e....
  15. Replies
    17
    Views
    524

    Re: Problem with Color.FromName

    You’re doing it wrong...

    Colours(0) = Color.FroName(TextBox1.Text)

    You said yourself in an earlier post that that doesn’t work, so why would it work now?
    You’re supposed to be testing if a...
  16. Replies
    11
    Views
    385

    Re: Why does my screen blank ?

    Even DrawLine, for multiple lines should be completed in one execution of the Paint Event...


    Private Sub Me_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles...
  17. Replies
    11
    Views
    385

    Re: Why does my screen blank ?

    Not CreateGraphics. In the Paint Event you’re using DrawLine. There is an alternative DrawLines, which draws multiple lines...

    They’re not visible because all you’re seeing is the last line. Every...
  18. Replies
    11
    Views
    385

    Re: Why does my screen blank ?

    Why not use [graphics].DrawLines, and pass in the whole cords array?
  19. Replies
    11
    Views
    385

    Re: Why does my screen blank ?

    You're only passing one point at a time...


    Private Sub MakeDrawing()
    Dim back, ink As Color
    Dim memo As Color = Me.BackColor
    Try
    ink = Color.FromName(TextBox2.Text)
    ...
  20. Thread: Update Csv file

    by .paul.
    Replies
    2
    Views
    169

    Re: Update Csv file

    Try this...


    dim lines() as string = io.file.readalllines("csv.txt")
    for x as integer = 0 to lines.getupperbound(0)
    if lines(x).contains(Id) then
    Dim fields() as string =...
  21. Replies
    27
    Views
    503

    VS 2015 Re: Calculations not calculating? VBS 2015

    It's an old habit, but it works for me...
  22. Replies
    27
    Views
    503

    VS 2015 Re: Calculations not calculating? VBS 2015

    BTW...

    CDec(txtNights.Text)

    is not the best casting converter for text entered in a TextBox, where the user might type anything. Any invalid text causes a runtime error...
  23. Replies
    27
    Views
    503

    VS 2015 Re: Calculations not calculating? VBS 2015

    This is the simplest way to debug...


    Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
    'Declare variables for the calculations.
    Dim...
  24. Replies
    3
    Views
    699

    Re: Asp.net webforms listbox

    Apparently, listboxes don't work the same in ios. Instead of displaying the list onscreen, clicking the listbox brings up a scrollable selecter at the bottom of the screen. I switched to...
  25. VS 2019 Re: Trying to learn how to work with csv, listbox and textbox in vb.net

    That works... :thumb:
  26. VS 2019 Re: Trying to learn how to work with csv, listbox and textbox in vb.net

    Wouldn't it be an issue where binding two bindingsources to the datatable, then setting the filter on one, would filter both bindingsources, resulting in no rows in both?
  27. Replies
    23
    Views
    792

    Re: Why is my Label moving ?

    It'd be better to convert all of your images to the same DPI, then resize to the actual sizes your need. You can do that in an image editor before adding them to your app.
  28. Replies
    2
    Views
    179

    VS 2019 Re: Required support to code a application

    For the QR Codes...

    https://social.technet.microsoft.com/wiki/contents/articles/34581.vb-net-qr-code-creator.aspx
  29. Re: transparent form visible controls accessible desktop shortcuts

    Set your form backcolor to magenta, then set your form transparency key also to magenta...
  30. Replies
    23
    Views
    792

    Re: Why is my Label moving ?

    Simples. Translate transform to the centre of your image.
    RotateTransform for hours. Draw your hour hand.
    ResetTransform.
    Translate transform to the centre of your image.
    RotateTransform for...
  31. Replies
    23
    Views
    792

    Re: Why is my Label moving ?

    Pictureboxes can't be rotated. The image within the picurebox can be rotated though...
  32. Replies
    23
    Views
    792

    Re: Why is my Label moving ?

    Analog clocks are fun to program, once you understand the zOrder of the components clearly...

    http://www.scproject.biz/itc.php
  33. Replies
    4
    Views
    269

    VS 2019 Re: Visual Basic Net, Printing Form

    Here's my multi-page dgv printing code...

    http://www.scproject.biz/DataGridView%20Printing.php
  34. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    I gave you a fully working example, as specified in your latest request. A console application. No windows, no messageboxes, just a console window. What part of 'see post #44' is difficult to...
  35. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    I gave you code for that problem in post #44 and advice in post #45
  36. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    Don't forget to mark your thread resolved, and thank wes4dbt for the subset code i used...
  37. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    I'm sure you can figure out how to prompt the user for target number instead of having it hardcoded...
  38. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    Try this...



    Module Module1

    Sub Main()
    Console.WriteLine("Enter your array of numbers. Ex. 1,2,3")
    Dim inputstring As String = Console.ReadLine
  39. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    That's not the question you asked :D
  40. Replies
    56
    Views
    1,776

    VS 2019 Re: All possible combinations in an integer array

    You want the sum of each of all possible combinations of an array full of numbers, if I understand you correctly at last?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width