Search Results - VBForums

Search:

Type: Posts; User: techgnome

Page 1 of 13 1 2 3 4

Search: Search took 0.63 seconds.

  1. Re: Very strange time difference in 2 sprocs run through another sproc.

    Something else to keep in mind, that cached execution plan is based on that first run... which may be efficient for that run, but could be inefficient for later runs. We found this out the hard...
  2. Replies
    31
    Views
    464

    Re: If you like your Ebola, you can keep it

    Of course... that's why he now has an Ebola Czar... I kid you not.
    https://www.google.com/webhp?q=ebola%20czar

    -tg
  3. Replies
    3
    Views
    89

    Re: VB beginner question

    even easier would be to set the SelectedText property ... one line... nothing more. It'll insert the text where ever the cursor is.



    TextBox1.SelectedText="Gimmie some new text"


    -tg
  4. Replies
    31
    Views
    464

    Re: If you like your Ebola, you can keep it

    Who woulda thunk that Faux News would be the voice of reason... so far this is the best report I've seen on the issue....
  5. Re: How to remove comma using StreamWriter

    Count2 will NEVER equal numCols:
    For count2 As Integer = 0 To numCols - 1

    So this will ALWAYS be true:
    If (count2 <> numCols) Then

    and is why you're getting a comma.

    -tg
  6. Replies
    31
    Views
    464

    Re: If you like your Ebola, you can keep it

    3998 of those 4000 were in W. Africa, where they've been battling it for years. There are a number of issues leading to the high numbers there. The biggest is a social one and a fear & distrust of...
  7. Re: Return specific row from DataRow collection

    XMLDataRows(11) ???? it's an array like any other... so I don't see why it should be any different from an array of integers.


    -tg
  8. Replies
    2
    Views
    98

    Re: ENROLLMENT System using VB6.0

    The codebank is for sharing code... not asking for it. I'll ask the mods to move it to a more appropriate forum.

    -tg
  9. Re: Add First Row to Read "--Please Select--"

    Union statement columns take on the names fgrom the FIRST select... so in your select there is no OrganisationName ... there's Expr1 and Expr2 ... also the order by will apply to the WHOLE statement,...
  10. Re: cant fix the errors in my battleships game

    1) no one's going to fix your code for you blindly. Put some effort. At least mark the line(s) where you're getting errors and what the errors are.
    2) No one like looking at a wall of code like...
  11. Re: Add First Row to Read "--Please Select--"

    I usually do it as part of the SQL ...



    select -1, '- Select one -'
    union all
    select ID, Description
    from LookupTable
  12. Replies
    4
    Views
    141

    VS 2010 Re: Adding SubItems to listview

    I agree... there's nothing in that code that wipes anything out. If that's the effect you're seeing though, then there's more to your code. If I had to guess which eel you're using in your...
  13. VS 2010 Re: Loading list of files into a pre-defined directory into a listbox, then loading t

    Getting the list of file has nothing to do with opening the file... period. end of story. There is NO correlation between the two.
    At any rate, GetallBytes works because it opens the file reads it,...
  14. VS 2010 Re: Loading list of files into a pre-defined directory into a listbox, then loading t

    You've got something that is currently an object... what does your code look like now? We can only guess what the changes you've made are.

    -tg
  15. Re: Implementing "LAN-wide Variables" with a broadcast? Other approches?

    I'd get somehting I can toss a database on to... when one of hte machines makes a request, it writes to the database, I requested item XYZ at hh:mm:ss time.... then if anyothers want XYZ, you get the...
  16. Replies
    4
    Views
    140

    VS 2013 Re: Program Execution

    What hangs? the code above or the program you're launching? if it's the app you're launching, then I suspect it's looking for something it can't find... which could be a number of things. I wouldn't...
  17. Replies
    38
    Views
    422

    Re: If Then statements

    If Val(txtSales.Text >= 99999) Then

    What is it you want the value of? txtSales.Text itself? or the result of txtSales.Text >= 99999 ?

    -tg
  18. VS 2010 Re: FolderBrowserDialog and Creating Directories?

    Here's your complementary t-shirt... looks same as mine...


    Same here... any time I'm working with pathing & files, I make sure to use the IO.Combine method... takes the guesswork out.

    -tg
  19. Replies
    9
    Views
    208

    Re: Inherit Centralize

    To be honest, I'm completely confused as to what you want. your forms already do inherit from Windows.Forms... so I'm lost as to what it is exactly you want.
    Personally I wouldn't use Modules, but...
  20. Replies
    4
    Views
    163

    VS 2010 Re: How do I transfer data between forms?

    Form 1 takes the selected item, looks up the data - you can keep it in a datarow or put it into a custom class - then make an instance of Form 2, passing it the data, and then showing it.

    -tg
  21. Replies
    11
    Views
    282

    Re: Listbox Column Width ?

    Yeah, I was thinking the same... once I saw the reply and examples from DM, it became clear.

    -tg
  22. Re: Implementing "LAN-wide Variables" with a broadcast? Other approches?

    LaVolpe's right... your'e going to need something that acts as a central repository. Usually a database is used for this purpose, but it still needs to reside on a system somewhere.

    -tg
  23. Replies
    31
    Views
    464

    Re: If you like your Ebola, you can keep it

    As some one who used to do a bit of wilderness camping & hiking... wildlife is usually the least of your problems.

    -tg
  24. Replies
    9
    Views
    241

    Re: SaveasF Filename is not grabing data

    CommandButton1_Click() -- Looks like VB6 or possible VBA... but I'm not surprised at the issues they are having...

    again... Suggestion: do the string concatenation to a variable, so you can check...
  25. Re: BackgroundWorker code won't copy files -- why?

    well somewhere there is a Dim BackgroundWorkerCopyFolders as .... it needs to have a WithEvents clause added to it.

    -tg
  26. Replies
    11
    Views
    282

    Re: Listbox Column Width ?

    Since when has the standard listbox had more than one column?

    -tg
  27. Replies
    31
    Views
    464

    Re: If you like your Ebola, you can keep it

    afraid? No
    Worried? No
    Concerned? only slightly.
    As usual, I think it (along with a lot of things most people - especially the media - doesn't understand) is being blown out of proportion.

    It...
  28. Replies
    11
    Views
    304

    Re: What do you think about iPhone 6?

    I don't know about that... wouldn't that then be a Tragedy?

    -tg
  29. Replies
    14
    Views
    276

    Re: If condition code

    And what's wrong with what has been provided?

    -tg
  30. Replies
    9
    Views
    241

    Re: SaveasF Filename is not grabing data

    you've got too many quote marks on this line:


    filename:="c:\Users\cbradberry\Documents\" & strNewFolderName & "\" & "Name = TextBox1 " + ".doc", _


    "Name = Textbox1 " is inside the quotes,...
  31. Re: BackgroundWorker code won't copy files -- why?

    Nope, dolt, you're not missing anything, the OP is... I don't see any Handles clause on any of the subs... so there's no events being handled. So I don't even see how ButtonCopyFoldersClick is event...
  32. Replies
    14
    Views
    276

    Re: If condition code

    :confused:

    I think you need a bit moar coffee... nested IF statements is needed... not loops... :rolleyes:

    -tg
  33. Replies
    14
    Views
    276

    Re: If condition code

    So what's the issue? You've got half the if you need... just fill in the rest of the condition and the else...



    If [some condition is true] Then
    [do some code here]
    else
    [do some other...
  34. Replies
    11
    Views
    304

    Re: What do you think about iPhone 6?

    The major difference is in the form factor - it's thinner and slimmer than previous phones. It's dimensions are slightly larger than the 5, and the 6 Plus is bigger still. The Gorilla Glass has been...
  35. Replies
    2
    Views
    93

    Re: WITSML in .Net

    And for future reference, please next time provide a definition or a link to your acronyms to provide some kind of context. My first search for WITSML turned up related to woodworking. Somehow that...
  36. Replies
    2
    Views
    93

    Re: WITSML in .Net

    Well, since it's really nothing more than an XML document using specific nodes... that would be the first place to start. Create an XMLDocument, then start adding nodes to it, and when needed,...
  37. Re: SQL Server 2012 script to backup db not working -

    Sounds like there is something wrong with that database. You're not trying to backup one of the system databases are you?

    -tg
  38. Re: StreamWriter issue - file not found

    You mayhave declared it at the top of the class.... but then you created a new on inside of the OpenFileButton_Click:


    Dim fileName As String = OpenFileDialog.FileName

    So that's the one it...
  39. Replies
    5
    Views
    188

    Re: Create Table Query Msaccess

    So you check for it when the app starts. If it doesn't exist, make a copy of the blank database and put it somewhere (like the location you just checked) ... and then viola! it now exists and the...
  40. Replies
    5
    Views
    188

    Re: Create Table Query Msaccess

    While, yes you can... but don't. The reason is because you would need to create the access file too. What most people do is create the access database with empty tables and just include that as part...
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.