Search Results - VBForums

Search:

Type: Posts; User: techgnome

Page 1 of 13 1 2 3 4

Search: Search took 0.52 seconds.

  1. Re: How can I copy Explorer's ListView/TreeView windows

    LaVolpe - that's when you PASTE a number of files... the case jms seems to be concerned about is when you right-click New ... and create new file... that file (singular) is highlighted... if you...
  2. Replies
    9
    Views
    157

    Re: Trying to ftp my project with FileZilla

    Yeah, if they only offer linux, odds are they do not support ASP.NET... so in order to run one, you'll need a host that does support it.

    -tg
  3. Re: append registry key script not working correctly

    Const HKEY_CURRENT_USER = &H80000001
    strComputer = "."
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    strKeyPath = "test"
    strValueName = "english"
    --...
  4. Replies
    11
    Views
    218

    Re: Will Redstone bring Android to Windows?

    Hopefully it's closer to MS realizing that TFS uses the wrong model, making it harder to deal with multiple people working on the same code base. The check out model works fine for smaller...
  5. Re: append registry key script not working correctly

    Right... the call is "SetStringValue" ... so that's what it does... it sets it to the value you indicated. It doesn't know you want to append it. And there isn't a "AppendStringValue" method... but...
  6. VS 2015 Re: File Compare and Move - Same File Name with Different File Extensions

    Want hte good news or the bad news first? LEt's start the good news... once you have the files, the FileInfo Class has the info you need. Which is doubly good because it also has a .CopyTo method...
  7. Re: Need Help Getting Accurate Sum to 2 Decimal Places

    Fair enough. :thumb:

    Works for me.
    I sit corrected. :)


    -tg
  8. Replies
    1
    Views
    74

    Re: php separate string

    This will get you the current URL: http://webcheatsheet.com/php/get_current_page_url.php
    and this can parse out the querystring parameters: http://php.net/manual/en/function.parse-url.php

    -tg
  9. Replies
    9
    Views
    157

    Re: Trying to ftp my project with FileZilla

    First things first...
    Since I don't want to take anythign for granted, I have a couple of questions:
    1) does your host support ASP.NET? Or more to the point does your package support ASP.NET? -...
  10. Re: Need Help Getting Accurate Sum to 2 Decimal Places

    Are you sure? Isn't that what this is?
    135057

    1.115 rounded up to 1.12 as I expected ... if I remember right VB does it's own thing when rounding... rounding to the nearest even number ... so...
  11. Replies
    10
    Views
    143

    Re: Adressing in my loop

    Just about anything is possible given enough time and money... problem is that usually we're short on one or the other, or mostly both. ;)

    -tg
  12. Replies
    10
    Views
    143

    Re: Adressing in my loop

    So don't try to pass the whole array... just pass the individual elements... just like you were with the individual variables you were trying...



    for i2 = lbound(local_array) to...
  13. VS 2013 Re: Trying to make App that enumerates Directory and sub Directories

    Yes there is.

    That said, that's a new question unrelated to the thread at hand. It really should be a thread of its own.

    Meanwhile you can try this.

    -tg
  14. Re: Multiple connections to the same Access database simultaneously from the same use

    I'd be more inclined to use a nullable type...


    Dim myValue As String? = custCMDcr.ExecuteScalar()

    the ? on the end of string makes it a nullable type... it's shorthand for this:
    Dim myValue...
  15. Re: Multiple connections to the same Access database simultaneously from the same use

    That's a completely different issue all together and unrelated to the connection issue. The general policy here is one topic per thread. Helps to keep things organized and you're more likely to get...
  16. Re: re-ordering array indices not working; is there a better way?

    DEX - yeah... normally I wouldn't either... but the code he had was so convoluted that I'm not sure I could have done it justice by telling him how to fix it... plus I was bored while waiting for a...
  17. Re: Multiple connections to the same Access database simultaneously from the same use

    Can I ask what the purpose is with this db tagging every 5 seconds? Seems a bit excessive and there might be a better way.

    The lag you're seeing is likely because Access is a file-based database,...
  18. Re: re-ordering array indices not working; is there a better way?

    You don't redim an element... you redim an array...

    you don't even need the second array... what you're doing is actually a fairly basic swap, it just happens to involve three elements moving and...
  19. Replies
    1
    Views
    72

    Re: ActiveLock 3.6 example problem

    Click on the project in the solution explorer, and click the button to "Show all files" ... then find the references node, expand it... it should show a warning symbol next to the referenced dll....
  20. VS 2013 Re: Accepted way to validate numeric data? Try/catch?

    Only in this case I'd use Integer.TryParse ... all numeric datatypes have a Parse and a TryParse method that will parse the data out into the appropriate datattype if it can. The difference is that...
  21. Re: Need Help Getting Accurate Sum to 2 Decimal Places

    I would jsut use Round and round it off... keep everything as a double... Arnoutdv's code shows that Tot comes out right... it just needs to be rounded off to two places... and not mucked with by...
  22. Re: How to convert Timer to hour format h:m:s:ms

    Why? that's not being backwards compatible... as that won't run in an older version of VB... if it were to be backwards compatible, it would work in both VB6 and VB.NET ... that's only going to work...
  23. VS 2015 Re: How to determine which button/menu item/Ctrl-key is pressed in another program

    Correct, there can only be one form active at a time, so even if there was multiple instances open, only one will be active. I think that helps.

    Honestly, I'm not sure it's possible... I've seen...
  24. Re: Retrieving a single row using MAX() function?

    no screenshot... but that's a typical and common thing to do...

    first get the max:


    select max(yourDate) from YourTable


    Now you want the row that the date came from right:
  25. Re: Block Show Desktop / Windows-D only for my app

    If it was a full-screen app we were talking about, I'd agree... but we're not... what he's trying to do is build a Windows Gadget ... but rather than take hte time to investigate and do it properly,...
  26. VS 2010 Re: Copying subfolders with their own files to another folder with WebClient

    does it work when you don't use the async version?

    also if you're expecting WebCopy to fire off any events, it won't. 1) you dimmed a local var by the same name so it takes precidence over the...
  27. Replies
    6
    Views
    166

    Re: Access DB date issue?

    Is there any chance the field is ... GASP! ... a string field and not a date?

    -tg
  28. Re: type mismatch with loading a picture

    Move the load into the if statement:


    If Not RS.BOF Then
    Image1.Picture = LoadPicture(RS!myimage)
    Else
    ...


    The fact that you had an empty if clause should have been a clue that...
  29. Replies
    8
    Views
    120

    Re: How to make unchangeable checkbox?

    I would think that an image control would work... then you just load a checkmark image into it... that's how we do it.

    -tg
  30. Re: [RESOLVED] Overriding the css for a Report Viewer

    nope, the comma resets the ancestry...

    -tg
  31. Replies
    8
    Views
    163

    Re: how to enter null value ?

    There's null and there's Null (or DBNull) ... in this case, it's taken in the context of Null, from a database - thus the name DBNull ...

    In the C-faimilies null is a representation of char(0),...
  32. Replies
    8
    Views
    163

    Re: how to enter null value ?

    Ungh... ok... well then try this:


    cmd.Parameters.AddWithValue("pet", pretTxt.Text)
    cmd.Parameters.AddWithValue("ppa", prpaTxt.Text)
    if not pretTxt.Enabled Then
    ...
  33. Replies
    8
    Views
    163

    Re: how to enter null value ?

    Two ways to deal with this... 1) use .Parameters.Add rather than .AddWithValue, but this means creating the parameter, setting its type and size, etc., then setting the value ... or 2) after adding...
  34. Replies
    28
    Views
    394

    Re: Visual Basic 2010

    You're just prawning I'll take the bait. Best for me to probably clam up and be shellfish for a while.

    -tg
  35. Re: populate a listview from 3 tables

    OF course it's possible. It's also possible for me to shoot myself in the foot with a shotgun... BUT IT DOESN'T MAKE SENSE.\

    What you'll end up with is a listview, with a random number of rows,...
  36. Re: populate a listview from 3 tables

    Not really... you didn't explain what is in the tables or what they look like. In your original post, you select num, qty, order ... what are those? if the data isn't related in any way shape or...
  37. Re: [RESOLVED] Overriding the css for a Report Viewer

    You can combine multiple selectors by separating them with a comma.

    td, a { ... }

    will apply that css to td and a elements.

    So if you want to combine some of the CSS you posted, it would be...
  38. Re: populate a listview from 3 tables

    what? What did you do? Never mind...

    Answer this instead - what is it you're trying to accomplish? What is the problem with using a proper inner join? Even though I suggested a union, I'm not...
  39. Re: populate a listview from 3 tables

    The only way to retrieve data (effectively) from three tables w/o an inner join is to select from each one and union them together:


    Select F1, F2, F3 from Table1
    union all
    Select F1, F2, F3...
  40. Re: Looking for help installing SQL Server Express 2014.

    AS long as it is set to "Automatic" it's fine. Starting with SQL2010, the service runs "on-demand" specifically the express server does... so initially it may be stopped, but once you attempt to make...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.