Topics
-
-
- Leaders
- 0 replies
- 992 views
This is just a conceptual thing, and it might sound silly at first, but the more I think about it the more it interests me. At the most fundamental level the mechanisms of the .Net platform, for example, the type system, object allocation and instantiation, are relatively simple (although memory management might be more of a headache). There was speak of a managed API in longhorn (which certainly didn't happen), but take the concept to the next level: computer hardware designed for an object oriented environment, with a hardware controlled type system, native support for v-tables (virtual/overridable functions), memory allocation, etc. If machine language comma…
Last reply by snarfblam, -
-
- 0 replies
- 1.5k views
I am writing an app that send data (in the form of textures) to the GPU for processing. I then retrieve the results using Surface renderTarget = device.GetRenderTarget(0); GraphicsStream stream = SurfaceLoader.SaveToStream(ImageFileFormat.Bmp,renderTarget); Bitmap bmp = (Bitmap)Bitmap.FromStream(stream); The problem is that no matter what precision I set my render target too (A8R8G8B8 or A32R32G32B32), the result always comes out as a 32Bpp image (A8R8G8B8). Is there any way to get full the full 32bit precision per value out? Thanks
Last reply by Goose, -
- 4 replies
- 1.3k views
I am using a datetimepicker for the users to enter dates. I have the "ShowCheckBox" to be true so that if there is no date to be entered, the check box would be uncheckd. I came across with a problem. When the form is cleared, the user would like to have the date resetted to the current date. However, after I set the value to the current date, the check box is automatcially checked for me. I even have a line of code setting the Checked property to False right afterward but the box would still be checked. Is there soemthing I've done wrong? Right now I'm just forced to leave with the existing value and just set the Checked property to False. But the user would pref…
Last reply by doraemon, -
- 2 replies
- 2.4k views
Hey All, I've racked my brain for 2 days trying to figure this one out... I have a button event handler that loops through a repeater comparing textbox values within each row to the corresponding row in a datatable. As far as I can tell all of the code inside my loop is fine, but for some reason the loop would only execute for every other iteration. Puzzled, I stripped the loop down until it was nothing but the following: Dim i As Integer = 0 Dim debug As String For i = 0 To 6 Step 1 debug = debug & "," & i i = i + 1 Next lblError.Text = debug Notice that I even added the "step 1" just to be sure. My output is ",0,2,4,6". Am I missing som…
Last reply by FastPlymouth, -
-
- Administrators
- 4 replies
- 2k views
Hello I've downloaded this project to try to acces my Access database: http://www.codeproject.com/cs/database/csharpaccessdb.asp I can fill all fields and i can access my database.. and read everything. Nice! Next step.. implement this into my own program. This things will work: - access database - read column headers But if i try to read the data i'll get this error: Object reference not set to an instance of an object. On this line: MessageBox.Show(reader.GetValue(0).ToString()); My code is: public void read(){ IniFile ini = new IniFile("test.ini"); database = ini.IniReadValue("Info", "Database"); …
Last reply by Jelmer, -
-
- 2 replies
- 1k views
I do development work by connecting through a network drive to our intranet server because VS.Net is not loaded on the machine. I have been trying to set up a data connection for a project using VS.Net Server Explorer. The problem is that the connection string VS.Net sets up references my network drive "I:\" which would be meaningless when users access the pages that would use the connection. Is there anyway to change this? To use the unc? I know I how to code a connect string and all that but I wanted to try using the data connection. Thanks
Last reply by lorena, -
-
- Administrators
- 5 replies
- 936 views
Hi, I have managed to get a hold of the remote object in the client app by using the following code oRemoteRandomServer = CType(Activator.GetObject(GetType(iMyTest), "tcp://localhost:6100/RandomServer.rem"), iMyTest) But I don't like the idea of hard coding the computer name and port#, the best approach would be to get the settings from app.config Any help appreciated /Kejpa
Last reply by PlausiblyDamp, -
-
- 0 replies
- 776 views
I have not had a chance to try this out, but I saw it on MSDN and thought that it might be very useful for alot of people on this forum that only program in Visual Basic.NET; as some people post C# source solutions this is a link to a process of creating an add-in for Visual Stuido that allows you to paste in C# code and convert it to Visual Basic. http://msdn.microsoft.com/msdnmag/issues/06/02/PasteAs/default.aspx Cheers
Last reply by Nate Bross, -
- 1 reply
- 1.6k views
I need to determine what data is being sent to a web site when I click the "process" button. I need to be able to automate (if possible) a query that is being sent. This automation will include changing several parameters on the initial query page. I am hoping to manipulate the URL that is being sent or even better, generate the URL dynamically through code. Are there any tools that will allow me to see what is being sent to the server? Is it even possible to manipulate the query if it is NOT being sent as a URL? Are there other suggestions that would work? tia, Flynn
Last reply by Mister E, -
-
- Leaders
- 1 reply
- 774 views
Hello, I am making an application again and I have come to a problem. I can not figure out how to make a Tree View open and save their data as a custom file format. :confused: What I have tried is... Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then TreeView1.SaveFile(SaveFileDialog1.FileName) End If End Sub That doesn't work and I have tried other codings such as converting it to plain text, which obviously didn't work either... Can you help me? Patrick
Last reply by snarfblam, -
-
- 1 reply
- 1.3k views
I have been receiving this exception for over a week with a .NET remoting app and can't find a solution anywhere that works. Below I'll paste my config files and the client code calling the remote method. I'd really appreciate some assistance. The Server code and files are on a remote server within our facility and have been told more than once there is no firewall between my workstation and it. So firewalls are out of the question as the source of the problem. I assume its somewhere in my config files but I've tried everything I've seen on the net. I receive the Net.WebException: underlying connection was closed:unable to connect to remote server exception message…
Last reply by beachbum714, -
- 2 replies
- 1.4k views
Hi All, I have an MDI application which contains a child form for report generation. Within this particular child form, I have a Crystal Report Viewer (crView1). All the reports run properly in the viewer, however, on load, this viewer (at 95% of the time) does not draw all the controls as it should on itself (the next page, previous, etc. ... that's natively set to visible on crView1. The report viewing section is fine... just no controls.) Any ideas as to what I may be missing in my code ? I tried forcing a refresh on the form, the viewer... pretty much anything and nothing... Suggestions ? Thanks
Last reply by laredo512, -
- 1 reply
- 538 views
I am a student and I have been using a copy of Visual Studio.NET 2003 Pro for a while now. I was able to purchase it for the student price of $99.00 US. I am now interested in buying the new Visual Studio 2005 and I am faced with a problem. The student discount for Visual Studio 2005 Pro is far less than it was for 2003. It is $749.95 US but the Standard Edition is only $49.95 US. What I am interested to know is if buying the Standard Edition will be enough for me having been using the Pro edition of the previous version. I use VB, C#, C++ and I do both desktop and mobile device programming. I do use a bunch of the pro features including XML and XML Schema. Does t…
Last reply by mskeel, -
- 2 replies
- 819 views
Hi at the moment, I'm trying to delete all records in a table. (1) What i do is create a dataAdapter that drags out all records and fill it into a dataset. (2) go through each record in the dataset, and mark it as Delete (3) Update the Database using Update from the Data Adapter. This method seems rather slow and inefficient. I was wondering is there another way of deleting all rows in a table without having to populate a dataset? thanks
Last reply by Joe Mamma, -
- 2 replies
- 718 views
Hi, I am using SQL Server 2000. I have a database that store the SalesForecast and the SalesORders. I have the following tables SalesForecast ------------- ForecastMonth ForecastYear CustomerID ProductID ForecastQuantity SalesOrder --------- OrderMonth OrderYear CustomerID ProductID OrderQuantity I want to create a query that will give me the following information CustomerID--Month--Year--ProductID--ForecastQuantity--OrderQuantity i.e a query that will match the Forecast that was for a specific Product and the actual sales ORders that were received for that Product. What I have done is created a Groupby query (vwTotalOrders) that Sums t…
Last reply by Joe Mamma, -
- 0 replies
- 992 views
as an alternative for popup i made a script to make a DIV visible/hidden and place whatever page i needed to popup in its InnerHTML, the scripts works and now i wanted to make it a control so i dont have to paste/embed the code whenever i need to heres what i have, on the HTML part, i placed the DIV and script that i needed <script language="javascript"> function Show(url) { var frm = document.getElementById("MyDiv"); frm.style.visibility = "visible"; frm.innerHTML = "<iframe src='" + url + "' ID='MyIFrame'></iframe>" } function Hide() { var frm = document.getElementById("MyDiv"); frm.style.visibility = "hidden"; } </s…
Last reply by lamy, -
- 0 replies
- 934 views
i'm trying to utilise 'Process.GetProcesses' in my program. However, when testing on a restricted account on a nt server, i get and error basically saying i don't have the correct authorisation. Is there some code i can use in my program to use admin authorisation to get this information? (i have admin details) Thanks
Last reply by q1w2e3r4t7, -
-
- Administrators
- Leaders
- 6 replies
- 4.1k views
Hi Guys I'm New in programming with vb.net. Trying to do my "homework" given by a book I need this "Empty project Template" which is not included at the Standard edition of the Vb.net 2003 Could any body advice me what is this and how I can get it or construct it?
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 820 views
Hi All I have just changed to VS2005 from VS2003 and now the following error happens it does not happen in the VS2003 .NET 1.1. I have a process that produces a new database and it updates several tables. I'm using OLEDB Connections and when the process is finished I close the connection. The connection is dimensioned in the declaration part of the form so that other processes can share the connection at a later stage. In the VS2003 I can quite happly keep pressing the process button all day with no error. In the VS2005 none of the code as changed, every now and then I get a error 'Could not use File '' file in use'. At the start of the process I use, if c_C…
Last reply by Data Danger, -
-
-
- Administrators
- 7 replies
- 839 views
I'm busy building an application with classes. one class works perfect, so i add a second one. The class compiles great. But i can't use it in the source of the program, the program gives the following error: My class: using System; using System.Data; using System.Data.OleDb; using System.Data.SqlClient; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Globalization; using Ini; namespace WindowsApplication2 { class statistieken { public statistieken() { } static OleDbConnection dbase(OleDbConnection Connection) { IniFile ini = new IniFile(…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 62 Guests (See full list)
- There are no registered users currently online