Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 0.21 seconds.

  1. VS 2008 Re: How to make walls that when the player touches them, game is over

    I had assumed that Option Infer was On, which would automatically set the data type for you.

    You can specify the data type yourself, eg:

    Dim walls as PictureBox() = {wall1, wall2, wall3, ...}I...
  2. Re: BC30456 'Computer' is not a member of [Solution / Project name].My

    Welcome to VBForums! :wave:

    I have moved this thread from our "CodeBank - Visual Basic .NET" forum to our "Visual Basic .NET" forum
  3. VS 2008 Re: How to make walls that when the player touches them, game is over

    Welcome to VBForums :wave:

    One way to shorten that code is to put the wall objects into an array, then loop over the array, eg:


    Dim walls = {wall1, wall2, wall3, ...}

    For each wall in...
  4. Re: Unhide selected datagridrows based upon condition

    Change this:

    End If
    If DGV_Docs.CurrentCell.Value.ToString = "-" Then
    to:

    ElseIf DGV_Docs.CurrentCell.Value.ToString = "-" Then

    That way if the first If...
  5. Re: what the? pr e ss - re l eas e banned?

    A quick web search shows there are various companies with that name, so it is likely that at some point one of them was spamming, so got added to our bad-words list.
  6. Re: Admin action request for a CodeBank topic

    I've deleted it for you :)
  7. Re: Quick question about a select query

    Something like this?

    SELECT {fields from the header table} ,
    Count({field from detail table})

    FROM {header table}
    INNER JOIN {detail table} ON ({condition})

    GROUP BY {fields from...
  8. Re: Not a valid Win32, HRESULT: 0x800700C1

    Working on most computers doesn't mean your application is written/compiled correctly, only that is has been written/compiled well enough to work on those computers.

    If a computer has different...
  9. Re: Opening and Closing MySQL Connection

    You can store the connectionstring in one place, eg:

    Friend Module Connections
    Public Const myConnectionString As String = "server=127.0.0.1;" _
    & "uid=root;" _
    ...
  10. Replies
    1
    Views
    250

    VS 2019 Re: Form controls not scaling properly

    To get controls to automatically position/size themselves, set the Anchor and/or Dock properties for those controls.

    For this issue you probably just need to set Anchor to Bottom (or Bottom and...
  11. Replies
    3
    Views
    387

    Re: Building an App

    For smartphone apps with Visual Studio you can use Xamarin (which uses C#).

    With Xamarin you can create apps for Android and/or Apple devices, and can write them in such a way that the majority of...
  12. Re: Help with SQL JOIN and DataGridView

    Welcome to VBForums :wave:

    It seems that you have added the field name to the table name, so you have "FROM Ops.ID" when it should actually just be "FROM Ops"

    Apart from that it seems that the...
  13. Replies
    10
    Views
    725

    Re: Where are my dots ?

    There is currently an issue with that, the admins are dealing with it:
    https://www.vbforums.com/showthread.php?897803-No-longer-being-notified-when-someone-responds
  14. Sticky: Re: No longer being notified when someone responds

    Does this work?
  15. VS 2019 Re: VB.net change system locale

    In that case you will probably need to use an API, and a quick search found this:
    https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-setlocaleinfoa

    That page doesn't include any...
  16. VS 2019 Re: VB.net change system locale

    The software should be able to cope with whatever regional settings etc are in use.

    If it is software you have written, tell us what issues you are having and we can tell you how to fix them (eg:...
  17. Replies
    9
    Views
    660

    Re: SerialPort Using All The OM Ports

    You probably can't. If you can do it, that will be by editing the first post (I think you need 2000 posts).

    I've changed it for you :)
    (some existing posts still have OM at the top, but new...
  18. Replies
    5
    Views
    441

    Re: Cookie help

    A web service is designed to be automated, and therefore you are allowed to do that (as long as you abide to the restrictions in their terms).

    A web site is not designed to be automated, and as a...
  19. Replies
    25
    Views
    1,055

    Re: plus my mobile

    It's a really useful site, you can quickly tell your friends exactly where to meet you, which is great in busy situations (like a large train station, or festivals etc).

    In some places (like most...
  20. Replies
    25
    Views
    1,042

    Re: Dead Monitor

    In terms of considering a new monitor, bear in mind that technology has moved on in various ways - an important one being that energy usage for near-identical models has reduced massively (from what...
  21. Replies
    6
    Views
    592

    Re: Pagination Logic

    As you want "up to 5 page buttons", my logic for 2-5 pages would be:
    Disable the first button if the current "page" is 1
    Disable the last button if the current "page" is the last page
    Display...
  22. Replies
    3
    Views
    285

    Re: VB.Net & Sqlite help for query

    The article Why should I use Parameters in my program instead of putting values directly into my SQL string? gives the explanation of why, and also contains links to examples (at the bottom of the...
  23. Replies
    12
    Views
    730

    Re: Query of a Query

    That's annoying :(
  24. Replies
    12
    Views
    730

    Re: Query of a Query

    Cool, by the way I missed something earlier... you'll need to add GROUP BY DateField to each of the sub-queries.
  25. Replies
    3
    Views
    285

    Re: VB.Net & Sqlite help for query

    You need to ensure that you are formatting and delimiting the values the same way.

    Your initial query contains this:

    ...but the second version will create this:



    You need to include the...
  26. Replies
    12
    Views
    730

    Re: Query of a Query

    Here's a quick thought:

    SELECT A.DateField, ACount - BCount
    FROM ( SELECT DateField, Count(*) as ACount
    FROM TableA
    GROUP BY DateField
    ) as A
    LEFT JOIN
    ( ...
  27. Replies
    14
    Views
    1,033

    Re: Excel Interop Change NumerFormat on Range

    If values are stored as their original types (Integer, Single, Date, etc), then they are passed directly into the target application that way, and the target application just needs to format them for...
  28. Re: Operation Must Use an updateable Query

    The link I gave in post #19 has some guidance, under the heading "Which folder(s) should be used?"

    Part of that is:
    As you say single-user, you probably don't want to use CommonAppData, as that...
  29. Re: Operation Must Use an updateable Query

    It applies to all writeable files (whether that is database files, text files, etc).

    Executable files (such as .exe and .dll etc) should be in ProgramFiles or similar.

    The location of the files...
  30. Re: Operation Must Use an updateable Query

    Using folders like ProgramFiles for writeable files has been off-limits for over 20 years.

    These days it is more complex to get that working (partly due to virtualisation etc), and it isn't a...
  31. Re: How to generate a report based on customer number (retrieving data from 3 tables)

    I have moved this thread from the VB.Net forum to the Database Development forum
  32. Replies
    16
    Views
    799

    Re: We Didn't Start the Fire

    The good news is that at that point they get taken to an air-conditioned hospital, and then a cup of tea does fix that issue.
  33. Replies
    8
    Views
    5,074

    Re: Twain Scanning in VB .Net

    That was me, my apologies for the confusion caused!

    There was spam amongst the nonsense post, so I toasted it :)
  34. Replies
    3
    Views
    664

    Re: My font got really small

    It is almost certainly due to a browser setting - you can (even accidentally) set the zoom level per-site.

    One way to change the zoom level is hold the Ctrl key while moving the mouse-wheel, and...
  35. Re: Why does my TextBox not expand with it's form ?

    Have you manged to unwittingly put it inside another control? (a TLP or something else)

    If so the settings for that control need to be set appropriately too (or just move the textbox out of that...
  36. Re: Canīt use two CreateParams functions ... Error BC30269

    I did actually make a minor change to the Shadow code, so reverting that might fix it... just move the CheckAeroEnabled line to above the Dim line.


    If that doesn't solve it, also try putting...
  37. Re: Canīt use two CreateParams functions ... Error BC30269

    Welcome to VBForums! :wave:

    You need to merge the two routines together, in this case I think it could be like this:

    Protected Overrides ReadOnly Property CreateParams() As CreateParams
    ...
  38. VS 2022 Re: Get the BackColor from the selected DataGridView row when clicked.

    One possible issue is that DataGridView1.CurrentRow.Index might not return the correct value (as clicking a cell might not set CurrentRow before the event is fired), so you should be making use of...
  39. Replies
    9
    Views
    582

    VS 2010 Re: How to make new font() black

    There are some fonts (such as Arial) which have a 'black' (ultra-bold) variation.

    You can only use the 'black' variation if the font already contains it - you can't create it with .Net (except...
  40. Replies
    24
    Views
    1,497

    VS 2015 Re: WebBrowser not loading phpmyadmin

    There is actually an issue with attachments on the forum at the moment.

    If you use the features in the "Quick Reply" area they don't attach properly, but you can add attachments via "Go Advanced"...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width