laserbeam's Q&A profile
Visual Studio ReportDocument.Load operation slow when moving to production server - suggestions?
Hi. I am building an asp.net web application that uses crystal reports (the bundled version) in VS 2005. The reports are developed using my development machines at the office. The logon information and parameter data are supplied dynamically to the reports by the asp.net application. I have noticed that the reports load slowly on the production machine where the web application is run. I tracked down the problem to the row where I load the requested report crReport.Load ( pathToReportAndReportName ); This load-operation takes 1 second on my development machine and about 20 seconds on the production server. I then set up another database machine at the office and set the reports to get the data from it. This alone did not slow d ...Show All
Windows Forms DataGridView getting index of the entering row
I have a DataGridView with say for e.g. two rows. User currently have selected the row 1 (index 0)..when they select the next row what event should I use to find the next row's index (row 2 index which should be 1) I tried using RowEnter event of the datagridview along with MyDataGridView.CurrentRow.Index which is giving me the index of the first row not the entering second row. To find the next row *when* a user selects a row you could try, assuming your DataGridView is called dataGridView1: if (dataGridView1.SelectedRows[0].Index + 1 < dataGridView1.Rows.Count) { int nextRow = dataGridView1.SelectedRows[0].Index + 1; } It might be a cheap styl ...Show All
.NET Development insert record into SQLServer
This is probably very trivial... my problem is that I want to find out the best way to take the values from two textboxes and insert them into an existing table in a SQL server 2005 database. My initial plan was to do this using an SQL insert query triggered by a click on a button but can not find out how to bind the VB textbox variables to the appropriate value expression in the insert query. The on-line help provided with visual studio proposes multiple quite extensive approaches, but they seem to be over-elaborate considering the elegance otherwise provided by the environment. Looking forward to your advice on this! Erik Can you fix that code for me, im really new to this and i am trying t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I add characters/Character Creation to my game??
I finished making my background, so how can I make a screen that allows players to Develop Characters (ex. choose the color of their character, what it looks like, etc.) And, also, how could I Transition them from the character select to the actual game I have recently started XNA, and dont know how do to do very much of it, so help will be much appreciated! Thanks o.O If you're talking 2D, you can do things by mix and matching what textures you pull from an image sheet to make the main character. If you make a bunch of "hair" images, as long as they all fit on the similar type head and are transparent, you can just cycle through them as a user. Then once you know what the character ...Show All
Game Technologies: DirectX, XNA, XACT, etc. [MDX] VertexBuffer.SetData() ArgumentException
I'm creating a particle system in MDX and when I try to write the array that holds the particles I keep getting the ArgumentException. I've never had a problem with writing to a vertexBuffer before. Maybe someone can help me out with this. For now I'll just post the initialization of the VertexBuffer and how I write to it. Init vertexBuffer: mVertexBuffer = new VertexBuffer( typeof (Particle), mMaxParticles, mGDevice, Usage.Dynamic | Usage.WriteOnly | Usage.Points, &nb ...Show All
SQL Server Autoexist when queying
Hi all, I think it's a simple question but i can't seem to get it right: I have a parent child dimension, with key Object, and an attribute Type. Every Object has a type, consider this example Object Type -------------------- Top Model Child 1 Portfolio Child 2 PortFolio When i run this query: select time.month.members on 0, objects.object.members * objects.[type].members on 1 from [Dream2007] I get this on Axis 0: Top Model Top Portfolio Child 1 Model Child 1 Portfolio Child 2 Model Child 2 Portfolio How can i het the following result with only the existing combinations : Top Model Child 1 Portfolio Child 2 PortFolio I tried non empty, but that doesn't work because they can be null. I ...Show All
Windows Forms Editing datagridview
Hi all. I need help on how i can editing datagridviews. My datagridview is binded to a dataset Datagridview1.datasource = dsCustomer.tables["customer"]; How can i save changes in rows and how can i cancel chages made to the datagridview I also need the datarowstate for each row. Is is possible to show old row and new row when cliking a button Thanks all. Lars Look at this : http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx AcceptChanges() and RejectChanges() in the following link will save/cancel changes you made to a row : http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatadatarowclasstopic.asp DataRowVersion should gi ...Show All
Visual Basic strange behaviour
Hi guys, I am definitely a newbiew to .Net, and am having a problem that I cannot seem to get around. I have a single Windows form app that loads several (probably about 10) datatables into a dataset. The dataset is defined as a public. Eventually the data is summarized into a datatable that is displayed into a datagrid. At first I could not get the double-click to work, and eventually tried to add a context menu control to capture a right click. Once I got things wired up, when the menuitem click event fired, I wanted to create a dataview from one of the datatables in the dataset and filter accordingly. To my surprise, the dataset variable has a value of nothing while in the click event. I then figured out how to capture a double ...Show All
Microsoft ISV Community Center Forums Range
Hello, I'm developing a macro to do some calculations on a worksheet, but I always get a problem when I pass a Range as an argument to my function. I need to pass the range as argument. For example: Sub Name() Dim A As Range Set A = Worksheets("Sheet1").Range("CD4") MyFunction(A) End Sub Function MyFunction (ValueDoRange As Range) etc... End Function Thanks It is because you are trying to treat an array as a range. In the function InterpMatriz_lin you have declared U as an array, Dim U(1 To 100) You then pass U to the function InterpVector like this, InterpMatriz_lin = InterpVector(U, B, y) '"This is the problem" The signature of the ...Show All
Windows Forms .Net Crystal Reports + Dataset + Logon Failure Error
Dear All, I am facing following Problem. Please help I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2003 ). My reports get their data from ADO.NET Datasets that are pre-populated by other modules of the application. What I need to do is to use these datasets as the datasources of my reports. Fine, I know how to do that and it works perfectly on my development box. The trouble comes when I deploy the application on the client machine. I created a installation project in VS.NET, added the required CR merge modules, added the keycode, and it seems to install everything fine. But when it tries to show the reports in the CrystalReportViewer control, it ...Show All
Windows Forms menuStrip1.Renderer.DrawSeparator problem(error)
Hey, I am using menuStrip1.Renderer.DrawSeparator to use my own image for the seperator for the menu strip in my program. I tryed doing this: menuStrip1.Renderer.DrawSeparator = SurfScape1.Properties. Resources .seperator; But i got an error saying: Cannot assign to 'DrawSeparator' because it is a 'method group' How do I fix this Thanks :) Ok, it works, thanks, I guess I will do a similare thing with the border... And one more question and I will be good, Is ther a way to clear JUST the old border on a toolstrip becuase I have a 160x2 image for the border of the toolstrip, and at the end , about the last 4 pixels start to go transparent and you can see the old border... but I like the wa ...Show All
Visual Basic Welcome to the VB Power Pack Forum!
Today we released the Microsoft Visual Basic 2005 Power Pack - a free set of Add-Ins, Components, and Tools that makes it even easier to develop great VB applications! In this first release we have two components (to download just click on the links): Microsoft Interop Forms Toolkit 1.0 - This toolkit is aimed at simplifying the use of Visual Basic.NET WinForms within a Visual Basic 6 application. The toolkit is targeted specifically at providing tools and guidance for performing a phased migration of a VB6 forms-based application to VB.NET. The goal of a phased migration is a production release at the end of each phase that has both VB6 and .NET forms running in the same VB6 .exe process. Microsoft PrintF ...Show All
Visual Studio Express Editions ListBox question
I am importing a file into my listbox and I want the second value to open up the actual directory where the file above is located. Is there a way to do this Files is simply: nameof-file File-location pointers are always appriciated You wil have to be a little more clear on whats going on and what you want to happen... Is the name of the file the first item in the list box and the directory the second item in the list box What do you want to happen (open Up) with the directory If Directory . Exists ( "ThePath" ) Then Dim MyFiles () As String = Directory . GetFiles ( "ThePath" ) For Each s As String In MyFiles Me . ListBox1 . Items . Add ( s ) Next ...Show All
SQL Server Snapshot Replication of MOM database
When configuring snapshot replication of the OnePoint database used by MOM i am having the following error being reported in SQL Replication Monitor: Command attempted: CREATE TABLE "dbo"."Computer"( "idComputer" "uniqueidentifier" ROWGUIDCOL NOT NULL, "Name" "nvarchar"(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, "Description" "nvarchar"(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, "CustomData1" "nvarchar"(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, "CustomData2" "nvarchar"(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, "Domain" "nvarchar"(100) COLLATE SQL_Latin1_General_CP1_C ...Show All
Visual Studio Express Editions MenuComboBox not closing
I have a menucombobox in one of my menutool strips. When I select a item from this combobox, How can i get the menu to close At the moment it remains open until I click somewhere else on the form. Hi Bigmo, Is the MenuComboBox on the top level of the MenuStrip or is it on the dropdown protion of a menu If it is on the top level, it should close automatically. If it is on the dropdown then I believe this behavior is by design - you don't normally see a ComboBox on a dropdown menu. If selecting an item in the combobox needs to execute a command, you may think about moving it to the top level, or you might rethink your user interface altogether - do you really need a ComboBox there If you could tell ...Show All
