461 Posted Topics
Re: As JorgeM said, the class needs instantiating first. You could also make the method static and then it would function how you are trying to do at present. Static methods do not require class instantiation in order to be used. public static int compute(int a,int b) { return a*b; } … | |
Re: As mentioned above you need a Main method. The syntax above is not C# however and I think somebody got lost from his C++ forum :D The default C# main method is the following: static void Main(string[] args) { // Code goes here } This is occuring in your case … | |
So been working on a C# wrapper for the DW API for a while now and its moving into the closing stages of development and I will release it publicly after. Question I have is what would be the best way to do this and how? (I am still waiting … | |
Re: If the answer is `No` to the first question, the next four become difficult to answer without providing false data. | |
| |
Been running a couple of article queries this morning. When running `http://www.daniweb.com/api/articles?forum_id=61` I encountered what looks like a bug. The 11th thread reply coming back in the query is the following: { "title":"please help me .........", "related":[ { "id":"" } ], "posters":[ { "id":"1098860" }, { "id":"46588" }, { "id":"1091071" … | |
Re: The code is correct assuming those are the names of the objects. As **KM499** said, please provide the full code as there may be other interfering factors. | |
Re: **Please make a new thread for your issue instead of hijacking a two year old one.** The issue will be that you do not return a value in every possible outcome of the method you are in. For example if an if else statement you must return values in both … | |
Re: Please provide the code you are working with | |
Re: Have you tried a `this.Update();` after the call to `SearchEndDate();`? This will force the form to redraw. | |
Re: The duplicate did exist Ket, as it was I who flagged it. | |
Re: What have you got so far? I will happily help you with errors when stuck but I don't get paid to write the code for you, neither does anyone else on this site. | |
Re: Well I've just done it for fun, was interesting. My code is probably messy but oh well! Show us what you have done and we can help. | |
Running Dani's profile as an example I get the JSON back containing: "education":[ { "key":"education", "value":"B.S. Computer Science", "organization":"Hofstra University", "start":"September 2000", "end":"December 2005", "description":"I majored in Computer Science and minored in Business Computer Information Systems. I was in Upsilon Pi Epsilon, the Computer Science Honor Society run by the … ![]() | |
Re: As this was ressed.. some of us on the forum know a bit of both languages and can help you if needed. I will normally look at conversion topics when posted in C#, always fun to keep my VB.Net slightly active. | |
Re: What error do you get and on which line does it occur? It is difficult to help when you provide us with minimal information regarding the error. | |
Re: Are you sure the tool is compatible with C# then? The producer of the fingerprint tool sadly gets to decide how you connect to their products and so if the SDK exists in VB code, then that may be the only way to do so. What is the fingerprint tool? | |
Re: Also here: [Stack Overflow](http://stackoverflow.com/questions/21096722/apply-microsoft-offices-theme-to-my-windows-application) Watching this out of interest | |
Re: My corporate emails still use <img> tags and they show fine in my Outlook 2013. | |
Re: > am not able to arrange text in proper manner in text file. can you please tell me how to do it...? Make a new thread and we could tell you how to yes. Don't res and hi-jack a thread that is 5 years old and dead for over a … | |
Re: Would be better to start a new thread. By a single instance do you mean like one line or in one method? | |
I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. … | |
Re: Did I miss something in how this works? Assumption was that it would be like the usual notification emails but allows you to reply to the thread via the email. Instead I seem to be getting emails allowing me to reply to new threads in the community center than I … | |
Re: > i think you can add value of label in query string . and on page load event just check if it is post back then get the value from query string and set to label :P . This would allow the value to be changed by the user via … | |
Re: Can you show an example of what you wish to do. Also what code have you got so far? I am not paid to write your code for you. | |
Re: > Perhaps we all should stop driving? > Driving a car pollutes the air with cancerogenic substances and fine dust, which in the end will kill us all. I rather enjoy driving, I pay the tax for it, so will continue to do it. Most effective solution would be to … ![]() | |
Re: I would have come up with the same as Fenrir() from looking at your code. The above is the correct code for your commented out section around a confirmation. He just has omited code to save the record. | |
Re: A good attempt. Some improvements can be made which should help you progress your programming knowledge. Firstly when converting anything from one type to another we need some form of exception handling in place. Otherwise if I entered a letter your program would fall over. Here we can make use … | |
Re: There is a you can use `preceding-sibling` to do this. [Additional Info](http://www.w3schools.com/xpath/xpath_axes.asp) | |
Re: Don't see the point, would most likely be a drain on the servers and most people would do dev in an IDE. Maybe we should get an automatic grammar fixing device also :D | |
Re: Modify the constructor for the search form to take a parameter to tell it which tab to open and then use a switch block to handle the param value and open the right tab? Quite a messy way to do it but would work. | |
![]() | Re: > At least he isn't creating bogus accounts and endorsing himself. That would be pretty low. Or posting random questions in the Geeks Lounge to boost their ego, forgot that one too! |
Re: http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list The HomeAndLearn link covers database connections if memory serves correctly. | |
As far as I can see, to develop applications using OAuth we need to own server space to host a site? An application, when registered to DaniWeb, requires a URL to be provided. A desktop application obviously doesn't have one of these. When sending OAuth requests we have to provide … | |
Re: Could we see the full XML structure your using? Also an array wouldnt change order unless you changed the order programatically. | |
Re: > i have about 18 years of expirience banging tables :P only reason i dont have a drumkit at home is because of how quiet my neighborhood is , and how much the neighbors would like to keep it that way. I played guitar , until the neck bent and … ![]() | |
Re: New chat feature definately would be good, could get onto it within the work proxies then :) | |
Re: Assuming these sites are hidden in the dark corners of the internet, **which they are**, you would have had to have been specifically looking for it to 'stumble' apon it to then even start this debate. My question is: why were you looking? | |
Re: BMW Z4, hit 50k miles last week, brought in January around 43k. | |
Re: I can't replicate your issue. Works fine with: Console.Write("Enter your text: "); string Input = Console.ReadLine(); Input = Input.ToLower(); string Result = Input.Replace("remove", ""); Console.WriteLine("Edited text: " + Result); Console.ReadLine(); Sentence: "There is one word to remove in this sentence" Tested with "remove" and "removed", remove worked, removed didn't. | |
Re: You will attract alot more interest in helping if you show us what you have so far and what you have tried. | |
Re: It is worth noting you never shut connections to the database, close the connection after each call, it could be causing a hidden error (though unlikely as it would be an exception) | |
Re: You almost had it and had the correct idea moving the list declaration outside of the switch function, the small details are what caught you out though! string board = "1"; // Here we declare an empty list called icons List<string> icons = new List<string>(); switch (board) { // We … | |
Re: The Sleep function will pause the current thread it is called on. As this is the UI thread from what I can see it will simply 'pause' the entire program for that amount of time. You could use a background worker or second thread to handle the sound being played … | |
Re: http://www.connectionstrings.com/ Why is the application config unsecure in your situation? It is better practice to put the string here than inside the application so that it can be changed without re-compiling as you deploy to different environments. See the section in [this MSDN article](http://msdn.microsoft.com/en-us/library/ms254494.aspx) where it discusses encrypting the application … | |
Re: Putting the connection string the application config file is good practice and will allow for such changes without needing a re-compile of code. | |
Is it possible to stop the chat input box from remembering history? It is highly irritating :D Tried a quick fix using `autocomplete="off"` in the <form> tag of the html and it worked fine in terms of turning off the autocomplete however it stopped the chat entry box from clearing … |
The End.