dcsimg

Search:

Type: Posts; User: paulg4ije

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: How to make my application show message if user try to run second instance of it?

    That's because you keep adding/modifying your original post!

    As stated on the page I linked to:



    Go to Project > Properties > View Application Events. You need this in your...
  2. Re: How to make my application show message if user try to run second instance of it?

    Never had to do this, but it took 2 seconds on Google to find this:
    ...
  3. Re: Print- windows forms- multiple choice templates

    Glad you've got something working. For future reference, a combobox does not have a "status" property. The text property is probably what you were looking for. You can extend the code I posted like...
  4. Re: Print- windows forms- multiple choice templates

    Why would you set three strings to the same value?

    Dim Approved As String = ComboBoxStatus.SelectedItem.ToString()
    Dim OnHold As String = ComboBoxStatus.SelectedItem.ToString()
    Dim Refused As...
  5. VS 2017 Re: [RESOLVED] Remove a picturebox and delete the image file it contains

    Very neat. Thanks John.
  6. VS 2017 Re: Remove a picturebox and delete the image file it contains

    Ah, yes. That makes sense now. Thanks Paul!


    EDIT: Just tested the modified code and it works perfectly. Thanks again.
  7. VS 2017 [RESOLVED] Remove a picturebox and delete the image file it contains

    I have a form where small jpeg images are displayed on a FlowLayoutPanel in programmatically generated Pictureboxes. I can click on an image to mark it for deletion - clicking on an image draws a big...
  8. Thread: IMC Program

    by paulg4ije
    Replies
    4
    Views
    299

    Re: IMC Program

    And no mention of Option Strict either ;-)

    Who the heck are you and what have you done with the real jmcilhinney?
  9. Re: How to add a property to a numericupdown control?

    Why not just use the tag property to hold your formatted string?
  10. VS 2017 Re: MCI Commands - Updating VB6 code to VB.NET

    Have you converted all the data types in your API declarations? For example, a long in VB6 should probably be an integer in .net; an integer in VB6 should probably be a short in .net. I'm not saying...
  11. Replies
    9
    Views
    404

    VS 2019 Re: Label text alignment

    As above. Works perfectly. If the 9 standard positions are not quite what you want then you can use the padding property for fine adjustment.
  12. Re: vb.net equivalent of GetRidofHTML

    What are you trying to do? You pass a string value to the function and then return it as an integer. You don't need the parentheses (brackets) after the Str that you return but that's probably the...
  13. VS 2019 Re: Deployment of a simple program with database for standalone use

    Populate some textboxes from one record. The ID of the record is given in GiQSOid (as it was in the previous post).

    Using myConn As New SQLiteConnection(GsConString)

    ...
  14. VS 2019 Re: Deployment of a simple program with database for standalone use

    Update a table using parameters (use the same import as previous post)

    Using connection As New SQLiteConnection("Data Source=c:\mydatabase.db3;version=3")

    Dim cmd As String...
  15. VS 2019 Re: Deployment of a simple program with database for standalone use

    This is how I connect a DataGridView to a table:


    Imports System.Data.SQLite

    Private Sub Connect_DGV()

    Dim myConn As New SQLiteConnection("Data...
  16. VS 2017 Re: Check for blank/empty cells in DataGridView Column

    As I understand it, you want to check if ANY row has a null/empty value in a particular cell. Say you have that condition on the first row: your original code would detect that and set thereISblanks...
  17. Replies
    7
    Views
    353

    Re: ADODB reads results in a strange order

    Add Order By to your SQL. Use the Primary Key or Date or whichever field you like.
  18. VS 2019 Re: Deployment of a simple program with database for standalone use

    My vote goes to SQLite too. You can use SQLiteStudio to set up your tables. The database itself is just one file (usually with a .db3 extension) and then there are a couple of dll's you need to...
  19. Replies
    6
    Views
    458

    VS 2017 Re: Confirm a changed password

    Ouch! That code is so sharp I got a paper cut just reading it :-)
  20. Replies
    2
    Views
    328

    VS 2017 Re: Guitar Pedal in Vb.NET

    Simple clipped distortion would not be too difficult but anything more sophisticated will require DSP techniques. The first step is to capture some audio and I suggest you look at the NAudio library.
  21. Replies
    26
    Views
    944

    Re: Double forms.

    So, you have a form called frmMain.vb. If you use something like frmMain.Show then you are using the default instance. Instead you should use:


    Dim fMain as new frmMain
    fMain.show

    ... but...
  22. Replies
    7
    Views
    307

    Re: file path removal

    But without the semi-colons (which would be used in C# but not VB).
  23. Re: Is it possible to prevent another keypress event after one key is already pressed

    Without more information, I would wonder why your program can't cope with fast typing. Even a pro typist is very slow compared to the speed of your CPU. Think how many instructions can be executed in...
  24. Re: VS 2010 Cant connect to sql string connection what is wrong?

    Do you really have a folder called ProgramFiles? Normally it is called Program Files with a space between the words. It is a terrible location to read/write data due to security restrictions....
  25. Re: How to convert following C# code to vb.net code

    What's the worst that can happen :D

    This is what Instant VB came up with:


    Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Task.Run(Sub()...
  26. Re: Need help in converting this source code to visual basics please.

    So little of that can be "converted" to VB.NET that you might as well start from scratch. This project of mine might help you along the way:

    168183
  27. Replies
    3
    Views
    796

    VS 2010 Re: How To Open Printer Queue Panel Window

    A quick Google search found this:

    https://social.msdn.microsoft.com/Forums/en-US/58dc6f96-d517-4f0c-a964-4e83964ca68d/how-to-check-printer-spool?forum=Vsexpressvb
  28. Re: SQL SELECT with multiple condition (SQL Server 2017)

    You seem to be missing a close bracket.
  29. Re: StopWatch Class Error - Object Reference NOT set - SW was Nothing

    Off the top of my head, I think the second option might need to be:


    yourListBox.Items.AddRange(timeList.ToArray)
  30. Replies
    13
    Views
    597

    Re: Replace code by TextBox1

    You just need to concatenate the strings - something like this:


    Animate = "WELCOME " & txtName.text & " nice to see you again!"

    But of course that would not work in the form load event as...
  31. Replies
    4
    Views
    251

    Re: Label image size.

    Why not use a picturebox and then draw your text in the picturebox paint event:


    Private Sub PictureBox1_Paint(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint
    ...
  32. Replies
    7
    Views
    427

    Re: 2010 express & VB6 vs 2017

    I recently "upgraded" from VB2010 Express to Visual Studio 2017 Community Edition and found the change to be quite painless. All my projects created in 2010 open fine in 2017 and there is no...
  33. VS 2015 Re: How To Record Video Using WebCam in Vb.net

    The Aforge.NET framework is one way to go. Very easy to use in VB.NET:

    http://www.aforgenet.com/framework/samples/video.html
  34. VS 2015 Re: Split String keeping single quotes and comma

    Or:

    Dim MyString As String = "'Text1', 'Text,2', 'The one, or the other', 'The end'"
    Dim MySplit() As String = Regex.Split(MyString, "',")
  35. VS 2015 Re: Split String keeping single quotes and comma

    Can you use a different delimiter? The "pipe" character (|) is quite a good one as it is not likely to appear in normal text.


    Dim MyString as String = "'Text1'| 'Text,2'| 'The one, or the...
  36. Replies
    8
    Views
    505

    Re: numericUpDown boxes wont subtract

    The subtraction works fine but you need to put your code in a ValueChanged event if you want to see the effect:


    Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs)...
  37. VS 2017 Re: SQLite date/time not showing the seconds in DGV

    I may have found the solution to this problem. Being completely new to SQLite I naively set the type of my date/time columns to "DATETIME". It seems that SQLite doesn't properly support datetime...
  38. VS 2017 Re: SQLite date/time not showing the seconds in DGV

    Still looking for help with this. If I save a date/time in ISO8601 format* to the database using an INSERT command, the seconds are shown as expected in SQLiteStudio, but when retrieved with the...
  39. VS 2017 Re: SQLite date/time not showing the seconds in DGV

    OK. Let me work out how to interrogate the datatable. Looking through my projects I only seem to have used datatables bound to data grids.

    EDIT: That didn't take long. I can confirm that the...
  40. VS 2017 [RESOLVED] SQLite date/time not showing the seconds in DGV

    I have just started playing with SQLite as a possible alternative to Access for small file-based databases. I am using SQLiteStudio 3.2.1 to create and populate a database. I have added the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width