4,901 Posted Topics

Member Avatar for guente

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 …

Member Avatar for guente
0
2K
Member Avatar for cuivenion

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.

Member Avatar for cuivenion
0
366
Member Avatar for razree

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 …

Member Avatar for razree
0
181
Member Avatar for Dili1234

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.

Member Avatar for khair.ullah
0
159
Member Avatar for Reverend Jim

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 …

Member Avatar for jwenting
0
265
Member Avatar for coroneshotel2

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)

Member Avatar for jwenting
0
111
Member Avatar for melanie.braley

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

Member Avatar for DM Galaxy
0
8K
Member Avatar for Ahmed.C

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.

Member Avatar for deceptikon
0
185
Member Avatar for matthewwhite011

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 …

Member Avatar for Reverend Jim
0
962
Member Avatar for wplay

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.

Member Avatar for stultuske
0
285
Member Avatar for Pheyishayor
Re: exe

Start by reading [this](http://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting)

Member Avatar for DM Galaxy
0
98
Member Avatar for Rahul47

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 …

Member Avatar for Rahul47
0
203
Member Avatar for Paolo_1

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.

Member Avatar for Rahul47
0
154
Member Avatar for vamsi.siddhani

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)

Member Avatar for Reverend Jim
0
220
Member Avatar for Xantipius

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.

Member Avatar for Reverend Jim
0
189
Member Avatar for vividiah
Member Avatar for vividiah
0
2K
Member Avatar for arun.mmassy

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.

Member Avatar for Everyauction
-1
181
Member Avatar for said ahmed

Seriously. Read a book. Make some effort to learn something before you start asking questions.

Member Avatar for Reverend Jim
0
115
Member Avatar for said ahmed

Any beginning vb book or website will tell you that. Make a little effort please.

Member Avatar for Reverend Jim
-1
68
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
186
Member Avatar for Ancient Dragon
Member Avatar for gerbil
0
202
Member Avatar for nikki05

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

Member Avatar for nikki05
0
1K
Member Avatar for kRod
Member Avatar for minitauros

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 …

Member Avatar for Reverend Jim
0
555
Member Avatar for theguitarist

>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 …

Member Avatar for Reverend Jim
0
386
Member Avatar for Trap910

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 …

Member Avatar for vegaseat
0
283
Member Avatar for daniel0816

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 …

Member Avatar for Reverend Jim
0
119
Member Avatar for Stuugie

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.

Member Avatar for Reverend Jim
0
75
Member Avatar for nikki05

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 …

Member Avatar for Reverend Jim
0
3K
Member Avatar for babyluxe03

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 …

Member Avatar for babyluxe03
0
1K
Member Avatar for Patrick_3

You can reference a control dynamically by name by Dim lbl As Label = Me.Controls("label_" & "2") lbl.Text = "splunge"

Member Avatar for Patrick_3
0
383
Member Avatar for Assembly Guy

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 …

Member Avatar for Dani
1
282
Member Avatar for jingda

@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.

Member Avatar for <M/>
0
430
Member Avatar for akasekaihime

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

Member Avatar for knechod
0
601
Member Avatar for nitin1

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.

Member Avatar for nitin1
0
253
Member Avatar for Trle94

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 …

Member Avatar for ddanbe
0
203
Member Avatar for Dani

I like the change. It makes the NEW messages more distinct from messages I've already read. Thanks.

Member Avatar for Ketsuekiame
0
294
Member Avatar for paulkd

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 …

Member Avatar for Reverend Jim
0
207
Member Avatar for Dani

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 …

Member Avatar for Dani
0
2K
Member Avatar for GreaterThanYouAndMeCombine

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 …

Member Avatar for Reverend Jim
0
140
Member Avatar for nitin1

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 …

Member Avatar for nitin1
-1
509
Member Avatar for happygeek

I'd like aerial shots of the cottage and land. After that I can't think of anything.

Member Avatar for ChrisHunter
0
192
Member Avatar for karabomoeng

Use [TrueCrypt](http://www.truecrypt.org/). It's free and open source, very well supported and remarkably easy to use.

Member Avatar for Reverend Jim
0
147
Member Avatar for london-G

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.

Member Avatar for <M/>
0
119
Member Avatar for Reverend Jim

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 …

0
2K
Member Avatar for chloie
Member Avatar for Rajiv9

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

Member Avatar for Rajiv9
0
2K
Member Avatar for sushilsth

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 …

Member Avatar for Reverend Jim
0
120
Member Avatar for Ahmed.C

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 …

Member Avatar for Ahmed.C
0
401
Member Avatar for Klahr_R

The End.