Topics
-
-
- Leaders
- 0 replies
- 5.3k views
I whipped this up for a small concept game, and decided to polish it up and post it here. It is ideal for simple tile based games. Possible Improvements: More rendering methods (i.e. draw group of tiles, clear control to default tile) More rendering overloads Support for multiple sources Multi-layer support (would involve saving tile indices to re-render lower layers) Optimizations (performance, visual appearance on large operations) I will probably incorporate some of these improvements and re-post later. TileBox.zip
Last reply by snarfblam, -
-
- 7 replies
- 980 views
I am loading Dates into a listbox.... At the moment I have dtPick.value which is 8/4/2006 12:39 AM OK but what I want is Friday, August 04, 2006 The problem is I think is this is not as easy to keep in a sorted order I am sure this has been asked before but cant find anything specific but will keep looking. Anyway, Is there a way somehow to do a comparison beofer the date is added to the listbox so that it places it in the right order or is there a easier way to do it that I am just not aware of? vbMarkO
Last reply by MrPaul, -
-
- Administrators
- 2 replies
- 6.6k views
I've been upgrading lots of my old .NET 1.0 code to .NET 2.0 and there are a few more problems than I had thought. Seems I was making all sorts of unsafe calls to update form controls from different threads. I read this informative article which was recommended on another thread here and it helped me out a lot : http://www.devx.com/dotnet/Article/11358/0/page/1 Anyway, I've figured out how to do it safely with Invoke and delegates and it seems to be a relatively small amount of code to do that. But, I had a few questions though about the whole thing. - First of all, I really dont understand why a call to a control from another thread is 'unsafe'. I mean the only…
Last reply by NeuralJack, -
-
-
- Administrators
- Leaders
- 6 replies
- 2.3k views
Hi, I've written a little app which reads Winamp .m3u playlist files and copies all of the songs in there to a directory of the users choice. Useful for making MP3 CD's for the car. Everything works fine, no problems. I'm just concerned about the speed, especially the fact that running in debug mode within VS is faster than running the release mode .exe. This is the function that I use to copy the files. I should mention that the variable Dir is a string which contains the directory the user wants to copy the files to. Oh, and each item in the listbox lstTracks is a full path to an mp3, so each item is something along the lines of D:\Artist\Album\Song.mp3 …
Last reply by Cags, -
-
-
- Leaders
- 9 replies
- 1.2k views
I recently ran into a problem in my application and it took me awhile to track down the cause. The code below demonstrates the problem. Basically the problem revolves around calling a Method of a Property of a class. Insead of doing as I expected it to, it just didn't do anything. This leads me to believe you cannot call a Method of a Property, but if this is the case I would have expected an error at either compile time or possibly at runtime. I'm quite resigned to the fact this is the way it is and I will probably have to live with it, I was just looking for an explanation as to why this is the case. private class Piece { private Rectangle _bounds; public Rectangle B…
Last reply by Cags, -
-
- 1 reply
- 964 views
I have been through the forum and I have seen many examples of listview sorting but In this one instance I can't get it to work. I am loading a Listview from dbf file if the item found in the db meet the criteria it is added to the listview. No problem I get a full listview of items I wanted. Now the first column is time in the 24 hour format. So I want to sort the column accending, (00:00:00 ==> 24:59:59) I have a class for the listview Item comparer that looks like this. Public Class ListViewItemComparer Implements IComparer Private col As Integer Public Sub New() col = 0 End Sub Public Sub New(ByVal column As Integer) col = colu…
Last reply by ZeroEffect, -
- 0 replies
- 851 views
Hi! I am looking for an ASP.NET 2.0 photo gallery solution. What kind of features the gallery should has: - user / rolls permissions.. for example user 1 has only access to album one user 2 has access to album 1 and 2 the site admin has access to album 1,2 and 3 as I see nGallery is cool but has not user permisions as I want. Do you know some other ASP.NET 2.0 galleries with this permission feature? Regrads, Wojtek
Last reply by woojtii, -
- 0 replies
- 1.2k views
Hi, all. If you ever used visio, you have seen the arrow link. You can put arrow link between two text boxes or image boxes. I want to create the arrow as a custom control so user can select arrow on the form and can drag it/link between two picture boxes. Does any one knows about this? Any info will help! Thank you.
Last reply by goodmorningsky, -
- 0 replies
- 705 views
i create a dataset from some tabales. and i want create report of it by CrystalReport. how can i add columns and rows to crystalreport by programming
Last reply by hamid, -
-
- *Gurus*
- Administrators
- 8 replies
- 1.9k views
I have vb.net 2003 Standard and I have an install for my program, but some users have been asking that i supply an uninstall. How would I go about doing that?
Last reply by mskeel, -
-
-
- Administrators
- 5 replies
- 994 views
Dear All, Because of the way my current app works I've used an interface to supply basic details between objects. Obviously the data is common to all and key to the execution of the system. If an object implements the interface then is it possible to cast an interface variable to an implementing object type? For instance: Interface IPerson Property Name() As System.String Property Age() As Int32 Property Born() As System.DateTime End Interface Class Employee Implements IPerson ... Public Property Id() As Int32 Get Return _Id End Get Set(ByVal Value As Int32) _Id = Value End Set End Pro…
Last reply by mandelbrot, -
-
- 1 reply
- 1.1k views
Whenever I make a class that inherits from Control it changes the icon of the file in the Solution Explorer to that of a component. But a sample application I downloaded from CodeProject is inherited from Control without the icon changing. At times I'm abit of an 'obsessive compulsive' so the icon being different does bug me. It is the fact that its behavior is then differnt tha really bugs me though. Double clicking on the item brings up the design window which I don't want. Can anybody explain a.) how I stop this behavior and b.) why the class from the sample project doesn't do it.
Last reply by Cags, -
-
- Administrators
- 6 replies
- 980 views
Is it possible to create a deterministic timer? I need to fire an event every 40 milliseconds. It doesn't matter if the event doesn't start at the precise millisecond. But it is necessary that the event is run once and only once during every 40 milliseconds passed. The built in timer doesn't seem to be very accurate. If I use a 40 ms timer it runs only 21 times in a second and not 25 like it should. :confused: Any ideas?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.3k views
Hello all, I program C# with Visual Studio 2003. I want to use printer functionality in my application. The problem is that I do have no clue how to save and load printer settings between multiple runs of my application. I defined a PrintDialog pdlgBon and a PrintDocument pdlgBon.Document and I am able to print using the PrintPageEventHandler and calling pdlgBon.Document.Print(). But I can't tell this PrintDialog to print to a file apart from checking the CheckBox in the PrintDialog.ShowDialog()-Form. Please tell me how to save and restore the chosen printer settings. Best regards HaraDej
Last reply by haradej, -
- 0 replies
- 833 views
I have a DataGrid on an ASP page, and I would like to give it an irregular table heading. My client would like to have two rows of header on the grid. The cells on the first row would span several columns, visually grouping the related columns on the second row. Is a task like this possible with the ASP DataGrid?
Last reply by Pizzor2000, -
- 0 replies
- 958 views
Hello, i dont know if this is the right Forum... if it isnt move it.. pls... i need to make a mms streamer(if it is posible to a file)... does anybody have a example??? thanks!!!
Last reply by Rothariger, -
- 0 replies
- 802 views
i have a site that displays dynamic images whose src is taken from a database. however, some of the image links are broken. is there a way to specify an 'alternate image' if the link is broken.. e.g. if an image called 'someImage.jpg' is missing or renamed, then i need a way to display a default image 'default.jpg' instead of displaying the standard red x that indicates a broken link <img src="/path/someImage.jpg"> i also cannot check on the server side if the file exists or not, because sometimes it exists but its not a valid image - and its a large database, so i dont want to have to manually review them all. thanks!
Last reply by sdlangers, -
- 0 replies
- 726 views
I'm doing my validation on rowchanged events in the dataset, but sometimes the database passes back an exception. When the database passes back an exception, it sets a Row Error. The only way I can see to clear the Row Error is to run RowWithErrors.ClearErrors(), but this also clears out all other validation errors on the Columns. The only workaround I can see is to go through the columns and copy their errors, run RowWithErrors.ClearErrors(), then run through the columns again and reassign their errors, which seems a little akward. I'm sure I could come up with a procedure that handles this generically, but is there something I'm missing that's a little more …
Last reply by Denaes, -
- 3 replies
- 1k views
hi, why i cant use System.Management in c#.net 2005 (also 2003) ? there isn't Managment namespase in System !
Last reply by hamid, -
- 1 reply
- 2.2k views
Hi all, I created window service and Setup project. It installs window service. But, when uninstalling, it doesn't remove window service from Service window. I added primary output to Custom Actions' install folder and Uninstall folder. But, still doesn't work.. How to enable to remove window service when uninstalling? thank you.. __________________
Last reply by ehelin,
-
Who's Online 0 Members, 0 Anonymous, 29 Guests (See full list)
- There are no registered users currently online