4,911 Posted Topics

Member Avatar for renzlo

For starters, the program won't compile because of If p.Id = CDbl(cid) Then The variable `cid` is not defined.

Member Avatar for Reverend Jim
0
421
Member Avatar for Slavi
Member Avatar for sweetsmile

A couple of door-bottom weather strips (one for your door and one for the neighbour's) might do a lot to cutting down the amount of smoke. The cost is minimal and if the neighbour or landlord won't spring for it you might want to spring for them yourself. They install …

Member Avatar for sweetsmile
0
481
Member Avatar for imti321

A lot of the forums have a "sticky" post with a title like **Please read this before posting**. The sticky posts remain at the top of the thread list. If newbie posters took the time to read these stickies we might see a dramatic drop in the number of silly …

Member Avatar for imti321
0
330
Member Avatar for Palebushman

If the recovery disks are no longer readable, or the user did not make a set of recovery disks (the nags are there for a reason) you should still be able to download a set from Dell based on the Service Tag or Express Code on the back of the …

Member Avatar for Palebushman
0
704
Member Avatar for raghulmsc

1. What variable type are you using? 1. What other languages are you comparing to? 1. What variable types are you using in the other languages?

Member Avatar for Reverend Jim
0
38
Member Avatar for Trle94
Member Avatar for Hassan_9

If you can do a join on the two tables then you can do the calculation in the query. Without knowing the structure of the tables (include a description of the fields - the tables must have a common field) I can't provide a query.

Member Avatar for Reverend Jim
0
103
Member Avatar for Papa_Don

You might as well replace goodLine = line My.Computer.FileSystem.WriteAllText(RestranName2, goodLine & VbCrlf, True) with My.Computer.FileSystem.WriteAllText(RestranName2, Line & VbCrlf, True) It's pointless to declare another temporary variable.

Member Avatar for Papa_Don
0
754
Member Avatar for aseel.jaradat.9

You have to use a delegate to modify controls. It's not complicated and there is a [tutorial](https://www.daniweb.com/software-development/vbnet/tutorials/477520/how-to-use-backgroundworker-to-create-threads) on how to use BackGround threads which includes a discussion of delegates. Once you have read the tutorial feel free to post any follow up questions here.

Member Avatar for aseel.jaradat.9
0
192
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
261
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
181
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
110
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
144
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
972
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
866
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
66
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
181
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
262
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
255
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

The End.