- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Student at University - Eager to develop my skills in programming and understanding concepts of Computer Science.
I love to meet new people and learn something new every day!
- Interests
- The occasional console games on Playstation Three / Warcraft III. Playing football, tennis and badminton.
I am using: underscoredWord = Regex.Replace(word, "[^" + correctLetters + "]", " _"); for my Hangman game. It basically chops the word up and replaces all the text with an underscore. This works fine if the guessing word is only "one word". So the word: "Building" will get converted to: … |
|
I am trying to learn how to make a mobile phone communicate with a server and a database. So far, I have made a web-service on my PC using this tutorial: http://msdn.microsoft.com/en-us/library/ms733069.aspx The above tutorial makes a sortof WCF service. What would be the best Database system for me? Simplicity … |
|
Hi Folks, I am trying to make default AppSettings in my App.Config. My Program, or part of it, requires an email template and I wish to save this template within a HTML File on my HDD. In my App.Config, I simply want to specify multiple keys such as Subject, Recipient … |
|
Hi Forum, hope your all well and working hard. Right so, i'm a C# programmer, so i'm already in the whole .NET idea. I have a couple of questions regarding ASP.NET. 1) Like C# is Microsoft's reply to Java, would I be correct to think ASP.NET is Microsoft's reply to … |
|
Re:
Hello Friends, I have created application which can be work In Online Mode(GPRS) and Offline Store(Recordstore). Its working fine in default configuration and touch configuration. But its not working on QWERTYDevice(In emulator as well as On real Mobile Device(Nokia X2-01)). In Emulator I am getting This Error : [CODE=text] java.lang.NegativeArraySizeException … |
|
Hi Forum, I'm currently working on a project where I create a form in Javascript/HTMl(easy). By form, i mean an actual form where it shall contain combo boxes, drop-down lists, buttons etc. Something like a questionnaire. That's all good and simple enough. However, how can I use this questionnaire/form to … |
|
Hey forum, When we make a button on our WPF form and double click on it, we get the following code generated for us: [CODE] private void button1_Click(object sender, EventArgs e) { }[/CODE] Now obviously, the button is a _Click method which basically means that whatever code that goes within … |
|
[url]http://alibimurders.co.uk/index.html[/url] That is my website. If you look at the top, you can see links which don't do much at the moment but will contain urls for different pages. The problem I have is how can I make them in to tab like images. For example, if you open up … |
|
Hi everyone, I know there's a section designated for Mobile Development but, that's really dead and It wouldn't hurt anyone if I posted here - It's a C# related question anyway. I'm making a Naughts and Crosses game on my Windows Mobile - HTC. The game works fine, I can … |
|
Hi there, I'd firstly like to thank some of the daniweb members for helping me with my Hangman project. It's finally complete and I have uploaded it on my YouTube. Special thanks to [B]ddanbe, Xcelled194, Mitja Bonca and Momerath[/B]. Right, on to my next project. I'm making a Naughts and … |
|
Re:
Hey C# people, Sorry for my topic title, I honestly didn't know what else to call it. I'm a Java developer and I'm looking into learning C#. I've read up a bit on it but I'm rather confuzed (as expected)... 1) Firstly, in java you can choose to use an … |
|
I have a .wmv file which is 3 seconds long. I want it to play at a certain part of my program. Any ideas? |
|
Hi there, As you may or may not know, CPU-Z is a free software which can be downloaded online to help the user understand what components he or she has inside their computer. Components such as CPU, RAM, Chipset and certain helpful aspects of hardware such as RAM speed. I'm … |
|
Re:
You can get your hands on to usefull information from within your C# program. Use the static System.Environment class! Take a look at this snippet, which can be used as is in a Console application. I have not exhausted all the possibilities, if you want you can look them up … |
|
I have two Forms in my project. The first one I made makes the program exit if I hit 'X' button at the top of the window which is obviously normal. But that's not the case with the second form where If I hit the 'X' button then the Form … |
|
I still can't seem to think, syntactically, how to implement this. The logic of the code is in my head, actually, a couple of ways to do it is clear but I'm having trouble in creating a solution for the core part of my game. So far so good, I've … |
|
Hi there, I'm making a Hangman game and stuck on this part: [CODE]public void Game(string letter) { if(word.Contains(letter)) { int index = word.IndexOf(letter); } }[/CODE] I am testing whether my string variable word contains a letter. If it does, it gets the index. (Yep, I used the IndexOf class) Now … |
|
How to I check whether a given character is within a string, well that's easy: [CODE]if (myString.Contains(myChar)) { //TODO Logic }[/CODE] But, What I want is to get the index of the char |AND| get the index of the same char if it is in the word more than once. … |
|
Hi there, I'm trying to learn how to work with phpMyAdmin and Visual Studio. I've created a database in phpMyAdmin and called the database "business". I've also created a table called business information with some fields but no data. Any idea how I can connect to the database? Regards Usmaan |
|
If I make a program, how do go about, well, actually publishing it? In the sense that I can make it in to an icon on my desktop and open it etc.... Any ideas? |
|
Hi Folks, I've added two pictures of my set-up. It's a XPS 8000 with a BLU-LED LCD Samsung BX2450 Monitor. The only problem with the PC is the low powered power-supply and cheap graphics card. To be precise, 350W PSU and a weak 512MB ATI HD 4350 Graphics Card. Do … |
|
Re:
Hi, now i do the sorted list for the combination i did. I want to read the data to the sorted list. But my foreach loop always had error. i fix it many times already but still can not solve it successfully. I will attach my coding. Hope someone can … |
|
Having a lot of trouble in my quest to complete my Hangman game. I've made an alteration to the program though. Rather than having a text box and the user typing a letter in, I've decided to add command buttons from A-Z. I can't seem to pass the letter to … |
|
Pardon me for not having an appropriate title. I'm making a program which seems to be working so far - but, I've stumbled on a bit of a tricky dead end. Basically, If I have a string or char variable, say: [CODE]string input = "H";[/CODE] And I have another string … |
|
Hi guys, Sorry the title is vague. Couldn't come up with one. Ok so I have a int variable which is, let's say, of the value 5. Now I want to create a string which contains underscores, so: "_____" the amount of underscores is the same value of the integer. … |
|
Hello all, This one's a bit of a cheaky one....and tricky. So i've managed to read a text file - that's brilliant. Now, I wish to select a random word from there where the text file looks like this: Blue Red Purple Pink etc. All I want to do is … |
|
Hi there, If I have two Forms, for example: Form1.cs and Form2.cs and one Form1, there is a button which if clicked, it would close Form1 and open Form2. How would you go about doing that? And is there any better way of implementing this? (This is something I'm considering … |
|
Yes, i'm a noob - Bite me. And yes, I've read seemingly countless tutorials which explain, or, "try" to explain what a "Constructor" is. Obviously, they failed to digest in my brain. Is there any well-to-do person in here who can help me? Is there anyone who can possibly explain … |
|
Hi Folks, I am creating a GUI application and I've come to a situation where I need to check whether a button has been clicked. So logically: ---If--- the "button" has been clicked -> Do this. As soon as that button is clicked, it should jump to a method which … |
|
Hi Folks, A couple of questions... If in a class I have a main which is obviously static, do I have to make every method in the same class static as well? What does static actually mean and how does it affect the program? Also.. When given a certain method … |