698 Posted Topics

Member Avatar for viveks.nair1988

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.

Member Avatar for Geekitygeek
0
78
Member Avatar for steveh44

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 …

Member Avatar for Geekitygeek
0
76
Member Avatar for khan17

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.

Member Avatar for Geekitygeek
-1
186
Member Avatar for laptop545

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 …

Member Avatar for Geekitygeek
0
166
Member Avatar for Potato.Head

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 …

Member Avatar for Geekitygeek
0
3K
Member Avatar for Ap0ca1ypse

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 …

Member Avatar for Ap0ca1ypse
0
9K
Member Avatar for swinefish
Member Avatar for swinefish
1
122
Member Avatar for Krytikal

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 …

Member Avatar for Diamonddrake
0
582
Member Avatar for milosz

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?

Member Avatar for Diamonddrake
0
223
Member Avatar for bornwith

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 …

Member Avatar for bornwith
0
91
Member Avatar for stryker4526

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 …

Member Avatar for stryker4526
0
99
Member Avatar for bunnyboy

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]

Member Avatar for bunnyboy
2
180
Member Avatar for OsheRono

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 …

Member Avatar for Geekitygeek
0
199
Member Avatar for ckjie

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 …

Member Avatar for Geekitygeek
0
245
Member Avatar for abubeker

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 …

Member Avatar for Geekitygeek
-2
125
Member Avatar for Rohith Reddy

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

Member Avatar for Geekitygeek
0
101
Member Avatar for Dimansu

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 …

Member Avatar for Geekitygeek
0
106
Member Avatar for DanielaCrisan

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 …

Member Avatar for Diamonddrake
0
151
Member Avatar for DAVe3283

Also, by setting the Owner to your main form it should call the closing events of the child forms when the main form closes.

Member Avatar for Geekitygeek
0
817
Member Avatar for DaveTran

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 …

Member Avatar for Geekitygeek
0
132
Member Avatar for bobbysands

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 …

Member Avatar for nasavietnam
0
599
Member Avatar for chetanbasuray

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 …

Member Avatar for chetanbasuray
0
94
Member Avatar for eyal27

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 …

Member Avatar for eyal27
0
962
Member Avatar for aminit

arnab_zico, its great that the answer here helped you, but try to avoid resurrecting old htreads unnecesarily :)

Member Avatar for Geekitygeek
0
81
Member Avatar for user1980

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?

Member Avatar for user1980
0
188
Member Avatar for Lolalola

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 …

Member Avatar for Lolalola
0
90
Member Avatar for checho

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 :)

Member Avatar for checho
1
740
Member Avatar for tiwas

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.

Member Avatar for tiwas
0
79
Member Avatar for forhacksf

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 …

Member Avatar for Geekitygeek
0
247
Member Avatar for matt.clark.228

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.

Member Avatar for Geekitygeek
0
80

The End.