Topics
-
- 1 reply
- 2.2k views
I've been working on an application that involved drawing a grid. In order to draw this grid I was originally using DrawRectangle to draw each individual square. Upon revisiting the code to optimise it I realised there are much faster ways to draw the grid as drawing each square indivually means that most lines between squares are drawn twice. To get around this I used the DrawLine function. For example to draw a 9x9 grid, you only need to call DrawLine 20x as opposed to calling DrawRectangle 81x. Ok your all probably thinking 'well duh' but bear with me. The same grid could be drawn by calling DrawLine 16x and 1x DrawRectangle (basically drawing the outline as a squa…
Last reply by jo0ls, -
- 0 replies
- 879 views
I have an asp.net datagrid and when I delete a date from a date field, the value is set to 1/1/1900. What do I need to do to just set it to null? Here is the code for the value: If CType(e.Item.FindControl("txtEditSchedComplDate"), TextBox).Text <> "" then SchedComplDate = Convert.ToString(CType(e.Item.FindControl("txtEditSchedComplDate"), TextBox).Text) Else SchedComplDate = DBNull.Value.ToString End If The variable SchedComplDate is dimmed as Object. Any help/advice would be appreciated.
Last reply by lorena, -
- 3 replies
- 1.6k views
I am working with VB 2005 express edition and I have a listview control on a form with 2 buttons. I want to allow the user to be able to reorder columns to suit their needs. I have no problems with this. I also want them to be able to remove columns or re-add columns based on their wishes. My problem is if a column is added, after the user changes the position, the data gets added to the wrong column. Any ideas on how to do this properly? The code below illustrates what I am taking about. Public Class Form1 Private myColumns(6) As ColumnHeader ' Used for creating column headers. Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)…
Last reply by fenris, -
-
- Administrators
- Leaders
- 3 replies
- 928 views
hi ti all, I'm currently building an application that is going the execute an external application in batch mode. [csharp] for (i=0;i < 10; i++) { System.Diagnostics.Process.Start(sAppPath,sArgs); } [/csharp] As you can see i need to execute this external application lots of times, but i only want the next series to begin when the other finnishes. how can i do that? can anyone help me on this?
Last reply by rfazendeiro, -
-
-
- Administrators
- 1 reply
- 966 views
So I was reading that you should make sure to dispose any DataSet or DataView object on the Page_Unload event since they tie up resources and they won't be disposed otherwise - it will have to wait until GC gets around to Finalizing the object. Simple enough - makes since until: If you keep the DataView or DataSet in Session so you don't have to go through your data access classes and hit the database each time, you now have a potential problem. When you put a DataView or DataSet in Session it's put by reference (it's an object). So if you have: In the fields: WithEvents ds as DataSet In a function somewhere: SomeDataAdapter.Fills(ds) Session("Whatever") …
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.9k views
I am using VB.NET 2003 and need to access all the data that comes from the X file i am loading into the program. I am using the load mesh from file method for DirectX 9. Once i get that complete i know i can access the materials and textures assoc. with the mesh objects. What i need to do i get those material vertices from the X file so i can lay my own new texture and materials, as so i can apply a bump map to the individual objects. Can this be done with directX and if so how or where do i go within DirectX to access that data that is already stored in the X file, and also i would think that data is already loaded somewhere since the DirectX would have to parse the fil…
Last reply by ardman, -
- 1 reply
- 1.2k views
Hi All! Does any one have any idea what could cause framerates to plumet from around 600 to 10.67 - 11 fps, when rendering two different .x files that have both been exported from 3d studio max using Microsoft 3ds max exporter plugin. The scene im rendering has nothing else in it. The first model i rendered has 1600 faces, which i was able to rotate at 600fps but then i made another model which has 1000 faces, however when i replace the rendering code so that this new model is drawn, my fps drops to almost nothing! Please can somebody help me because its driving me insane! thanks
Last reply by ardman, -
- 0 replies
- 831 views
Hi! (using CR 9) I have 2 questions : First, I create a report that consist of ItemDescription and ItemAmount field. In the properties of the ItemDescription field, option can grow is on and there is limitation in number of rows(0). How to set the Item value of amount can be parallel with the last line of Itemdescription ??? The Report will be displayed like this : No ItemDescription ItemAmount -- ---------------------------------------- ------------ 1. Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa........ 500 2. Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb…
Last reply by achonk81, -
- 3 replies
- 1k views
I have a js function that needs to run client side and access two values from the form. I need to be able to set those values from the server in code behind. So the flow would go like this: user clicks a button server gathers 2 values values get assigned to form controls post back user clicks another button clientside js function runs using the two values in the form My problem is I don't know how to pass the values in a format that both the server and the client will like. If I put the values in server asp textboxes then the names of the controls get changed to things like 'ctl00_myControl' and the js can't find them (using document.getElementById("myCont…
Last reply by bri189a, -
- 2 replies
- 1.3k views
Hi, I have a bitmap, say it's 800x600 pixels. I have a form that is fullscreen (1024x768), but I only want to draw a portian of the bitmap, say 400x400 pixels to the form. Any sugestions? Private Sub Form1_OnPaint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawImage(BackBuffer, New Point(0, 0)) End Sub I would like to draw the top left region, 400x400 pixels out of 800x600 of BackBuffer onto the form. I appreciate any advice you might have.
Last reply by Nate Bross, -
-
- Administrators
- 7 replies
- 1.9k views
Hi all, I am interested in finding out how individuals communicate with their database in terms of opening & closing connections, and passing parameters and commands. Mike55.
Last reply by bri189a, -
-
- 0 replies
- 2.2k views
for developing winform applications, and possible a small amount of asp.net websites, what's the strengthes and weakness by choose devexpress and infragistics products?
Last reply by alanchinese, -
- 0 replies
- 1.4k views
Hello I have data stored in an access file.I want to store this data in an sdf file in order to be able to use it in my mobile application. Any ideas.
Last reply by Khaledinho, -
- 2 replies
- 2.3k views
Hi, I am tying to create an app which will automatically grant read access to a folder for a user account. Has anyone any ideas on how to do this? Cheers, Peter
Last reply by sde, -
- 4 replies
- 905 views
I need to add to the PATH environment variable. This can be done in either C# or command line. I know in the cl I can do: SET PATH=%PATH%;c:\mypath , however this seems to only be a temorary thing. When I look at environment variables from My Computer->Properties, the path does not show. It only shows when I echo the PATH in the command line. When I reboot the computer, it is gone. So, does anyone know how to add to the PATH environment variable and make it stay there?
Last reply by sde, -
- 5 replies
- 3.3k views
Hi all Please help me I am trying to call the Windows API function "GetVCursorPos" from the PDA emulator that comes with .NET I did the dll import and imported the appropriate libraries but i receive the following error: "Method NotFound Exception" Please help me Thanks in advance
Last reply by Khaledinho, -
- 0 replies
- 1.8k views
I use the connection timeout property for creating the SQLConnection. I am basically trying to open the connection to my remote database and if that fails I need to switch to my local database. However ADO.net is taking around 40 seconds to figure out that it cannot open the connection. i have specified the connection timeout as 5 seconds. Am i missing anything??? Thanks in advance -Himanshu
Last reply by himanshubari, -
-
- *Experts*
- 2 replies
- 961 views
Can this even be done with a databound control in .Net? What I mean by data transformation, in case it's a different syntax here, is when you take one value and display it as another value. Say I have a table of Users. There is a data column called Status. Two of the more common statuses stored in this field are "A" and "I". So when I display this column, I'm supposed to display Active (for "A") and Inactive (for "I"). This is relatively easy if I don't use databound controls. I'm currently using a SQL Server 2005 database converted from another database (Progress) with SQL Server 2005 Developer Edition & Visual Studio 2005 Professional and Component One 20…
Last reply by Denaes, -
-
- 3 replies
- 1.1k views
I'm trying to make my current website available for PDA users but I have no clue where to start. Do I have to create a parallel site? How can I detect if the browser is a pda or a regular version? Is there a special type of project I need to create in VS05? As you can see I am fairly clueless about where to begin. I just need a kickstart because there are so many terms out there like WAP and WML, pocketpc, win ce, etc. It's a word salad. I just want a simple basic site that will look good on a pda. If I have to create a new site that is fine, I just don't know how to start it. Thanks for any suggestions.
Last reply by Cags, -
-
- Administrators
- 2 replies
- 709 views
Hi, I'm creating a website and a window application, both in .net (2002-version). They are very similar to eachother and need both the same classes. When I make a class file (.cs) in the window application I can't access it in the asp.net website, so I have to copy it to the website folder. This seems a waste to me, since they both need exactly the same code, and they are in the same solution, and if I change something in a class I have to c/p it all the time. I feel like there has to be a better solution for this. Any ideas?
Last reply by skylight, -
-
Who's Online 0 Members, 0 Anonymous, 101 Guests (See full list)
- There are no registered users currently online