Click here to Skip to main content
Page 1 of 590
Page Size: 10 · 25 · 50


Author filtered by: Dave Kreskowiak [x]
Re: Finding Duplicate numbers by Dave Kreskowiak
Forum Message 14 May 2013  
First, you don't need that List. You're not trying to remember every single die roll. Second, you never compare the roll of the first die to the roll of the second. Once you do that, you simply i
Re: Entity Frame work by Dave Kreskowiak
Forum Message 14 May 2013  
Yeah, so am I, but, you have to "cheat" every now and then! A guide to posting questions on CodeProject
How to rotate button in vb.net by Dave Kreskowiak
Answer 14 May 2013   license: CPOL
In Windows Forms it's a giant pain in the ass. In WPF, it's incredibly easy!I think you're using the wrong application type...
Re: Entity Frame work by Dave Kreskowiak
Forum Message 14 May 2013  
Pete O'Hanlon wrote:I had porridge for breakfast. It was lovely. Oooh, as did I. I mixed in a bit of maple syrup and with a bit of br
Re: Entity Frame work by Dave Kreskowiak
Forum Message 14 May 2013  
And?? Oh well....thanks for telling us.....I guess. When you learn to talk to humans, be sure to let us know!
Forum Message 14 May 2013  
Purge1t wrote:I guess what i'm asking isn't possible. It's not possible because you're trying to violate Object Oriented Programming princ
Forum Message 13 May 2013  
The method shows up. In VB.NET, the default access modifier for a class method is Public. In C# it's private. You'd be better served by not depending on the defaults but explicitly declaring yo
Forum Message 13 May 2013  
That doesn't make sense either as you'd have to manually walk the tree to find the node that is selected. Not very efficient, is it?? The TreeView already has a SelectedNode property which will re
Answer 13 May 2013   license: CPOL
If the application you're looking for is a 32-bit app on a 64-bit system, the registry path will be HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe\...
C#
Answer 13 May 2013   license: CPOL
Normally, you DON'T remove threads from the pool. They sit there idle, waiting for work to do so you don't incur the rather large overhead of spinning a new thread up!If you've got questions about a particular library, you contact the author of that library. Just because you saw it in an...
C#
Forum Message 13 May 2013  
That should have been "A node contains a Nodes collection...". A guide to posting questions on CodeProj
Forum Message 13 May 2013  
Not so useful. Actually, pretty limiting in both security and performance. First, it's poor-performing code as it has to be compiled before use, at runtime. Access to variables might also have to
Change Busy Button Colour by Dave Kreskowiak
Answer 13 May 2013   license: CPOL
A button is never "busy" so your question is confusing people.You have a problem. The UI thread will be tied up by your "lot of code" that's running, so changing the color of the button won't do anything until AFTER your long running code because you've tied up the UI thread and it can't...
C#
Setup and Deployment by Dave Kreskowiak
Answer 13 May 2013   license: CPOL
The only way to do it would be to leep a licensing server on your end to maintain and verify license counts.When a user installs the software, they would have to supply a registration key of some kind. This key would then be used to validate that a license for their account is available on...
Answer 13 May 2013   license: CPOL
You're not explaining the problem and how you expect this stuff to work at all.You need admin priv's because you're writing to HKEY_LOCAL_MACHINE. Normal users cannot do that and there is no way around it.
Answer 13 May 2013   license: CPOL
You don't have any code in there to skip any lines, so it's loading all the lines into the ListBox.You have to enumerate the collection of lines, one-by-one, and only add the lines to the ListBox that you want, depending on some condition you didn't specify.The other benefit of loading...
C#
Answer 13 May 2013   license: CPOL
Permission granted! Please, proceed.Or did you mean to ask a question??
Answer 12 May 2013   license: CPOL
The Yahoo SMTP port is 465, not 25.You also need EnableSsl set to true on the SmtpClient object.
Answer 12 May 2013   license: CPOL
You don't need a database to have a DataTable and bind a GridView to it. You just need the DataTable object, to which you can add rows all you want. But, first, you have to define the DataTable. You need to add the columns to it, tell it what type of data they are going to hold, if there's a...
Forum Message 12 May 2013  
Just because it's a "simple" method to make your job easier, doesn't mean it's a good thing to put into the framework. The .NET Framework is already too heavy. That's why it has been split into Fu
Forum Message 11 May 2013  
You don't need it. Yeah, it's called an IDE and compiler. You have to do about the same thing in your code. Create an instance of the compiler and feed it not a string, not an object graph that r
Not an article... by Dave Kreskowiak
Forum Message 11 May 2013  
This is just a code dump. You've got nothing discussing the problem you're solving, the design of the solution, the background concepts, how key parts of the code works, ... nothing. Write the art
Forum Message 11 May 2013  
Damn dyslexic fingers! And I did it twice! Grrrrr A guide to posting questions on CodeProject[
step and stone algorithm by Dave Kreskowiak
Answer 11 May 2013   license: CPOL
WOW!! Just an incredible demonstration of absolutely no patience on your part at all!We're not sitting around (on a weekend mind you!) just waiting for you to post a non-question so we can jump right on it. We all VOLUNTEER our time here and answer questions when we can, NOT WHEN YOU...
C#
Answer 11 May 2013   license: CPOL
You're using string concatentation inside a string.Format call?? WTF? Simplify this so you can read it!string query = string.Format("UPDATE [{0}] SET number={1} WHERE code={2}", tableName, x, txt_code.Text);I would HIGHLY suggest you do not build SQL statements like this, but instead...
C#
Answer 11 May 2013   license: CPOL
You package it up the exact same way to do any other .EXE. You compile your solution, then obfuscate the binaries, then package them up.Oh, please don't use the Setup and Deployment project in VS2010 and below. It's deprecated and no longer supported in VS2012 and above.Use a 3rd party...
Forum Message 11 May 2013  
Oddly, peanuts are not a nut (fruit). They are a legume, or you can call them "beans". A guide to post
Forum Message 11 May 2013  
Ummmm...yeah. I hate to tell you this, but, you ARE wierd. It's OK though. We here at CP are all wierd in some way, so we welcome and accept you unconditionally.
Not an article... by Dave Kreskowiak
Forum Message 11 May 2013  
Articles are like research papers. They discsuss a topic in depth. What problem is being solved? How was the solution designed? What are the background concepts? How does key parts of the code wo
Answer 10 May 2013   license: CPOL
Append a Environment.NewLine and then the use.innertext.
C#
Answer 10 May 2013   license: CPOL
By reading the specification documentation on the algorithm and writing code to implement it.You REALLY didn't think anyone was going to write the code for you, did you?
C#
ask answers about C# by Dave Kreskowiak
Answer 10 May 2013   license: CPOL
It means the person/account running the code doesn't have permissions to execute whatever WMI function you were trying to use.With a name like "spy", I doubt your intentions are above board.
C#
Answer 10 May 2013   license: CPOL
You should NEVER place anything in the C:\Windows\Microsoft.NET folders. They are strictly for the .NET Framework. It you have a shared library that's used by more than one application, then you can sign it and put it in the GAC or some other place as your requirements dictates, but NEVER...
Forum Message 10 May 2013  
There is no such thing as a "best practice" specific to a service for saving "data". It depends on the data and the business requirements for handling it. You also forgot files of other formats an
Not an article... by Dave Kreskowiak
Forum Message 10 May 2013  
Task out the screen shots and the code snippets and there's nothing left. Articles are like research papers. They discuss the topic at hand in depth.
Answer 10 May 2013   license: CPOL
It has nothing to do with the number of controls on your form. It's more than likely you're creating new drawing objects (Pen, Brush, Graphics, ...) and not disposing them when you're done using them.You can get "OutOfMemory" exceptions for a number of reasons that don't have anynthing to...
C#
Answer 10 May 2013   license: CPOL
First things first.You're so concerned about the UI in this post, but do you have working code that can track an object at all?? That's going to be FAR harder than having the user draw a box with the mouse.The problem you have is that computer vision is in its infancy. How are you...
Answer 10 May 2013   license: CPOL
Users don't have Write permissions to Program Files. It's that way for a reason. You shouldn't be writing anything to any folders under Program Files in your application. The data should be written to more accessible and appropriate locations. Check the Environment.SpecialFolder enum[^]...
C#
Forum Message 10 May 2013  
There's nothing special here. It's a standard serial port trans/receive app. It doesn't matter what you're talking to or what parameters you're using.
Re: VB + SQL Dbase by Dave Kreskowiak
Forum Message 10 May 2013  
You need the ACE Runtime installed, not all of Access or Office. A guide to posting questions on CodePr
Forum Message 10 May 2013  
It's all media hype. It's an average month of patches according to the Advanced Notification MS puts out, only 2 Criticial Bulletins. ...and it'll only take 1 reboot to install them all.
Re: VB + SQL Dbase by Dave Kreskowiak
Forum Message 10 May 2013  
How else is the database going to run?? Yes, you have to install the MySQL database engine on the machine.
Forum Message 10 May 2013  
You're not going to get that in the VB forums... VB6 has been dead for a long time and it's very unlikely you're even going to find a solution that's not wrapped in a class. Here's a thought. S
Re: Not an article by Dave Kreskowiak
Forum Message 10 May 2013  
This wouldn't even make a good tip. You've got no discussion of anything at all. It's just a code dump...
underwhelmed... by Dave Kreskowiak
Forum Message 10 May 2013  
Oh....look.... The 1,000,002nd article on the Factory pattern. yippee. A guide to posting questions on
Not an article... by Dave Kreskowiak
Forum Message 10 May 2013  
This is just a large code dump. To be an article, you need to supply an in-depth discussion of the problem you're solving, the design of the solution, how key sections of the code works, pros and c
Forum Message 10 May 2013  
No problem. A guide to posting questions on CodeProject[
Plagiarised! by Dave Kreskowiak
Forum Message 10 May 2013  
Look, copying someone elses work is never a good idea. Especially since the work you copied is COPYRIGHTED MATERIAL!! :mad: You lifted this straight from the book "Pro LINQ: Language Integrated Q
Forum Message 10 May 2013  
There's already a class written to do this: Microsecond and Millisecond C# Timer[
Forum Message 10 May 2013  
The point behind a UserControl is to create a custom control with a bunch of other controls as children, all working as parts to solve a common goal. For example, a TextBox and a button next to it

Page 1 of 590
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid