4,901 Posted Topics
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 … | |
Re: My first two jobs paid peanuts but the experience was priceless and the work was fascinating. My first job was at what once was a hospital but by then had been converted to a rehab facility for children recovering from surgeries for burns and amputations. We also were a leading … | |
Re: I'd like aerial shots of the cottage and land. After that I can't think of anything. | |
Re: Use [TrueCrypt](http://www.truecrypt.org/). It's free and open source, very well supported and remarkably easy to use. | |
Re: It's a bit like driving a car. If you are going somewhere familiar you don't really think about what you are doing. If you are going someplace unfamiliar you have to watch for street signs and pay a lot of attention to every turn. | |
Several people have asked about storing binary data in a database. I coded up an example today that uses an ADODB.Stream to copy the binary data but after some fiddling I found a more direct way. If you are using MS SQL Server, the easiest way I have found is … | |
Re: Please start a new thread. Don't hijack a two year old thread. | |
Re: You could try Math.Truncate(yournum + 0.5) and convert it to Int if you require an integer. I hate the way vb does rounding which is different for even numbers than for odd. Math.Round(6.5) is 6.0 Math.Round(5.5) is 6.0 | |
Re: The first problem is that is not VB code so the syntax is completely wrong. Please ensure that your code is actually the correct language for the forum. Next problem - a boolean variable can not be "either class a or class b". It can only be True or False … | |
Re: You coded Using response1 = CType(ftp1.GetResponse(), Net.FtpWebResponse) dte = response1.LastModified Dim listviewitem As ListViewItem = New ListViewItem End Using but listviewitem goes out of scope as soon as you leave the **Using** block so declaring a new instance there is pointless. You then have Dim listviewitem As ListViewItem = New … | |
|
The End.