Topics
-
- 2 replies
- 1.8k views
Just wondering how can I change the sprites opacity level? Like performing true transparency using an alpha value or something!?
Last reply by EFileTahi-A, -
- 8 replies
- 2.4k views
I'm making a ORPG and I was wondering, have this big sprite.bmp image, and each sprite is 32x32, how would I clip the image so it would only show the 32x32 image? Thankyou in advanced. Also, if I created a tile editor, how would I select each tile in a picture box? what would the math formula be to find out what tile the user clicked on? (again, 32x32)
Last reply by EFileTahi-A, -
-
- Administrators
- 2 replies
- 1.3k views
How do I end my program from code in C#? I wan't to create the same action which happens when I press the Close button in the top right corner of any window. So Environment.Exit(0); is not OK.
Last reply by JumpyNET, -
-
- 0 replies
- 1.4k views
I am trying to determine the best method for storing cooking recipes. I want to access them with a vb.net front end. I use an access database on the PC but I am having trouble finding a way to connect to an access db on Pocket PC 2003. Thanks in advance for your advice.
Last reply by Nate Bross, -
-
- Leaders
- 1 reply
- 1.3k views
Another chapter in my never ending quest to micro-optimize. Anyone up for a long read? I was thinking about structs. I make a lot of use of them, because I hate to create garbage collected objects when they aren't neccessary. I prefer to let the memory be reclaimed when they go out of scope and save the memory used to manage the object. (Of course, I use classes when they are appropriate, too.) But I was wondering about using struct constructors. When you use the StructInstance = New Struct syntax, I would image that a new struct is allocated on the stack, initialized to default values, the constructor is called, then the newly allocated struct is assigned to the or…
Last reply by IngisKahn, -
-
-
- Leaders
- 1 reply
- 2.2k views
I have a User Control that reads Customers from a XML file and displays their information in a ListView. I have added the User Control to a Windows Form and it works fine. But now I wish to grab the Customer name (SubItems[0], or the first column) from the ListView Control when a ListViewItem is clicked/changed, and display it in a Label on the Windows Form. How should I go about doing this?
Last reply by snarfblam, -
-
-
- *Experts*
- 1 reply
- 1.1k views
Hi, The program draws an image directly to the Form and not to a picturebox. hDC = User.GetDC(Me.Handle) EnableOpenGL(hDC) 'draw code follows ... How can I copy this image drawn to the form to the clipboard? 'Clipboard.SetDataObject(Picturebox1.image) If this was drawn to a picbox ' How do I convert the above command?? '??? Is this possible? Or do I have to use a picturebox??? Although I know that a picturebox would simplify my problem, there is another issue with regards of using a picturebox, therefore, if possible I would like to avoid using it. However, if it is impossible!! please mention it so I won't spend any more time trying. thanks…
Last reply by Bucky, -
-
- 1 reply
- 1.2k views
This is the way I am using to convert byte() into string: Dim chrCode(100) As Byte Dim ascii As Encoding = Encoding.ASCII Dim asciiChars(ascii.GetCharCount(chrCode, 0, chrCode.Length)) As Char ascii.GetChars(chrCode, 0, chrCode.Length, asciiChars, 0) Dim asciiString As New String(asciiChars) It converts the byte() into char(), then into string. But is there anyway that I can convert a byte() into string directly and easier.
Last reply by IngisKahn, -
-
- Moderators
- 6 replies
- 1k views
hello, i have a doubt... i want to know if it is posible to debug an asp.net proyect from work, at home...??? thanks!
Last reply by Rothariger, -
-
- 0 replies
- 1.1k views
I came across this blog post: http://weblogs.asp.net/cazzu/archive/2003/12/29/46476.aspx And thought it would be pretty cool if a project I was working on required that any coders put an XML author tag above each class but I don't understand how to apply this .XML to my project.
Last reply by travisowens, -
- 3 replies
- 2k views
Hey everybody, Here's a real fun one that I've been fighting for about a day now so I'd like to throw it out to see if anyone has a solution to what is happening here. I have developed an XMLWeb service, which correctly queries the data that I need and using xpath manipulates the data into the proper form and then places the new data into a new XmlDocument. To instantiate this procedure, I pass an object from the client by ref to the webservice. The object is defined as a class on the webservice, however there is no coding inside the class (the webservice class is basically a struct, as this is how I learned to do this). Everything works as it should and the …
Last reply by VBAHole22, -
- 0 replies
- 942 views
I am trying to create a web service that calls another web service and relays the results out to the user. So here is the flow: User request to service1 service1 calls service2 service2 returns results to service1 service1 returns results to user It's not an ideal situation but it is needed for firewall issues. Anyway, my issue is that I can't get the return types straightened out. Ultimately I would like the user to see the xmlDocument that service2 creates. I built service 2 to return XmlDocument, which is does. But when I add a web reference in service1 to service2 the return type for that method magically becomes XmlNode and not XmlDocument. Now when t…
Last reply by VBAHole22, -
- 2 replies
- 1.1k views
Hi All, I am having a go at writing some code for my PDA. The code does not close when I close the window. For example if I attempt to overwrite the app with new code I am warned of a sharing violation. I have to do a soft reset to end the process. In code how to do I ensure the process is dead when the user closes the page? Many thanks, Dave. :D :D :D
Last reply by davearia, -
-
- Moderators
- 3 replies
- 831 views
I have a form with a checkboxlist that has several choices. Because the person who requested this form also wants a choice "Other" with an associated textbox to explain the choice, I added "Other" as a checkbox. I need to validate on submit, that either one item from the checkboxlist or the checkbox has been chosed. Is there an easy way to do this? Or, let me rephrase, is there any way to do this?
Last reply by lorena, -
-
-
- Leaders
- 4 replies
- 9k views
I'm trying to load an image from a file. I have the following code and get an error. PictFromFile must be Bitmap not Image, because I'm using a function for it that needs a Bitmap as input. Do I need some kind of conversion from Image to Bitmap?? And how is it possible that System.Drawing.Bitmap is Image instead of Bitmap as the name implies?? What is the difference between Image and Bitmap and when should I use which?? Bitmap PictFromFile = System.Drawing.Bitmap.FromFile("C:\Pict1.jpg"); Error 1 Cannot implicitly convert type 'System.Drawing.Image' to 'System.Drawing.Bitmap'. An explicit conversion exists (are you missing a cast?)
Last reply by EFileTahi-A, -
-
- 4 replies
- 1.2k views
Happy Memorial Day! :) I have an ADO.Net datatable coding question; this may be elementary, but I'm stumped... Is there an easy way (or what's the best way) to retrieve the key of a record you just added to a table? I have the following code... can someone help me fill in the ??? ' add a new row to the table Dim drRow As DataRow drRow = selectedDataTbl.NewRow() selectedDataTbl.Rows.Add(drRow) ' save its ID iCurrentRowID = selectedDataTbl.??? Thanks, Mark
Last reply by MarkD, -
- 0 replies
- 1.3k views
My VB.NET application has a startup object Sub_Main. So. Default form is Module (With Sub Main procedure) The problem occures when I press Alt-Tab. There is displayed only Default icon. (I have set default project icon and all form's icons to my custom icon) tx in advance Matej
Last reply by mcerk, -
- 0 replies
- 958 views
Hi guys, I have finally given up and now request help from yon gurus about row positioning. I have read about find, findrows, select etc, but none of them seems to go near my ever so simple needs. I have datatable - source data with two views DV1. with my GUI datagrid bound to it - user can sort however they like, paging etc. DV2. validation only - I sort this specifically to perform some business rule checking. A new dataview so I don't change the user sorting, and it is NOT ordered by primary key. I iterate through DV2 and if I find any business rule errors, I am looking at the datarow I want to highlight in the grid. However, I am not in the appropriate …
Last reply by Errol, -
-
- Leaders
- 1 reply
- 1.5k views
Hi! where do you get new project as IT Freelancer ( software engineer )? I mean world wide :) or only in europe.. I know only one site in germany: http://www.gulp.de do you know others? regards, gicio
Last reply by John, -
-
-
- Moderators
- 3 replies
- 1.5k views
Hi!! I have a grid in my project that must have some 'properties' saved and loaded.. I created a sample txt file with some things that I have to save about that grid. I was wondering if it is possible to read the file doing something like this: Dim c as column for each c in columns 'Do something next Dim g as group for each g in groups 'Do something next I have the mentalis class to read and write to some file, but with that it's not possible to have quotes and 'subquotes'. Can someone help, please? settings.txt
Last reply by moongodess, -
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online