282 Posted Topics
Re: My guess here is because all your return statements are within a for loop. If that loop is empty, then you would never return. However, if read this correctly your for loop is not a good idea. Because if there is any items in the first loop it will ALWAYS … | |
Re: I recently learned about Triggers myself. The one use I had for them, was I had a table with a collection of values, when I inserted the record (or updated it), I had a trigger fire that would take the values, ran a mathimatical equation using them and produce a … | |
Re: To be honest, this is pretty much how I would have built the table. One for the Employee, one for the Job, and then one to record each employee for each job. Now for me though I would have probably setup an AUTOINCREMENT type field for both Employee and Job … | |
Re: Quick question, where are we at with this? I have developed software to fade images in and out (transitioning them), and after many attempts have a good working solution (MIne was for a screen saver to fade in and out images, works smoothly, and does well with memory management) | |
Everytime I try to change my profile data (since the newest UI), I keep getting the error "This date appears to not be formatted correctly." I assume it's my date of birth, which I have tried multiple formats and it doesn't like em (it's now MM/dd/yyyy) | |
Re: My 2 cents. I used to do == false or == true. Now I do the 2nd option (looks cleaner, reducing clutter) | |
Re: Always love learning about past massive attacks. One of my personal favorites was I think SQL Slammer that used buffer overflowing to spread. I just find it interesting because of how easy it was to do However, now a days I don't think we have massive viruses like we used … | |
Re: That is one monster pattern! Did you write that? (and if so, how long did that take). So is this solved, or are you still looking for possible solutions to parse IPv6 | |
Re: I hope these higher categories with no lower categories is just temporary. | |
Re: Wow ... caught me off guard for a second there. I thought I was on the wrong page. New design is nice, I just miss having a top navigation bar (not a huge fan of if on the right side). Actually, am I looking at this right? I have to … | |
Re: Ahh man I missed the Regex fun (LOL I am addicted to using Regex, no joke a client gives me grieff for it) | |
Here's one that's stumping me. Does anyone know where in the registry the two-digit year regional setting is located? I am working on a system that refuses to apply this setting server wide, making it so we have to run windows services under specific log on accounts instead of a … | |
Re: So each row is (n + (n-1)), building on top of itself right? Couldn't you just for loop through each row in the table and just take the current row's value and add it to the lasts (you would of course then need an extra column). You could check the … | |
Re: I can easily help you with the XML, but I need to know what exactly you want written to the XML, and if you have specific structure in mind. Details on what needs to be done, and some context would greatly help all of us (just throwing up some code … ![]() | |
Re: When you simply do the "add existing project" it makes a reference to the project in whatever folder it resides in. This allows for you to edit a project externally, that might shared across multiple solutions, and they all can get updated. To get around this, move the project folder … | |
![]() | Re: Please use the one that simply does "get;set;" if you can. Then you don't have to declare a ton of extra variables (.NET 3.5 and up supports this) |
Re: The 2nd one is running a cmd prompt. A command you can run is `ipconfig /renew`. While I don't fully know what it does I have used it before when my internet is acting up to see if I can reset things and get everything back in line. However, usually … | |
Re: Wow didn't even know this library existed. I wonder if it can help with the last piece I need for my RSA key generation? Having trouble with the Extended Euclidian Algorithm (it only wants to work part of the time, but if I produce to large or random numbers, then … | |
Re: You sir are in luck. I have a piece of code I wrote for work that returns a DataTable's column as a collection. Built it as an extension even using System; using System.Data; using System.Collections.Generic; using System.Linq; /// <summary> /// Contains a collection of Extensions in relation to DataTables (as … | |
Re: Question, doesn't the logic apply recurssively, so after you change one index, you have to proceed to checking all the following? (Also aren't rule 1 and 3 the same? or am I misreading it?) I say recurssively, as that's how I would see doing it. Change one index then going … | |
Re: Can you please provide us with yoru Regex Match pattern? | |
Re: Okay going to ask ... how is Pig Latin written? Honestly, I've never actually learned it hahaha. I sense a possibility to have some Regex fun (queue Jaws music) | |
Re: Also, I assume it's a USB recieve communicating wirelesly? Is it RFID, Bluetooth, ext? (On a side note, anyone else get the feeling he's asking this to pull a prank on like a professor or something?) | |
Re: So what's the purpose of "Total Price"? If you are trying to pull it from the database, you do NOT need to add it to the params. I also point this out because you called the "ExecuteRead". That's what queries the Database, the read part is just reading what was … | |
Re: Anytime you need to invoke, it's because you are trying to access a piece of code within another thread. While threads offer the ability to run multiple tasks at the same time, they can't actually talk to each other straight out of the box. Because of this, you MUST Invoke, … | |
Re: Have you ever looked at using animations? I will admit I have only dabbled in WPFs myself, but have used them to fade images in and out. I did a quick google seach for it and found this http://stackoverflow.com/questions/12551823/wpf-animate-width-and-height-with-code-behind-zoom-in But you want to look at something like a DoubleAnimation. Sorry … | |
Alright everyone, I am at a lost here. I am working with log4net at my work, and have come to learn log4net can pipe its data to a telnet stream. I have setup the config for the log4net like so <appender name="RollingTelnetAppender" type="log4net.Appender.telnetappender"> <port value="1200" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date … | |
Re: WPFs also can run on DirectX if I recall right. If you remember I was working on a program to transition images, I ended up using a WPF because of its storyboard objects. The only thing I really hate about them, they are AWFUL when it comes to memory management. … | |
Re: I remember just yesturday I was doing some research about how to hide or disable certain classes that might be inherited (again I am using virtual here). Never the less, while looking for solutions, I did see throwing exceptions as a possibility. From an OOP perspective, that might be considered … | |
![]() | Re: I can personally recomment the library pritaeas suggested. I just recently used that library in a project for a client. It works VERY good (And has the ability to return results in a DataSet, allowing for dynamic JSON work). Oh yes and it has an MIT License which is always … |
Re: May I ask what is the purpose of the database connection? I ask this because I personally have never used that DataSet and what not but instead use the SqlConnection and SqlCommand objects. I then populate the data into a DataTable, a local variable, not a new item in a … | |
Re: Timers are rather easy to use, however, take note there are 3 different types (that share the same name). `System.Timers.Timer`, `System.Threading.Timer`, and `System.Windows.Form.Timer`. I personally like to use the Windows Form ones because that's what I usually use them with are forms. However, let's go ahead and use the first … | |
Re: Interesting, didn't know that's what dynamic did. Have you thought of making the classes virtual? So someone could inherit this design and override maybe those problemsome methods? So if you had two Person objects you tried to add, what would C# actually do in the code during run time? Does … | |
Re: PictureBoxes have BackgroundImages ... how the heck did I not know this. For the code, let me provide you with a few warnings I have learned over time of messing with images. First of all, if you can load the image in (if calling a seperate function) instead of passing … | |
Re: Well there are two approaches, the first is you could do a console application. For this you would have a collection of question, and display one at a time and wait for a user's response of "YES" or "NO" (watch your case-sensative checking there). Then as they enter their answer … | |
Re: So what's the exact question? Do you need help imporing ot exporting? or what? The way you wrote this, it looks like a school assignment. If that is the case you are out of luck here. DaniWeb is a forums that helps answer questions, not write your assignment for you. … | |
Re: I know it's been solved, but can I ask, would something like `.ToString("N0")`. That would return the number as a string, and chop off the decimal and everything past it (it won't handle rounding though, but I think some of the other number formats can do that, this explains it … | |
Hey everyone some let me give a quick run down what I got here. About a week ago I was with my family waiting to get a seat at a resturant (to watch the USA Woman's Soccer game). We had a long wait so I was watching my siblings play … | |
Re: Have you looked into the Interop logic for Excel in relation to C#? You could use that to to read values and then drop them into your ListBox. If you are interested in that, I might be able to provide some example code (I have been working with Excel files … | |
Re: Possibly you might be able to do. I know you can use this piece of code to convert a column from a DataTable into an array (value is the DataTable, and ColumnName is the column's name) `return value.Rows.Cast<DataRow>().Select(row => row [ColumnName]).Cast<T>().ToArray();` You might be able to do something like this, … | |
Re: List<string> MyList = ObjectList.Select(x=>x.ToString()).ToList() or string [] MyArray = ObjectList.Select(x=>x.ToString()).ToArray() Of course this all depends what the objects are in the List, this will work fine for basic types like integers, booleans, ext. But thinks like Form Components, if they don't have a specific `.ToString()`, you might get like a … | |
Here's a good one for everyone. I have been working on a Screensaver program for some time now (some of you may even remember questions related to this). Anyway, one of the biggest challanenges with developing it was finding a good way to transition images, smoothly, and not killing all … | |
Re: If that is a true Image object in System.Drawing that right there can cause serious memory issues. I speak from experience as I have been trying to design my own Image Selector component (as I hate the one C# uses because I can't figure how to thread it). Because of … | |
Re: Hey so quick question, did you happen to check the max limit yet? I quickly google SQLite's limits for Blobs and found something interesting > During part of SQLite's INSERT and SELECT processing, the complete content of each row in the database is encoded as a single BLOB. So the … | |
Re: Well you can at least from a time perspective, used the `System.Diagnostics.Stopwatch`library, and test the time it takes to initally load up everything at once, and what it takes to create them. How much data are we here? Some strings? Images? 100k+ record? Another trick is to use your Resource … | |
Re: Second what DaveAmour suggests, used a GUID. They are like 99.9% unique (or something along those lines). While I never did find the exact logic behind how they are produced, I do know that time is factored into it. Using time itself probably isn't the best idea because multiple piece … | |
So we have this software that we can use a Telnet client to tap into, sending and receiving data in VT220. The software when it initally connects, connects to port 23, and you simple send it an \r command, and which point you are then repointed to a login screen. … | |
![]() | Re: I personally love .NET just because of what it lets me do. There are tons of libraries for it, and thanks to Microsoft, more people are developing them Also, anything I can think up, I can usually do. You also have the MSDN website that has documentation on pretty much … |
Re: You know ddanbe, I think I still have it, but I wrote a Regular Expression pattern that could pick up functions (like what you listed there). YOu wouldn't be interest in that would you? It's been awhile since I used it, I wrote it for a program at work, where … | |
Re: I believe it's your Connection String. I did a quick search for the format of a MySQL connection string `Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;` Look at your password part. You did "PASSWORD=", when it should be "Pwd=" That would explain the error you are getting to (it never even makes a connection) |
The End.