4,911 Posted Topics
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. | |
Re: Is **mybase** the name of the **purchase** form? If not then you have to have an event handler of the form Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub where you replace **Form1** with the actual form name as in Private Sub frmPurchase_Load(sender As System.Object, e … | |
Re: Could be a codec problem. Try downloading [gspot](http://www.afterdawn.com/software/audio_video/codecs/gspot.cfm). It will try to process the file and will tell you if there is a problem with a codec (bad or missing). Try installing [VLC Media Player](http://www.videolan.org/vlc/index.html). It's free and open source and can play just about anything. | |
Re: You should save the data in a way that makes it easy to parse when you read it back in. For example, if you save it as Milan - Arsenal;1 Real - Barcelona;2 Milan - Arsenal;7 Celtic - Milan;4 Real - Barcelona;2 Celtic - Arsenal;2 then you can read the … | |
Re: You can't tell what's wrong with a query unless you can see the query. After you create it do Debug.WriteLine(SqlCommand.CommandText) and post the results here. | |
I haven't seen this confirmed anywhere else yet. The article starts with >According to leaked internal documents from the German Federal Office for Information Security (BSI) that Die Zeit obtained, IT experts figured out that Windows 8, the touch-screen enabled, super-duper, but sales-challenged Microsoft operating system is outright dangerous for … | |
Re: See [Silent Circle shuts down encrypted email service over fears of NSA spying](http://www.daniweb.com/community-center/geeks-lounge/threads/460819/silent-circle-shuts-down-encrypted-email-service-over-fears-of-nsa-spying) and [Expectation of Privacy in the "Turing Era](http://www.daniweb.com/community-center/geeks-lounge/threads/451854/expectation-of-privacy-in-the-turing-era) | |
Re: Better to not refer to the control by name. In the Click handler do Dim btn As Button = sender sender.BackColor = Color.Red or more simply DirectCast(sender, Button).BackColor = Color.Red you might even get away with sender.BackColor = Color.Red | |
Re: Then there's always the option to set a timer for the given interval and do the processing when it expires. But using Thread.Sleep for a small interval like 2 seconds is not unwarranted. | |
Re: In my house we taught our children to eat well (lots of vegetables and lots of variety) and to limit junk food. 99% of our meals were made from scratch. People who claim they don't have the time are wrong. My wife and I both worked and we managed with … | |
Re: Then why all the hoo-hah over Google street view? Google had to blur faces and licence plates due to privacy issues which, when you think of it is pretty ridiculous with all the other surveillance cameras out there. | |
Re: Start by reading [this](http://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting) | |
![]() | Re: You can do an insert with fewer columns as long as the missing columns are not required or are auto-increment. For example, if you have the table (and I am defining it with pseudo keywords rather than actual keywords) Employee EmpID identity (auto-increment) primary key LastName string required FirstName string … ![]() |
Re: Just remember to put spaces between them. But I have to ask, why not just use a datetimepicker? That way you don't have to check for invalid dates like April 31 and the user can pick a date with one control instead of three. ![]() | |
Re: Did you happen to notice the **Code Snippets** thingy on the thread summary page? I suggest you browse through what's there. Specifically [Create controls at run time with events](http://www.daniweb.com/software-development/vbnet/code/423678/create-controls-at-run-time-with-events) | |
Re: It's a style of drumming. The only example I can think of was in an arrangement by Waldo de los Rios of the Haydn Toy Symphony, second movement. | |
Re: Please post the actual string value of SQLTambah so we can see the query you are running. | |
Re: Between two choices 1. me describing step by step how to install Windows XP 1. you reading the how-to and maybe learning something in the process which do you imagine I am going to choose? By the way, it is rude to pust in all uppercase. ![]() | |
Re: Seriously. Read a book. Make some effort to learn something before you start asking questions. | |
Re: Any beginning vb book or website will tell you that. Make a little effort please. | |
I recently had to send my laptop back to Dell for some warranty work and when I got it back it had the same problem as before it went in. I was told that they replaced the system board but I am having my doubts. I'm going to send it … | |
Re: What do you consider lower resolutions? I'm at 1440x900. | |
Re: You can do it by Private Sub ListBox1_MouseMove(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseMove Dim G As System.Drawing.Graphics = Graphics.FromHwnd(Me.Handle) Dim item As String item = ListBox1.IndexFromPoint(New Point(e.X, e.Y)) If item >= 0 Then TextBox1.Text = ListBox1.Items(item) End If End Sub | |
Re: Personally, I don't use any online storage. I don't trust any external service to securely maintain a copy of my data. I know that I can always use something like TrueCrypt in coonjunction with DropBox but that requires resynching the entire TrueCrypt container even if only one file in that … | |
Re: >The better you serve your customer's requirements, the more valuable you are. Again, it depends on what the customer's requirements are. Before I retired, a programmer in another department always met his deadlines with code for a critical project (water reservoir management as pertains to hydro-electric generation). He wrote his … | |
Re: Definitely java for the jobs but I urge you to learn Python if only because the language is so much different than C++ or java and it would do you good to learn to think about programming in a different style. I learned 7 programming languages back in my university … | |
Re: I'd have to see the table structures to be specific but to insert from another table you do INSERT INTO table1 (FName, LName) SELECT FirstName, LastName FROM table2 With this type of query, the SELECT statment replaces the VALUES statement. You can use all the usual parameters for the SELECT … | |
Re: jpg files are already compressed. You gain little (or nothing) by zipping them unless you just want to bundle multiple files in one archive. By zipping one file you just make the user go through an extra step to view it. | |
Re: Clicking on a control already sets focus to that control. If you want to do it dynamically you can do something like TextBox1.Focus() If you want to attach it to a hotkey then you can set the forms KeyPreview property to True and add Private Sub Form1_KeyUp(sender As Object, e … | |
Re: Is this for a school assignment? If so I would give you abour 2 out of 10 **if** your code worked. I would be happy to offer suggestions depending on the circumstances and the time you have available. I coded up my own version of the game for fun after … | |
Re: You can reference a control dynamically by name by Dim lbl As Label = Me.Controls("label_" & "2") lbl.Text = "splunge" | |
Re: If code is hard to read it ie either because of 1. the language 1. the programmer Some languages (APL, Perl) make it very easy to write unreadable code. Other languages make it slightly less easy but a programmer who lacks a decent style will write difficult-to-read code regardless of … | |
Re: @Habitual - sugar gliders. Hmm. Aussie? Two cats at the moment. In 30 years we've had three Irish Setters, one Shepherd/Husky cross and two cats other than the current ones. | |
Re: I'm assuming this is a homework assignment. If so then you have two good reasons to add comments to your code 1. you will probably lose marks if you don't 1. it will be easier for us to offer help if we know what your code is supposoed to do | |
Re: If we just used the daniweb logo as the default avatar then at a glance it would look like all the default posts were by the same person. As I understand it, the current default avatars are generated based on the username so each default avatar is unique. | |
Re: There are many ways in which code does not work. What happens at each step? Does the text on the button change from "Select.." to "Convert!"? Does the conversion get done? Is the problem that you are not setting it back to "Select.." when the conversion is completed? Where exactly … | |
Re: I like the change. It makes the NEW messages more distinct from messages I've already read. Thanks. | |
Re: If you store all of your images in a database (essentially in one file) then you lose access to all of the images if the database somehow gets corrupted (it can happen more easily than you think). If, however, you store all the images ini separate files, you only lose … | |
Re: I don't understand the reason for the sudden drop in traffic. Personally, I find posting in the new system much easier than in vbulletin. I don't care for live preview but that doesn't really get in the way of anything. I very much dislike to facebook tie-in but, again, that … | |
Re: If you are supposed to do it in VB6 then you are in the wrong forum. This is for vb.net. f it is VB6 then I can move it to that forum. Are you trying to write a program to solve for x, or to evaluate the formula for a … |
The End.