698 Posted Topics
Re: Here at daniweb, we dont mind helping others to learn, but the [URL="http://www.daniweb.com/forums/announcement61-2.html"]policy [/URL]is to help those who help themselves. A quick google search for "MYSQL JOIN" turned up [URL="http://dev.mysql.com/doc/refman/5.1/en/join.html"]this[/URL]. Have a go for yourself then post if you have any specific problems. | |
Re: Neither way is [B]wrong[/B]; either one is a valid method for passing values to a new object. Which one you use depends more on the situation. For instance, if you have a value that is manadatory or required whilst instantiating the object then placing it in the constructor ensures that … | |
Re: Please dont resurrect old threads, start a new thread instead. Aslo, you have posted an ASP.NET and VB issue in the C# board. You're more likely to get the help you need if you post in the relevant boards. | |
Re: OK, couple of things...the method given above is a good way to do it...you want to colour the rows when they are bound so use the RowDataBound event to do it. It saves you iterating through all your rows. Secondly, you are checking each row of the datagrid's [B]before[/B] you … | |
Re: There is also LastIndexOf() which searches from the end of the string working backwards. You can optionally provide a starting index: [CODE] string s = "test.test.test"; int LastIndex = s.LastIndexOf("."); // 9 //search includes character at startIndex so use LastIndex - 1 to avoid matching the same character int MiddleIndex … | |
Re: Without seeing code its hard to say with any certainty. I had a similar issue in the past and if i remember correctly i fixed it by resetting the ValueMember before i accessed SelectedValue: [CODE] combobox1.ValueMember = "CategoryID"; string selectedID = combobox1.SelectedValue; [/CODE] It was a while back and i … | |
Re: Are you using a streamreader? If so, have you tried checking the reader.EndOfStream property? | |
Re: You could set up a [URL="http://msdn.microsoft.com/en-us/library/system.threading.manualresetevent(VS.71).aspx"]ManualResetEvent[/URL] to determine pause state. Without going into the nitty gritty (i'll let you do the reading :p), the ManualResetEvent has two states; signalled and unsignalled. If it is unsignalled, any time a thread calls WaitOne() on the event it will pause until the event … | |
Re: Can you be more specific: what does your image contain? ie, is it a white background with a rectangle on it which you wish to fill or is it an actual image that you need to search for a particular part of? | |
Re: First, you are correct in thinking that the count is used for inserting the next record. I would advise you look into the List<T> datatype though. Your code uses an array of strings and is initialised with a size of 10: [iCODE]string[] names = new string[10];[/iCODE] This means you can … | |
Re: You're entering an endless loop because of your while statement. You are setting j=0, then your while loop is based on while (j==0). If anything is incorrectly filled out then it shows the messageboxes, but it doesnt give the user a chance to change them. It gets to the end … | |
Re: You have pretty much answered your own question: "return me only values form cells [B]where table header is DATUM and Maloprodajna cena [EUR/L][/B]" Check out the [URL="http://msdn.microsoft.com/en-us/vcsharp/aa336760.aspx"]LINQ Where claus[/URL] | |
Re: depending on how you connect to your database, you could build the query dynamically. For instance, use a struct to populate the combobox with DisplayMember set to a user friendly string and the ValueMember set to the matching column name (eg Display = "First Name", Value = "fName"). Then when … | |
Re: Are you placing your ServiceClient() and StartListening() methods inside classes? CS1518 is caused by declaring something other than a class, delegate, enum, interface, or struct in a namespace. CS1001 is caused by using something other than an identifier where an identifier is expected; an identifier is the name you give … | |
Re: As ddanbe rightly pointed out, if you are in your final yewar you [B]must[/B] have come across some area of your studies that you really enjoyed or were really good at. The spectrum of projects is so vast that we could sit here doing all the brainstorming for you and … | |
Re: Path.GetExtension([I]filePath[/I]); can also be used to return the file type extension. If you have written a class then i expect your class has a method which reads the file and returns a thumbnail, since thats the behaviour you wish to alter, you can place the above code inside that method. … | |
Re: Just a note, if you want to be certain then use both methods...you can never be too careful with user input :p One of the big flaws with the KeyPress approach shown above is that it wont fire if they paste a value (valid or otherwise) into the textbox. How … | |
Re: I'm not sure why you are getting a warning about 'n' since it is assigned to then used in a comparison. But you should be getting an error about 'i' since it is never declared so it doesnt exist in the context that it is used. The error about your … | |
Re: Also, by setting the Owner to your main form it should call the closing events of the child forms when the main form closes. | |
Re: How they are grouped or ordered makes no difference to the app once it is compiled. The ordering/grouping is purely for your benefit whilst coding, and the benefit of those who may need to read your code in the future for review/maintenance/update. If you aren't coding in an environment that … | |
Re: Are you getting this error from within TOAD? If so, you might want to try posting on the products own forums as its unlikely you will get product specific help here. The error message itself is pretty straight forward, the user you are connecting to the database with does not … | |
Re: SQL is pretty close to spoken language...just write out what you are asking for: SELECT transactions FROM yourtables WHERE transaction date between date 1 and date 2. All you need then is to use the right table and column names and you're pretty much done...for the between you can either … | |
Re: This can occur if the frist eight rows of the column contain only numeric values. By default, the ODBC driver will read the first eight rows and then guess the datatype based on the values. You can specify a higher number in the conenction string but a current bug prevents … | |
Re: arnab_zico, its great that the answer here helped you, but try to avoid resurrecting old htreads unnecesarily :) | |
Re: I may be overlooking the obvious here since i dont really work in ASP.NET much, but doesnt Enabled = "false" in your validators declaration mean that it is not active? | |
Re: Start time is a secured property, you can add your user to the Performance Log User Group to access most processes but i think there are still a few that are denied. Do you need the start time for ALL processes or are you trying to get the info for … | |
Re: You might wanna check [URL="http://en.wikipedia.org/wiki/Subset_sum_problem"]this article[/URL]. The subset sum problem is used to demonstrate the NP-Complete complexity class. Also, hats off to apegram for simultaneously presenting a well written method and demonstrating the best way to right one :) | |
Re: Apologies if i've missed something here; trapped an app? Could you explain what you mean (with code sample if possible). You can apply transformations to the graphics object in the panels Paint event to resize whats drawn, but i'm not sure how that would apply to what you are doing. | |
Re: First off, i'm impressed that as a new coder you used a single button for the numbers 0-9. Most beginners would have had 10 different buttons for that, you are already thinkin like a coder :) If you want to mimic the windows calc then when the user presses a … | |
Re: alternatively, take a look at the dock and anchor properties in the designer. They control the size and location of a control relative to its container. |
The End.