-
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. -
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 … -
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 ... … -
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, … -
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. -
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 … -
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**. -
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 … -
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 … -
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) -
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 … -
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) -
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 … -
Replied To a Post in Super Bowl XLIX
Too bad the cheaters won. -
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 … -
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 -
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") -
Replied To a Post in WINDOWS 7
Whiskey, tango, foxtrot? -
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 -
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 -
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 … -
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. -
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 … -
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 … -
Replied To a Post in (HELP ME) My ASUS laptop keeps on refreshing
What do you mean by "refreshing"? -
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`. -
Marked Solved Status for shoulderspine computer crime
what is shoulderspine computer crime and what does it involve -
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 … -
Replied To a Post in shoulderspine computer crime
Never heard of it. -
Replied To a Post in which is your favourite game?
Settler's of Cataan or Archipelago - neither of which is computer based. -
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 … -
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), … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 ... … -
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 … -
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**. -
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. -
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 … -
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 … -
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 … -
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 … -
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. … -
Edited hi
hi frnds -
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 … -
Replied To a Post in Isaac Newtons theory about the earth falling to the sun.
1.267?
The End.