Topics
-
-
- Administrators
- 7 replies
- 2.1k views
Hi all, I need some advice, guidance and help with this problem. With my application I am writing there is a need for the administrator to create a new project (database). Now I have written an Admin module for my app, and within this I want to allow the creation of this new database. However the new database I need to be a copy of the default database I supply with the app (this has no data, but does contain some 15 tables and 54 stored procedures, hence the reason why I am thinking it's best to copy the default database and rename). Now this is where I need help.... I think there is 2 ways I can acheive this:- 1) Detach the default database. Copy the .mdf and …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 10 replies
- 6.6k views
Hi Guys, I was just wondering, how can i achieve this.. I want to create a csv file on server side and prompt user to download it using c# with asp.net I have written some codes which create a dummy text file..and some download code..but the download code does not fetch the actual test.csv file which i created, instead it gives me the html code where the download dialogue box was prompted StreamWriter streamWriter = new StreamWriter("C:\\Mail\\test.txt"); streamWriter.WriteLine("Date : "); streamWriter.WriteLine("From : " ); streamWriter.WriteLine("To : "); streamWriter.WriteLine("Subject : "); streamWriter.Close( ); Response.ContentType = "text/plain";…
Last reply by a1jit, -
-
-
- Leaders
- 8 replies
- 2.7k views
Right now I'm having another problem with Components... How do I know their name at run-time?? We can set and see their name at design-time on the property grid, but they have no run-time accessible property... Thanks in advance, Alex :p
Last reply by AlexCode, -
-
- 4 replies
- 956 views
I am having trouble running applications while in the IDE. When I attempt to run an application, the error message is: "Error while trying to run project: Unable to start debugging." I have attached a jpg of the message. Unfortunately, the suggestion to reinstall the debugger does not work. I have re-installed VS.NET with the repair option. Any help would be appreciated. Greg
Last reply by ngb, -
-
- *Experts*
- 27 replies
- 3.7k views
I have declared a srting in Form 1 Dim AUDTYPE As String i want to use this varible in any form Is there a way to declare this varible as global.I am new to VB.net programing.Can any one help in this?.
Last reply by lidds, -
-
*sigh* I just dont get it. how do I raise a "safe" event in my UI Form from a worker thread? I do not know/cannot understand how to create events. That's all I want to know! no technical in depth lectures, no nothing. Can't find anything decent on google or if I do find it I can't follow it! Sooo frustrating. using C# (so any code posted please post it in C#) I have: MainForm (UI) ClassA (Worker thread) ClassB (creates worker thread but can also be called from MainForm) if a statusString has been changed in the WorkerThread or in ClassB, I want to notify this event in MainForm. When the MainForm identifies this event, I want to be able to do my own actio…
Last reply by DiverDan, -
- 3 replies
- 1k views
Hi, all. I have string array. I want to convert a specific type. I need following like method. /// Convert string array to specified type array public static object ConvertArrayType(string[] inputArr, System.Type itemType){} I want to do like this. return (itemType[]) inputArr; //I know this is wrong. However this give you idea what I try to do. :p Is there a method/Reflection alreay doing this or it's not possible? Thank you all..
Last reply by bri189a, -
-
- Administrators
- Leaders
- 2 replies
- 836 views
I know that in VB6 there was a was to make files executable and able to run on any computer. This is obviously not availible in VB.Net. I was wondering if there is any equvalent function for .net Thanks
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 7 replies
- 948 views
I recently installed Visual Studio 2003 upgrade and made sure that the .net framework on my computer has been upgraded too. Now the .aspx page I am working on is giving me a "System.NullReferenceException: Object reference not set to an instance of an object" error. Here is my code: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Dim dtmDate As Date dtmDate = DateTime.Now txtReqDate.Text = dtmDate.ToShortDateString success = True added = True End Sub It worked in the previous version of Visual Studio. Any ideas as to why this is happening? I would …
Last reply by lorena, -
-
- 1 reply
- 859 views
Hi... I want to ask you guys what's the best way to update a database using ADO.net. I'm not using Datasets, nor DataAdapters. I have my own IDBCommand objects, trying to keep it as DBProvider independant as possible. My main question is: having the 3 records save commands (Insert, Update & Delete), and a bunch of rows to update (a DataRow collection), what's the best code to apply the commands on the rows? Thanks, Alex :p
Last reply by Machaira, -
- 1 reply
- 751 views
I'm working currently in an application with access and odbc. I need to catch diferente errors that happen so i can treat them diferently. but it always returns the same exception. I want somthing like this try { execute query to the database } catch (exception file not found) { rerturn -1 } catch (exception odbc not found) { rerturn -2 } catch (exception table locked) { rerturn -3 } finally { close connections } this is the simplified version of what want. But it returns always the same error and i cannot treat it. this is when data source is not found System.Data.ODBC.OdbcException:EROOR[iM002][...]Data source not found and no default driver…
Last reply by Machaira, -
- 3 replies
- 1.1k views
I downloaded the .NET Application Updater from http://windowsforms.net/articles/appupdater.aspx to give one of my programs the ability to automatically update itself over a LAN. I set up IIS 6.0 with directory browsing and WebDAV as required by the documentation and got the bundled sample app to update correctly. But unfortunately I am having problems getting it to work with my application. I added the component, set the component properties and fired up the application. It appears to be hitting the server as evidenced by my IIS log: 2005-09-09 18:30:36 192.168.1.150 GET /program/UpdateVersion.xml - 8080 - 192.168.1.104 - 200 0 0 2005-09-09 18:31:06 192.168.1.…
Last reply by VPiattelli, -
- 2 replies
- 1.9k views
I have a stored procedure and it is not saving the values in the table. How can I view that the stored procedure is saving the values. Private Sub DoSave() Dim ConnectionString As String = System.Configuration.ConfigurationSettings.AppSettings("FinSolMainDBConn") Dim connfinsol As New System.Data.SqlClient.SqlConnection(ConnectionString) Dim strsql As String Dim adapter As New SqlDataAdapter Dim transaction As SqlTransaction Dim myCommand As New SqlCommand("stp_UpdTransOverride ", connfinsol) myCommand.CommandType = CommandType.StoredProcedure 'Add Parameters ' 1 Policy Number myCommand.Parameters.A…
Last reply by samsmithnz, -
- 3 replies
- 910 views
Hi All, I have an application that needs to print forms with data all over the place (it will look like a questionairre) and have grids etc. I can export XML from my application and do some sort of transformation (unknown) and then put this into Microsoft Word, or I can use Active Reports (not sure about these yet) or maybe there's something else I don't know about! Anyone got any ideas as the best way to accomplish this?? Appologies if this is a general question, I'll add more details if you ask for them. Thanks, Tim
Last reply by Denaes, -
- 0 replies
- 742 views
Hi, I have used the crystal reports few times but now I have to design a really complex crystal report so I want to ask some thing from you gurus. The Report which I am going to design has a number of column which are decided at the runtime, means that at the time of viewing the report it will be decided that weather the report contain the 10 columns or the 15 or some thing else. also the columns headers are decided at the run time that the first column is corrosponds to the Name or something else. I have build a dyamic query at the runtime which I will pass to the report but the main problem is the design of the report. Like If the report has seven columns to displa…
Last reply by AsifCh, -
- 0 replies
- 2.2k views
When I am in Debug mode, I want to set the value of the textbox on the dialog form. What happens the dialog form appears before , even when I am starting debug bug mode. The values of the textbox in show dialog sub routine they appear to be set in an empty string. How ever this does not occur such that the dialog for populates with aparent values. When not in tracing mode. Why do I get this problem? Here is the function===: Public Overloads Sub ShowDialog(ByRef objTransoverride As TransOverride.structTransoverride) ' ' Do All the work that you want to i.e. the one that you have written in the Load ' ' oldPolicyN…
Last reply by macupryk, -
- 0 replies
- 2.5k views
I have the error coming when I call a dialog form passing a parameter. An unhandled exception of type 'System.Exception' occurred in microsoft.visualbasic.dll Additional information: Can't assign text to readonly, disabled or hidden C1Input control when its Text property is not detached. Public Sub DoModify() Dim dTable As DataTable = Me.DataGrid1.DataSource Dim bm As BindingManagerBase = Me.DataGrid1.BindingContext(Me.DataGrid1.DataSource, Me.DataGrid1.DataMember) Dim dRow As DataRow = CType(bm.Current, DataRowView).Row Me.lbNumRec.Text = Me.DsTransOverride1.Tables(0).Rows.Count.ToString() Dim cEditTransOverride…
Last reply by macupryk, -
- 2 replies
- 711 views
Hi! How do I clear the immediate window when I start my App in the IDE? All old debugging information is cluttering up it and makes it hard to see what information is from the current session... TIA /Kejpa
Last reply by kejpa, -
-
- *Experts*
- 17 replies
- 1.8k views
So I thought that I'd better make a class library of some of the frequently used classes instead of including them into each and every project. But I don't like the idea of them to be used by others (though highly unlikely), is there a way of restricting the usage of MY dll's? TIA /Kejpa
Last reply by Diesel, -
-
- 4 replies
- 1.7k views
I'm using VB.NET and Direct3D 9 to build my 2D game. I've been having trouble drawing primitive shapes, such as triangles, rectangles etc., as I do not want to use VertexBuffers and Device.DrawPrimitives. I found the Direct3D.Line class which makes it easy enough to draw polygons, but I haven't been successful in drawing a convincing circle. What I need is to be able to set the individual pixels on my screen so that I can use an equation to set the pixels in a circle. Is there some class or Direct3D.Device method that can make this easier? Any help is much appreciated.
Last reply by Vankwysha,
-
Who's Online 0 Members, 0 Anonymous, 70 Guests (See full list)
- There are no registered users currently online