Topics
-
- 0 replies
- 1.2k views
I am having a major memory problem. I am loading a DataTable from a MySQL database, but when I dispose the DataTable, no memory is freed. I need to open about 70 tables and dump all the records into another database, but I keep getting an out of memory problem. Can anyone tell me how to completely empty a DataTable from memory? Here is the function I use to load my table: public DataTable SelectSQL_DT(string selectStr, string dtName) { try { MySqlConnection dbConnection = new MySqlConnection(connectionString); dbConnection.Open(); MySqlDataAdapter adapter = new MySqlDataAdapter(selectStr, dbConnection); DataTable my_table = new DataTable(dtName); adap…
Last reply by grip003, -
- 2 replies
- 1.7k views
Hi all, I'm having problems building the hierarchy of a treeview control from an XML file. I'm basically looking to replicate the same structure that the Windows registry uses (HKEY_Local_Machine/Software/....etc.), but I can't figure out how to build the tree so that I don't duplicate childnodes. Our tech support team receives XML files with various infomormation retrieved from the end-user's computer. They use this to diagnose hardware compatibility issues with our software, since a lot of it is low-level communication with the hardware. However, it is painstakingly time consuming to read the raw XML that is produced. So, I've been assigned the task of creatin…
Last reply by dakota97, -
- 0 replies
- 1.1k views
I have an ASP.NET web app using C# as the language and am acquiring all the xls files in the list of subdirectories under the main root directory. My problem is I need to go to a server share where I need to pass in user authentication. I need to give the username, password, and domain before I go to the directory. How should I pass in my login information for the directory?
Last reply by session101, -
-
- Administrators
- 6 replies
- 1.2k views
How do you open Excel in ASP.NET in read-only form? I am using C# as the language and have tried to use: 1.) Process.Start() <-- Won't work for web servers 2.) Made a hyperlink to my Excel file Is there a good way to open an Excel file with read-only permissions?
Last reply by Arch4ngel, -
-
- 1 reply
- 1.5k views
After I have created some graphics on a form, I would like to print them on an entire sheet of paper. Could someone show me how to do that, please? thank you
Last reply by Machaira, -
-
- *Experts*
- 2 replies
- 1.4k views
After I add item to a DropDownList, .NET automatically selects the first item for me. How do I default a blank/No Value for this DropDownList? I tried to make the selectedindex = -1, but it does not seem to work using C# as the language for ASP.NET. Please advise. Thanks!
Last reply by session101, -
-
- 1 reply
- 2k views
Hello I'm not new to directx but i just cant figure out how to load a mesh, not even the teapot :'( i have this code that i think has no flaws, but it just wont draw my teapot. can someone help me? Dim device As device Private teapot As Mesh ' the teapot mesh Private teapotColor As Material ' used to color the teapot Private world As Matrix ' positions the teapot in the scene Private view As Matrix ' positions the camera in the scene Private projection As Matrix ' controls scene perspective Private Sub meshes2_teapot_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyB…
Last reply by ardman, -
- 0 replies
- 985 views
Hey, I have a dropdown list on a form that is behaving in a very bizzare fashion. Here is the behavior: List is loaded with text and values via a loop, not bound to a data source. List has multiple values, and an OnIndexChanged event (yes, it is AutoPostBack True). I can select (in one example with seven elements) any of the first five values (Indexes 0 thru 4), but when I select either indexes five or six, the IndexChanged event never fires. Further, when I start from index 3, for example, and choose the sixth element (index 5) from the list, the Text, Value and Index for the dropdown list are FOR THE FIFTH ITEM IN THE LIST (Index 4). Same thing happe…
Last reply by SteveoAtilla, -
-
- Administrators
- 4 replies
- 1k views
----- error C2653: 'MessageBoxA' : is not a class or namespace name ------ I included all the correct .NET references in my project, but somehow it doesn't distinguish between the Windows version and the .NET version.
Last reply by Grasshopper-NET, -
-
- 1 reply
- 928 views
Can somebody help me? My position: I've got a form with a : - Datagridview1 - Bindingsource1 - billingdataset1 - bedrijventableadapter Everything works, but i can't add something. I'll get the 18 results from te database in my window. But if i add 2 of them, and i close the database, its gone again... :eek: Or is there a better solution for this???
Last reply by Arch4ngel, -
-
- Administrators
- 3 replies
- 962 views
when asp .net application installed on dual processor or multi processor server the performance of the application is reduced. Does anyone have idea on about the performance of the asp.net application when installed on multi processor server. Please any feed back is appreciated.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.1k views
How to Install dot net framework on multiprocessor server
Last reply by kaisersoze, -
-
- 2 replies
- 1.5k views
:( I'm writing a GUI program, and I want to be able to use plug-ins for extensibility, I have written plug-ins before using MFC, ATL and even a few Visual Studio .NET Add-Ins, but how can I write one with managed c++. I'm using Visual C++ .NET 2005. Thanks in advance. :)
Last reply by Grasshopper-NET, -
- 4 replies
- 5.2k views
Hi, I have been looking for ages on google but with no luck. What I am doing is trying to add a screen capture facility to my app. I have written the code to capture a region on my computer depending on xy values that I have entered just to test the code, and this works. But what I want to be able to do is the user to click a button and then select one point and then a second point on the screen and to get the cursor positions when the mouse is clicked in both locations. What I am having the problem doing is stopping my script from recording the cursor positions when the user clicks the button. In other words I want the user to click the button to create a scree…
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 1.2k views
I am using the following code to get the elapsed time for a process. The difference is calculated and added to a list box. On first pass the difference in time is calculated and on all subsequent passes elapsed time shows as zero? Here is the code: Do Dim FromTime As DateTime = DateTime.Now ... Here goes the code wich is a call to a stored procedure .... Dim ToTime As DateTime = DateTime.Now Dim TimeDifference As TimeSpan = ToTime.Subtract(FromTime) Dim DifferenceInMilliseconds As Double = TimeDifference.TotalMilliseconds ListBox1.Items.Add("Processing Time: " & DifferenceInMilliseconds.ToString & " ms") Loop
Last reply by mskeel, -
-
- 1 reply
- 1.6k views
see post below
Last reply by MrLucky, -
- 0 replies
- 1.4k views
Confused by MSDN Example for HttpCookie.HasKeys Property On the MSDN entry for the System.Web.HttpCookie.HasKeys Property, the example says it will populate two string arrays: one with the value names (the keys) in the cookie, and one with the corresponding values. However, on looking at the code, it seems to me all it is doing is populating both string arrays with the value names. Am I missing something?
Last reply by fizzled, -
-
- Administrators
- 3 replies
- 2k views
Hello guys, I've had this problem before with Access databases and i never bothered to solve because there isn't a real solution with Access databases. Now i'm using SQL server and i know that it can be done but i don't know how. I have a table with one autonumer column for indexing (identity). When i execute the INSERT command i need to get back the number that was assigned. Keep in mind that this is a fast multiuser database (can be 100 inserts/minute) so a SELECT MAX() thing would never work. I'm not familiar with stored procedures etc. If someone could supply me with an example of how this is done through a VB.NET application it would be great. Thanks
Last reply by otherside, -
-
Hi, ive been wondering about this for a couple days now, so heres my question, what would be the best way to assign certain tiles(16x16 image files) certain values, such as 00 01 02 03, etc and then display them in a text box? this is sort of a map editor. so say I read data from a file, and I get 00 02 06 01 00 00 00 it will load the images assigned to those values, then put then in a row in the image box(and if it reaches the end of the top row on the image box it will go to the next row, for example tile tile tile tile tile tile tile tile instead of just cutting off at the end of the image box Thanks.
Last reply by snarfblam, -
-
- Administrators
- Leaders
- 6 replies
- 27.7k views
Hi guys, I was wondering how one might test if a File is Locked without resorting to a Try..Catch..Finally block. I'm not sure if it can be done, but I was thinking that it *should* be doable? Using a T/C/F block we can do something like this: Shared Function FileIsLocked(ByVal fileFullPathName As String) As Boolean Dim isLocked As Boolean = False Dim fileObj As System.IO.FileStream Try fileObj = New System.IO.FileStream( _ fileFullPathName, _ System.IO.FileMode.Open, _ System.IO.FileAccess.ReadWrite, _ System.IO.FileShare.No…
Last reply by Mike_R, -
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online