4,901 Posted Topics
Re: What do you want to happen on the second and subsequent clicks? | |
Re: Are you wanting all of the folders immediately under C or do you mean all of the folders in C:\ and all subfolders? For the first case you can do ListBox1.Items.AddRange(My.Computer.FileSystem.GetDirectories("C:\").ToArray) If you want all folders then you can do it recursively by Private Sub Form1_Load(sender As System.Object, e As … | |
Re: Too bad he couldn't keep the guy there for the cops. | |
Silent Circle (co-founded by Phil Zimmermann, the creator of PGP) has shut down its encrypted email service, Silent Mail, over fears that the NSA will force them to turn over customer data. Read the full story [here](http://techcrunch.com/2013/08/08/silent-circle-preemptively-shuts-down-encrypted-email-service-to-prevent-nsa-spying/). | |
Re: I don't think you can do this with INSERT INTO [BLAHBLAH] SELECT \* FROM ds.tables("data") because you are using two connections. You can only do that type of insert when the databases are on the same server. You are not working with a large number of records so I'd just … | |
Re: I like the introduction of biometrics, but I heard the phrase "incredible new colours" used at the unveiling. Whoop-di-freakin'-do. **New** colours, ok. But **incredible**??? Talk about marketing overkill. I only hope the new colours can manage to live up to the hype. | |
Re: Welcome to penultimiate power. Bwahahaha. Wait. Did someone mention maturity ;-P | |
Re: > because he'll just be penalised for his success I seriously doubt that the rick (especially since Reagan) can legitimately claim to be punished. They are the only group that has seen their income rise significantly in the last few decades. They enjoy numerous tax breaks that are unavailable to … | |
| |
Re: If by user friendly you mean * we changed everything around for no good reason other than to sell you an upgrade * we removed the Start Button which many users find useful * we will toss you back into the Metro interface every bloody chance we get * we … | |
Re: I'm not sure I follow. If I reword your conditions (and keep the same meaning, I hope) I get 1. delete older versions if OPERATIONAL 2. delete older versions if NOT OPERATIONAL assuming that **delete REST ROWS EXCEPT HIGHEST version** means delete all rows except that row for the highest … | |
Re: It would help if you actually put some code in your **Catch** block otherwise you will never see that you are getting an error. Your first problem is that you are not opening the connection to the database. You commented out that line. Try cnanging your code to Try con … | |
Re: Make your other form the main form and add a custom settings variable at the user level then do Public Class frmMain Private Sub frmMain_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load If My.Settings.ShowSplash Then frmSplash.ShowDialog() End If End Sub End Class Public Class frmSplash Private Sub btnDisable_Click(sender As System.Object, … | |
Re: I don't see the problem. Of course, you didn't show us your code. The following works fine for my test file of around 5600 lines of text. Dim lines() As String = System.IO.File.ReadAllLines("D:\temp\Asimov, Isaac - Elija Baley 01 - The Caves of Steel.txt") | |
Re: Or in the insert you can do INSERT INTO mytable (picid,picture,recordListingID) VALUES((SELECT MAX(picid)+1 FROM mytable),'george.jpg',0) | |
Re: For parameterized queries using OleDb you have to use the syntax sSQL = "INSERT INTO faculty (FacultyName, Course, Address, Image)" _ & " VALUES(?,?,?,?) and you have to ensure that the parameters are added in the same order as they appear in the fields list. If you use SqlDb then … | |
Re: What you do is encrypt the text before you write it to the file. Then after you read it back in you decrypt it app -> encrypt -> file file -> decrypt -> app | |
Re: You'll find a couple of examples in the code snippets section. Here is [one](http://www.daniweb.com/software-development/vbnet/code/366392/encryption-and-decryption-functions-in-vb.net) | |
Re: I tried to upload a file using Firefox v23. I had to clear the cache before the browse buttons would render. But after sselecting the file I got no placement options so I had to cancel. I tried IE 9 and was able to attach the file but there were … | |
Re: If you care to hear one more comment, the Related Articles section takes up almost a third the width of my screen. This means that more code lines get wrapped. Would it be possible to add a gadget (like on Google Maps) that would collapse the Related Articles pael? ![]() | |
Re: Depending on the speed of your connection and the size of the file it might take a few seconds for the post-upload options to appear. | |
Re: You have to show some effort. We are not going to write this app for you. Even a minimal knowledge of vb is sufficient to write what you are asking. It's basic string manipulation. | |
Re: I can't speak in general but in Canada it was recently discovered that a number of workers who were brought into the country from India as temporary (then made permanent through a loophole) employees were found to have purchased their credentials rather than earned them through study. | |
Re: So your plan is to split the project into modules, then ask people on Daniweb to write each piece for you. Not cool. | |
Re: I've used Networx for a few years and I've never known it to report false numbers, however, if you have more than one computer inside your firewall it is possible that it is also reporting traffic between those machines. Although with the number you are reporting (20,000gb) I doubt that … | |
Re: Try Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim dic As New Dictionary(Of String, String) For Each cbx As ComboBox In Me.Controls.OfType(Of ComboBox)() For i As Integer = 0 To cbx.Items.Count - 1 dic.Add(cbx.Name & "-" & i, cbx.Items(i)) Next Next 'display the dictionary … | |
Re: Hard to say without knowing your database definitions, what your DBMS is and looking at this app in the debugger to get variable values, but I have two alternate suggestions: 1. Delete and recreate the database tables you want to override. The SQL query to do delete a table is … | |
Re: Does it spin up? Does the Windows Disk Manager (diskmgmt.msc) recognize it as a disk? Does it list any partitions? Depending on the degree of "crashness", SpinRite might be able to recover something. Hard to say without more information. It's like saying your car crashed and asking us if it … | |
Re: If you are connecting to a SQL server instance on your own (trusted) computer you can use Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=PUBS;Trusted_Connection=yes;") If you have installed SQLEXPRESS then the above connection string is sufficient. Just replace **PUBS** with the appropriate database name. If you need other strings you can find … | |
Re: That is against the daniweb [rules](http://www.daniweb.com/community/rules). The first rule states **Do ensure you own the intellectual property rights to everything that you post** | |
Re: Try changing [Fen_Inovoice_No]='" & TextBox1.Text & "'" to [Fen_Inovoice_No]=" & TextBox1.Text Without seeing your DDL I suspect that Fen_Inovoice_No is being stored as a number, in which case you do not need the single quotes. | |
Re: You'll have to give us a context. What are you trying to do? If it involves code then please show us the code. | |
Re: How about a global boolean named MinimizeOnClose which is normally set to True. You could set it to False in ExitToolStripMenuItem_Click. Then in Form1_FormClosing you could test for that and determine whether or not to hide or close. Then your menu handler becomes Private Sub ExitToolStripMenuItem_Click(sender As System.Object, e As … | |
Re: Any program that uses an expiry date is subject to being overridden by a program such as TimeStopper unless you can embed a call to an external (internet) time service periodically to get the actual date/time. | |
Re: That's not what we do. You have to show some effort. If you have specific questions then perhaps we can help with that. Besides, why reinvent the wheel? Windows will index your system for you. | |
Re: >Glad to be out of school for many years now :) Been down one time Been down two times I'm never going back again Fleetwood Mac | |
Re: Why don't you just wait until you actually start the job with Samsung before you go job hopping? | |
Re: Go to the root of your C drive and type dir ipconfig.* /s If it has disappeared from c:\windows\system32 you might still have a copy cached in a sub-folder which you can copy back to c:\windows\system32. Note, youy will need to open a command shell as asministrator to do that. | |
Re: We can't tell you what is wrong with your query unless you show us what the query looks like. It's likely a problem with a missing, superfluous, or mismatched single quote. You should rewrite your code to use [parameterized queries](http://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks). This will make the code easier to read and debug. | |
Re: You don't need to use SqlFileStream to store a PDF (or any binary file) into a database. See the example [here](http://www.daniweb.com/software-development/vbnet/code/461171/insert-a-file-as-binary-data-into-a-database) | |
Re: It's **not** a complicated thing and it does not require databinding. If your teacher says it **is** a complicated thing then I suggest you take everything he/she says with a grain of salt. Because this is an assignment I will not give you the code but here is a hint. … | |
Re: That would be true if OrdID is a non-numeric field. It is probably numeric and does not require single quotes. But I can't say for sure without seeing the table definition. cmd.CommandText = "UPDATE Sales " & _ " SET Order_Id=" & OrdID.Text & _ ", Order_Category='" & OrdCat.Text & … | |
Re: Do you get the same problem if you just try copying a file to that location using Explorer? Your code will write text to a file as long as you have permission. | |
Re: How could SO be using the same code when DaniWeb uses custom in-house code? | |
Re: Move all the messages in your gmail inbox into a new gmail folder that you create. |
The End.