461 Posted Topics

Member Avatar for masterinex

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; } …

Member Avatar for Mike Askew
0
148
Member Avatar for 404notfound

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 …

Member Avatar for Mike Askew
0
84
Member Avatar for Mike Askew

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 …

Member Avatar for Ketsuekiame
0
165
Member Avatar for Muni123

If the answer is `No` to the first question, the next four become difficult to answer without providing false data.

Member Avatar for jwenting
0
144
Member Avatar for saintchuks
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
1
405
Member Avatar for Ancient Dragon
Member Avatar for Stuugie
0
148
Member Avatar for blue51

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.

Member Avatar for ddanbe
0
220
Member Avatar for Chair

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

Member Avatar for pritaeas
1
9K
Member Avatar for </scorpion>
Member Avatar for jaimin4829

Have you tried a `this.Update();` after the call to `SearchEndDate();`? This will force the form to redraw.

Member Avatar for Maligui
0
291
Member Avatar for Ketsuekiame
Member Avatar for Ketsuekiame
0
306
Member Avatar for Muhammad_52
Re: c#

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.

Member Avatar for Mike Askew
0
115
Member Avatar for hxn xfir
Re: Help

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.

Member Avatar for JOSheaIV
0
817
Member Avatar for Mike Askew

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 …

Member Avatar for diafol
1
373
Member Avatar for KushMishra

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.

Member Avatar for JOSheaIV
1
452
Member Avatar for pathum_1

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.

Member Avatar for Ketsuekiame
0
188
Member Avatar for ade.julianto

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?

Member Avatar for Mike Askew
0
1K
Member Avatar for MARKAND911

Also here: [Stack Overflow](http://stackoverflow.com/questions/21096722/apply-microsoft-offices-theme-to-my-windows-application) Watching this out of interest

Member Avatar for Fenrir()
0
284
Member Avatar for VasquezPL
Member Avatar for VasquezPL
0
356
Member Avatar for dearrajaguru

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

Member Avatar for Mike Askew
0
523
Member Avatar for king03

Would be better to start a new thread. By a single instance do you mean like one line or in one method?

Member Avatar for brite_a
0
8K
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
478
Member Avatar for nauticalmac
Member Avatar for Dani

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 …

Member Avatar for Ancient Dragon
0
621
Member Avatar for gurunathan_1

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

Member Avatar for KushMishra
0
2K
Member Avatar for abdallah_adiga

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.

Member Avatar for KushMishra
0
144
Member Avatar for pritaeas

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

Member Avatar for diafol
0
981
Member Avatar for </scorpion>

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.

Member Avatar for Mike Askew
0
1K
Member Avatar for jeenalp

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 …

Member Avatar for Mike Askew
0
335
Member Avatar for de4ever

There is a you can use `preceding-sibling` to do this. [Additional Info](http://www.w3schools.com/xpath/xpath_axes.asp)

Member Avatar for Mike Askew
0
86
Member Avatar for <M/>

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

Member Avatar for Mike Askew
0
251
Member Avatar for mohamedrani

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.

Member Avatar for Mike Askew
0
182
Member Avatar for Warrens80

> 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!

Member Avatar for GrimJack
-13
641
Member Avatar for regash

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.

Member Avatar for Mike Askew
0
136
Member Avatar for Mike Askew

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 …

Member Avatar for Dani
1
639
Member Avatar for pjrey

Could we see the full XML structure your using? Also an array wouldnt change order unless you changed the order programatically.

Member Avatar for pjrey
0
316
Member Avatar for <M/>

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

Member Avatar for diafol
0
236
Member Avatar for harinath_2007

New chat feature definately would be good, could get onto it within the work proxies then :)

Member Avatar for Dani
1
239
Member Avatar for asif49

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?

Member Avatar for Ancient Dragon
0
870
Member Avatar for Ancient Dragon
Member Avatar for GrimJack
0
395
Member Avatar for WEB-REPORTER
Member Avatar for diafol
-8
318
Member Avatar for ramy84

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.

Member Avatar for Fenrir()
0
376
Member Avatar for prabhakar78

You will attract alot more interest in helping if you show us what you have so far and what you have tried.

Member Avatar for pitic
0
436
Member Avatar for alek.mieczkowski

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)

Member Avatar for alek.mieczkowski
0
232
Member Avatar for Triryche

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 …

Member Avatar for Triryche
0
267
Member Avatar for Triryche

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 …

Member Avatar for Triryche
0
328
Member Avatar for soni chiraniya

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 …

Member Avatar for Mike Askew
1
170
Member Avatar for saintrenz

Putting the connection string the application config file is good practice and will allow for such changes without needing a re-compile of code.

Member Avatar for Mike Askew
0
87
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
1
212

The End.