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


Author filtered by: Dave Kreskowiak [x]
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
Permission granted! Please, proceed.Or did you mean to ask a question??
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.
C#
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
Forum Message 10 May 2013  
That depends on your requirements. Most of the time, you don't need to exposes the ENTIRE set of properties of the constituent control(s). You can supply properties to expose only the control proper
Answer 9 May 2013   license: CPOL
HTTP error 500 is a general "The code failed or threw an error".There's only about a 1,000 different ways that can fail, so we're going to need more information. Look in the servers Application Event Log to find more.
Answer 9 May 2013   license: CPOL
First, it's only "urgent" to you. Unless you're paying out the nose for support, noone cares how urgent you think this is.Second, you're not describing a treeview in your example. It's just a simple list with the occasional header over a sub list. You have a couple of options:1) Just...
Answer 9 May 2013   license: CPOL
Sniff, sniff... Yep, smells like homework!Sorry, but the answers you got will probably get you a failing grade in your class. With the level of the assignment you got, there's no way your class covered the methods demonstrated in the answers you got here and the person teaching the class...
C#
Answer 9 May 2013   license: CPOL
Or, you could just do the entire thing in Word. What you're describing is called "Mail Merge" and you can print the entire document to a PDF "printer" without a single line of code.
Answer 9 May 2013   license: CPOL
100 posts?? OK, that's weird. I've never heard of any application that listens to 100 ports at the same time, nor any situation where it's justified.You might want to spell out EXACTLY what is going on with these 100 ports. Why do you think you have to use 100 ports? How much data is...

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


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