4,901 Posted Topics

Member Avatar for RobertHDD

Just changing the name doesn't make it better. There is a saying that goes "just because everything is different doesn't mean anything has changed."

Member Avatar for RobertHDD
0
260
Member Avatar for aseel.jaradat.9
Member Avatar for Jeon_1

Let me see if I understand what you want. for each line in a.txt pick two random numbers (lo,hi) in the range 0 to b.txt.count - 1 output line for i = lo to hi output i next output newline next If that is what you want then it should …

Member Avatar for Jeon_1
0
156
Member Avatar for Triple_7

If you are only allowed P, R or N then I suggest you use a combobox. Why allow the user to bang on invalid keys? Just show him/her the valid choices.

Member Avatar for Santanu.Das
0
311
Member Avatar for sofiaross06

If you are not an extremely lazy person who expects others to do their research for them you can start with google.

Member Avatar for <M/>
0
180
Member Avatar for webecedarian
Member Avatar for <M/>
0
208
Member Avatar for MasterChat

The same dream vacation I take every year - spending all summer at the cottage on Shebandowan Lake.

Member Avatar for sweetsmile
0
184
Member Avatar for brook.ad.9

Do you get anything on first powering up (display dies after Windows starts to load) or is it all dead all the time?

Member Avatar for Reverend Jim
0
107
Member Avatar for Reverend Jim

I just got my new laptop (after toasting my 2008 model with a glass of water on the keyboard). It's a Dell Inspiron 5748. I was excited to see it came with a USB 3.0 port (plus two USB 2.0 ports). The excitement vanished, however, when I tried my first …

Member Avatar for gerbil
0
267
Member Avatar for PinoyDev

I can't test this out because I don't have anything older than vb.net 2010 but I don't believe you need the **Set** keyword. Try just dbgridvar = Form1.Datagrid1 Are you getting an error message?

Member Avatar for PinoyDev
0
175
Member Avatar for Xiao_1

When you do an INSERT you must supply values. For example INSERT INTO mytable (fld1, fld2, fld3) VALUES(fldvalue1, fldvalue2, fldvalue3) You must supply data for all NOT NULL fields. I suspect what you are trying to do is an UPDATE which would look like UPDATE mytable SET fld1 = fld1value, …

Member Avatar for SteveDotNet
0
341
Member Avatar for GrimJack

Aside from the price gouging (which they have done before), they have also 1. Denied responsibility for drivers by claiming they are contractors, not employees 1. Interfered with an attempt by Lyft to attract investors 1. Threatened to smear reporters 1. Called in fake rides to tie up drivers from …

Member Avatar for GrimJack
0
193
Member Avatar for themathprof

Usually the **Run As Administrator** comes up when your program is trying to write to a protected location, for example if you are writing to a file in the folder where the application is installed.

Member Avatar for imti321
0
1K
Member Avatar for puppie_fliey

Free OS - Linux. Free game - too many on the internet to enumerate here. Try Google.

Member Avatar for RobertHDD
-1
142
Member Avatar for Dani

I agree with pritaeas. In order to help avoid gaming the OP should pick which answers, if any, were helpful. I have occasionally posted in a thread, not with a solution, but with a reply stating why a particular proposed solution was incorrect. While this does not strictly speaking help …

Member Avatar for Dani
0
2K
Member Avatar for Benniit

I'm not up to SQL 2012 yet (I'm using 2008) but this works for me. My table is FileName VARCHAR(255) (PK) WordDoc VARBINARY(MAX) To get the data into the table you have to read the Word document into a Byte array as binary. When you want to recreate the document …

Member Avatar for Reverend Jim
0
6K
Member Avatar for Nova6112

Here is an example of loading a combobox Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=PUBS;Trusted_Connection=yes;") Dim cmd As New SqlCommand("", con) cmd.CommandText = "SELECT au_lname FROM authors WHERE city = 'Oakland'" con.Open() Dim rdr As SqlDataReader = cmd.ExecuteReader ComboBox1.Items.Clear() Do While rdr.Read() ComboBox1.Items.Add(rdr("au_lname")) Loop rdr.Close() con.Close() Just modify the SELECT statement to …

Member Avatar for SteveDotNet
0
148
Member Avatar for Papa_Don

Try saving this code into convert.vbs set fso = CreateObject("Scripting.FileSystemObject") set arg = Wscript.Arguments if arg.Count <> 2 Then Wscript.Echo "Convert inputfile outputfile" Wscript.Echo "Creates outputfile from inputfile by replacing" Wscript.Echo "unix line-ending (vblf) to Windows format (vbcrlf)" Wscript.Quit End If text = fso.OpenTextFile(arg(0)).ReadAll text = Replace(text,vblf,vbcrlf) set tso = …

Member Avatar for Papa_Don
0
671
Member Avatar for ~s.o.s~

As for the non-programming posts, I learned a lot from my discussions with Mel on topics where we were diametrically opposed. I'll miss him.

Member Avatar for CodyOebel
2
792
Member Avatar for Papa_Don

You can reference controls dynamically by name by using Me.Controls(name) So you could do something like Dim data() As String = {"box1", "box2", "box3"} For i = 0 To 2 Me.Controls("textBox" & (i + 1)).Text = data(i) Next If you name your controls tbxProp0, tbxProp1, tbxProp2 then you can do …

Member Avatar for Papa_Don
0
3K
Member Avatar for A T.g
Member Avatar for sami12345
Member Avatar for YakuzaJevin
Member Avatar for Reverend Jim

I have a Dell Inspiron 1720 running Windows 7 Pro. At random times throughout the day it says "boop" (a short, mellow toned beep). It is not associated with any particular action or program and doesn't seem to be a Windows sound. I've run diagnostics twice and nothing shows up. …

Member Avatar for Reverend Jim
0
971
Member Avatar for Dani

Pants? I think if I restricted a search to only my posts I'd get mostly rants :)

Member Avatar for Reverend Jim
1
865
Member Avatar for MasterChat

Just to receive things like birthday & Christmas cards, and bills. The only time I use it for outgoing is when I send a donation to some organization and the few greeting cards that we issue.

Member Avatar for MasterChat
0
172
Member Avatar for antonymatoi
Member Avatar for Reverend Jim
0
65
Member Avatar for OtepTheThird

Why not use the builtin function. In MS SQL it is SELECT COUNT(*) FROM billing_tbl WHERE CONVERT(DATE,date_due) = CONVERT(DATE,GETDATE()) I think the MySQL version is SELECT COUNT(*) FROM billing_tbl WHERE DATE(date_due) = DATE(NOW())

Member Avatar for Santanu.Das
0
3K
Member Avatar for Xiao_1

Here's an example of adding data to a DataGridView with two columns. Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=PUBS;Trusted_Connection=yes;") Dim cmd As New SqlCommand("", con) cmd.CommandText = "SELECT au_lname, au_fname FROM authors WHERE city = 'Oakland'" con.Open() Dim rdr As SqlDataReader = cmd.ExecuteReader Do While rdr.Read() DataGridView1.Rows.Add({rdr("au_lname"), rdr("au_fname")}) Loop rdr.Close() con.Close()

Member Avatar for Reverend Jim
0
149
Member Avatar for gara_mirza

First of all, you say you get a different "solution" which is essentially meaningless without knowing what variable contains the solution. Secondly, it's different code so why should you expect the same result(s)?

Member Avatar for Reverend Jim
0
229
Member Avatar for baconda

Your problem is that your position is falling between the cracks. For example, if your x coordinates vary like 53, 63, 73, etc. and you are checking for an exact limit such as x = 100 to stop then your timer will not stop because you pass by 100 without …

Member Avatar for Reverend Jim
0
131
Member Avatar for Ian_5

The easiest way is Dim MyData() As String = System.IO.File.ReadAllLines(MyDataFile) There are those who would tell you to use a StreamReader but for reasonably sized text files this way is much easier. You don't need to declare any helper objects and you don't have to worry about end-of-file testing. You'll …

Member Avatar for Reverend Jim
0
180
Member Avatar for dimitris.dimitri.73

If he's like me he probably had several questions open in different tabs and replied to the wrong one.

Member Avatar for Begginnerdev
0
261
Member Avatar for Akhila_1

You might want to look at developing your application as a WPF application instead of Windows Forms. I understand it was designed to maintain consistency across multiple resolutions.

Member Avatar for Minimalist
0
2K
Member Avatar for Gebby

You shouldn't have to buy anything for hobby programming. If you want to use VB you can download the free version from Microsoft. I suggest you avoid VB6 and get a dot net version. I think C# is also free for certain versions and if you are so inclined, most …

Member Avatar for Gebby
0
214
Member Avatar for Reverend Jim

I may be getting paranoid (at least my wife thinks so), but every time I hear/read about the internet of things, all that is said is how wonderful it will be to have everything interconnected and accessible from anywhere you happen to be. However, after all the revelations about the …

Member Avatar for vegaseat
0
458
Member Avatar for MasterChat

What do you mean by "scrap"? If you don't want to use email then just don't use it.

Member Avatar for David_50
0
182
Member Avatar for roxie148

I'm also partial to Dell. I have had excellent tech support and service (on the fortunately few occasions it was required). We have three Dells in our house.

Member Avatar for stultuske
0
253
Member Avatar for BORIS_4

Try using "&" instead of "+". Adodc1.Recordset.Filter = "br_name LIKE '" & t & "'" _ " OR mo LIKE '" & z & "'"

Member Avatar for BORIS_4
0
50
Member Avatar for razstec

A free (and relatively lightweight) PDF reader is available from [Foxit](http://www.foxitsoftware.com/Secure_PDF_Reader/) My two cents is to skip VB6 and get the latest version of vb.net that is compatible with your system.

Member Avatar for Reverend Jim
0
124
Member Avatar for batoolhussain
Member Avatar for Dudestreet

There are examples of how to manipulate Excel data in vb.net in the [Code Snippets](https://www.daniweb.com/software-development/vbnet/code/_/58) section. Please have a look and feel free to post specific questions here if you have any.

Member Avatar for Reverend Jim
0
234
Member Avatar for Dragennd
Member Avatar for Xiao_1
Member Avatar for MasterChat

>If multiple sources say the same thing, it's probably correct. Keep in mind the maxim that no amount of belief establishes a fact. Quantity does not trump quality. Three billion (possibly more) repetitions of the statement "a duck's quack doesn't echo" doesn't make it true. For the record, a duck's …

Member Avatar for MasterChat
1
409
Member Avatar for Dudestreet

Have a look at these examples in the Code Snippet section. You can find them [here](https://www.daniweb.com/software-development/vbnet/code/464769/export-listview-to-excel-spreadsheet) and [here](https://www.daniweb.com/software-development/vbnet/code/474907/how-to-read-an-excel-spreadsheet-using-adodb)

Member Avatar for Dudestreet
0
5K
Member Avatar for saadfali

See [this thread](https://www.daniweb.com/software-development/vbnet/threads/486625/convert-color-image-to-grayscale)

Member Avatar for Reverend Jim
0
51
Member Avatar for chloe.baee

>I am not sure why science has such a bad stigma amongst US teenagers. I'm guessing that most people these days have little or no idea of the difference between "good" science (or just science) and "junk" science. Clearly lawyers have erased the difference between "possible" and "probable" and the …

Member Avatar for Agilemind
0
429
Member Avatar for batoolhussain

You should already know how to convert to greyscale from [your thread](https://www.daniweb.com/software-development/vbnet/threads/486625/convert-color-image-to-grayscale) from a while ago.

Member Avatar for Reverend Jim
0
101
Member Avatar for Reverend Jim

[e-Cigarette from China Infected Man’s Computer with Malware](https://www.yahoo.com/tech/e-cigarette-from-china-infected-mans-computer-with-103466334849.html)

Member Avatar for rubberman
0
98

The End.