- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
34 Posted Topics
Re: If you're new to C#, then it's just : combobox1.items.add(object); To add 1 item. | |
Re: this also does the trick to convert from hex -> number: int.Parse(Hex, System.Globalization.NumberStyles.HexNumber); for bigger value long.Parse(Hex, System.Globalization.NumberStyles.HexNumber); other way round string hex = Value.ToString("x"); | |
Re: I guess you have a Form1 Class which running in the first place. You created another Form class and run the the method in that class. So the method will update the will be update the textbox in the new class not the current running class. Try to put the … | |
Re: Try this. [url]http://www.hieu.co.uk/post/2008/12/21/Starting-Game-Dev-With-Space-Invaders.aspx[/url] | |
Re: Hi, now there are 2 ways to do thing like that. First do it like LizR said. So you could import it into resources. Then you could Access it by: Properties.Resources.ImageName Second, you could load all the picture in the bitmap variables. By bitmap a = new bitmap(filepath); Then change … | |
Re: Blitzmax is amazing, another choice is XNA which is also good. A faster way, Game Studio maybe. | |
Re: Well, As I'm working in Web Dev field, I would suggest something useful which could be use in real world as a Shopping Portal, E-Commerce Site. You could also do Social Website as Twitter or even Facebook. For my personal interest, I would prefer to do some Web App which … | |
If you’re an enthusiastic developer, sure you have done a lot of personal projects. The problem is that what you will do when you want to start a serious medium size project (which could take month(s)). I don’t think there is a best way to start a project however there … | |
Re: C#2, NET 2.0 Reason: My company's server still using 2.0, my current host only support 2.0 as well. I really wish I could go for C# 3 with VS2008 :(. | |
Re: I used both. It's two different languages for two different purposes. For normal app company system, I just use C#. For something require extra power ex graphic editor or game, sometime I use C++. | |
Re: [url]http://creators.xna.com/en-US/quickstart_main[/url] [url]http://www.ziggyware.com/articles.php[/url] This 2 links is quite useful for start with XNA. And the book Beginning with XNA from APRESS is my choice. Also I have a simple tutorial about XNA making an Space Invaders in my website: [url]http://www.hieu.co.uk/post/2008/12/21/Starting-Game-Dev-With-Space-Invaders.aspx[/url] | |
Hi, I just write a tutorial about making a very basic Space Invaders using C# and XNA. It earned me 800 pageviews in just over 1 day, so I think It would be helpful for you :). If it's not, sorry for the incovenient, if it is, it would be … | |
Re: Using a while loop arround the code open and write to the file. Suggestion, put that code into another thread, so if it can't write out yet. Just sleep for one sec and try again. Something like this could do a dirty trick; writtenOut = false; while writtenOut=false { open … | |
Re: This is something your text book use for. Forum is only for a specific problem, not to help you do your homework. At least you should try to do something and tell us what you couldn't do. | |
Re: Dont get you? Should it just be a simple condition? If(textbox1.Text.Length>12 && textbox2.Text.Length>8) sure you will also want it more then 0 as well, but it's the same theory anyways. | |
Re: Won't the drag and drop method for control work in WM? | |
Re: One more suggestion, you could use C# combine with XNA to create your game. XNA is a product of Microsoft so they support quite a lot. To create your first game in XNA are quite simple and quick. I'm writing a tutorial for writing a Space Invaders and hope I … | |
Re: Basically you need to made a collection of controls as the way the winform work. So say we have: WinControl { Event handle Click } Button : WinControl { } ControlCollection { ArrayList ChildrenControl; } Form : WinControl { } Everytime you create a new button, add it into the … | |
Re: Well, if you scan over the website content and find the link. Check if the link in the arraylist or not with arraylist.contain(). If sastify, you can add that link to an arraylist. | |
Re: Don't really understand though. How you wrote your game anyways? I'm writing a tutorial about this game using C# but with XNA instead of OpenGL. If you want I could send you the tutorial, I think they should be the same idea. | |
Re: Well, I'm not so sure though. If this is just a random multiple question everyday then I would go with this design: - We will show a label as question and a few Radiobox for answer. - Select a random question which the last occured is more than a week … | |
Re: Don't know much about windows mobile, could we put the picture in a picturebox and using mouse or keyboard to move the position of the picturebox. | |
Now, you think I'm crazy. Memory leak in C#? Well, it's happening for me. I think somehow VS think that object still in use or something, that's why it not disposes it. Background:[I] I'm working on a big application which was coded about 4 years ago and every year, new … | |
Re: If i'm not wrong (IF), fileopendialog will have a properties call SafeFileName or something like that. It would return the file name. To get extra information. System.IO.FileInfo Fs = new System.IO.FileInfo(thisfile); Then from here get the information from that object. | |
Re: 2. You maybe need to set their group name to the same thing so they will au to un-check. Not sure thought 'cos I'm not have a computer with VS right now. 4,5 : Don't understand the question but I guess LizR should had it all explained. | |
Re: Haven't got chance to read Ddanbe code snippet carefully yet but I think it would be alright if you still using GDI though. What you should do is instead of drawing straight onto the control, you should draw onto a bitmap variables. After finish drawing the bitmap, set the bitmap … | |
Re: I'm starting C# with Beginning C# 2008: From Novice to Professional and Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional from APress. I have to say it's amazing, easy to follow. Strongly recommend. If you have a bit of knowledge about C# you could follow this link for … | |
Re: I can't find any problem in that except you forgot to close it. However, when I copy your text to notepad and save it. It asks me that if I save it as ANSI it will lost data because your text isn't in ANSI. If I save it in Unicode … | |
Re: Check the anchor property. Set it to Top, Bottom, Left, Right. Hope it solve the problem. | |
Re: Don't really understand how you want to put in in the form? If just at the design time, picturebox will do fine, if picturebox is not working or you want to put it insde in Runtime, try to using GDI+. If you're planning to using GDI+, this maybe helpful. [url]http://hieu.co.uk/post/2008/12/04/Cnet-Basic-image-slide-show.aspx[/url] | |
Re: As ddanbe said before, first check if user click Ok, Start checking the input. If one if put fail, mark it down (etc changing its textcolor). Change the DialogResult back to None. Should be : [code=c#] if(this.DialogResult == DialogResult.OK) { string error; if ((dlg1.nameText.Length < 5) || (dlg1.nameText.Length > 8)) … | |
Re: The first option, it run once and well, as LizR said, it will return an error that the worker's busy. | |
Re: Well, the code above is forget to write this on top. [code=C#] comboBox3.Items.Clear();[/code] But I would prefer this ways then the code above: [code=C#] string Months[] = {"Jan"," Feb"}; String Days[] = {"Monday","Tuesday"}; private void comboBox2_SelectedIndexChanged(object sender, System.EventArgs e) { comboBox3.Items.Clear(); if(comboBox2.SelectedItem = "Month") comboBox3.Items.AddRange(Months); else comboBox3.Items.AddRange(Days); } [/code] |
The End.