• Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in vb.net cannot allow changes

    And we have yet another thread where the OP goes away without posting the solution that he/she figured out.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Windows 10

    I've been running it in a virtual machine and the one thing that I really don't like about it is that it wants me to create a "domain" account with …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Gave Reputation to Dani in Large OP font

    Everyone hates it that much, eh?? Geez, I don't think it's bad at all. That being said, however, I'm going with what Rev Jim and Prit have to say ... …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Memorable Quotations

    "Look at the world today. Is there anything more pitiful? What madness there is! What blindness! What unintelligent leadership! A scurrying mass of bewildered humanity, crashing headlong against each other, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Trim down query

    You'll have to post the table structures along with a description of what you are trying to do with the query.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Large OP font

    Seems pretty subjective to me. I don't have a problem with it. Then again, my eyes are quite a bit older than yours so perhaps that has something to do …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in for Thesis Please

    There is an example of that [here](https://www.daniweb.com/software-development/vbnet/code/464769/export-listview-to-excel-spreadsheet) in the code snippets titled **Export ListView to Excel Spreadsheet**.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Things I hate about TV shows

    I noticed, while watching The Adventures of Briscoe County Jr., that our illustrious hero could fire dozens of rounds in a gunfight and hit nothing, but somehow, when the situation …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Windows 8 won't open webpages----boo hoo, sob, sob!

    Lightning struck! Laptop, modem and printer died... Got new WiFi router with broadband. Got new Lenovo laptop with Windows 8. Connected router successful. All lights green for go! Open Google …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Random Facts

    Theoretically, a candidate could become president of the United States with only 22% of the popular vote. [Source](http://www.cgpgrey.com/blog/the-trouble-with-the-electoral-college.html)
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to filter filenames in ComboBox

    You could try the following using regular expressions Dim Files() As String = System.IO.Directory.GetFiles("D:\Utils") Dim fltr As New ArrayList Dim opt As RegexOptions = RegexOptions.IgnoreCase 'Add all filenames starting with …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Random Facts

    Unlike what is depicted in many crime shows, it takes several minutes (rather than a few seconds) of regular inhalation of chloroform to render a victim unconscious. [Source](http://en.wikipedia.org/wiki/Chloroform#Criminal_use)
  • Member Avatar for Reverend Jim
    Reverend Jim

    Marked Solved Status for Ignoring a Null Values when Sorting

    I'm writing a routine where the user can populate up to 8 textboxes with numbers. Since there is potential for these numbers to be unsorted, I want to sort these …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Super Bowl XLIX

    Too bad the cheaters won.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Ignoring a Null Values when Sorting

    Rather than checking the text length you should check if the textbox contains a number. This wouuld not require trimming and would also ignore non-numeric entries such as "abc". The …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Background Image in Button From Database not on Directories/Folders

    Sorry. That should have been If rdr.Read Then Dim imgdata() As Byte = rdr("pic") Dim str As New MemoryStream(imgdata) Button1.BackgroundImage = New Bitmap(Image.FromStream(str)) str.Close() End If
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Background Image in Button From Database not on Directories/Folders

    Try something like Button1.BackgroundImage = New Bitmap("d:\temp\test.jpg")
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in WINDOWS 7

    Whiskey, tango, foxtrot?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Adding Sum of fields from two different tables

    The only answer I can give is that if you don't use parentheses you get a syntax error ;-P
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Adding Sum of fields from two different tables

    How about SELECT (SELECT SUM(sold) FROM veggies) + (SELECT SUM(sold) FROM flowers) AS total
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Super Bowl XLIX

    When you buy a hot dog at a baseball/football game you never know if you are getting a fresh one, or one that was leftover from the last game and …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    Two ways UBound(imgdata) gives you the index of the last byte and imgdata.Length gives you the number of bytes. The first value will be one less than the second value.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Listview is not updating

    Put a breakpoint at lvorder.Items(i).Text = (Val(lvorder.Items(i).Text) + 1).ToString and see if the code stops there. If not then you are never getting a match. In that case put a …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    It's possible that imgdata contains no data (or invalid data). Put a breakpoint at PictureBox1.Image = Image.FromStream(str) and check the length of `imgdata` If the database contains valid image data …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in (HELP ME) My ASUS laptop keeps on refreshing

    What do you mean by "refreshing"?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    Do you mean this line 25 PictureBox1.Image = Image.FromStream(str) If the error is in cmd.ExecuteNonQuery() then please post the value of the string `sql`.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Marked Solved Status for shoulderspine computer crime

    what is shoulderspine computer crime and what does it involve
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in NPR/New Tech City: Bored and brilliant

    People have to sign up for this? Amazing! In my reality, if I want to cut down on something I just fucking do it. A few years ago, Richard Jeni …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in shoulderspine computer crime

    Never heard of it.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in which is your favourite game?

    Settler's of Cataan or Archipelago - neither of which is computer based.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    No difference. SQLDB and OLEDB are merely interfaces. The actual data storage is a function of the underlying database. Consider the database like a huge parking lot and SQLDB and …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    If you are using MS SQL as your database then you should be using SQLDB rather than OLEDB. Both are built on top of ADODB (which you could also use), …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    Here is the OleDB version Private Sub btnOleDb_Click(sender As System.Object, e As System.EventArgs) Handles btnOleDb.Click Dim con As New OleDbConnection("Provider=SQLNCLI10;Server=.\SQLEXPRESS;Database=mydb;Trusted_Connection=Yes;Connect Timeout=15;") Dim cmd As New OleDbCommand("SELECT picdata FROM test WHERE …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    I don't know what kind of database you are using. If it is MS SQL then you can use SQLDB as follows to retrieve and display the image Imports System.Data …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in Displaying a Picture [help]

    I suggest the following method to display a picture in a PictureBox from a file Dim fs As New System.IO.FileStream(FileList(indx), IO.FileMode.Open, IO.FileAccess.Read) pbxPicture.Image = System.Drawing.Image.FromStream(fs) If you load the picture …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Random Facts

    According to historical data gathered over many years, personal disposable income has grown nearly 6 times more under Democratic presidents than under Republican presidents. Gross Domestic Product (GDP) has grown …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Warning: Dell Laptops may cause insanity

    Further details on Dell Hell. My previous laptop [1720] needed to be retired after I dumped water on the keyboard last December. Before finally sending it to the e-waste depot …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Laptop choice

    Until last month I would have whole-heartedly recommended Dell. However, I have spent the last month in Dell Hell and can no longer give them my support. They useed to …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Random Facts

    NASA's mission statement used to begin with "To understand and protect our home planet; to explore the universe and search for life; to inspire the next generation of explorers ... …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in convert this code into my sql compatible code

    I also suggest that it is bad form to omit field names when doing inserts. You should force correspondence between field names and values by using the form INSERT INTO …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Inventory System

    Please have a look at [this](https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/484380/please-read-this-before-posting) first. Pay special attention to \#5. I suggest you start by googling **sample table structure for inventory database**.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Would you play your laptop in bed???

    Just when I was feeling good about my new laptop. OK, Dani, blow us away with the specs.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Got error in adding a record [syntax error] - HELP

    Use **@name** parameters with SQLDB. For OleDB you have to use **?** as s placeholder. Plese see [Use Parameterized Queries to Avoid SQL Injection Attacks](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks). When using SQLDB, parameters can …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Calculation In Listview

    If you are calculating the tootal price for each dish you need to know 1. the quantity 1. the price per unit (the rate) Your table only has columns for …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to calculate discount depending on quality

    I can see one problem with that. If txtQty.Text is not numeric then you will get an error on num = CInt(txtQty.Text) Once you have determined that txtQty has a …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Keyboard Input in multiple Textbox Vb.net

    Assuming this is some sort of login form, what you would usually do it compare the entered username and password to a stored username and password (such as in a …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Keyboard Input in multiple Textbox Vb.net

    You have to give us actual code. If TextBox1.[dont know what to type here] = True Then does not qualify. May I also suggest you name your controls more clearly. …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited hi

    hi frnds
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Memorable Quotations

    “It seems to me the most obvious decision a person could make in their life: do I want to make real-world policy decided on the basis of proven facts and …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Isaac Newtons theory about the earth falling to the sun.

    1.267?

The End.