Sinisa's Q&A profile
Windows Forms datagridview
Hi, Hi, Iam using datagridview,How to add a new row to the datagrid view In insert button i wrote this code, dataGridView1.Rows.Add(3); when i run this code,it is giving the following exception exception: rows cannot be programatically to the datagridview's collection when control is databound In save button i wrote like this, private void button1_Click( object sender, EventArgs e) {da.Update(ds, "emp" ); } I ...Show All
.NET Development Reading Arrays
Ok I received limited help with this the last time so I'm just going to make this simple. Let's assume I have the ability to already read another processe's >unmanaged< memory and I want to read an array of a structure into a local array of a structure without having to iterate through each element in the array. Is this possible and if so, how Thanks much in advance. I can get the memory data need into my managed process but ...Show All
Visual Studio Tools for Office HtmlBody problem's
Scenario : VS2005 OUTLOOK 2003 inside a MailItem I have a commandbar with a button. this button have the following code on click event : Private Sub _mailButton_Click(ByVal Ctrl As Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean) Handles _mailButton.Click Dim posizioneBody As Integer = m_olMailItem.HTMLBody.IndexOf("<body") Dim posizioneChiusuraBody As Integer = m_olMailItem.HTMLBody.IndexOf(">", posizioneBody) m_olM ...Show All
SQL Server Relating records with date ranges to Server Time dimension
I have a table whose records have a date range defined by a start_date and end_date. I would like to create a server time dimension so that I can relate each record in the table to a date in the time dimension when it is 'active' (i.e. the dimension date falls between the start_date and end_date inclusive). I am lost on how to accomplish this and any help is appreciated. DW ...Show All
.NET Development How to only copy access database data table in new table?
Hi to all, I'm trying to copy data from an access database using Microsoft PIA Assemblies. Hope I'm in the right place. The problem is that: I'm using Microsoft.Office.interop.access.DoCmd.copyObject method to copy tables from an Access database to another. Table A ---> Table B But there is no option to only copy data in a new table. The table B has all the columns of the A, but we just added a new column. And the method overwrite the o ...Show All
SQL Server Missing collation in MSSQL2005 Sept CTP
I used collation 'Chinese_HongKong_stroke_PRC_90' in Jun CTP but when I tried with the Sept CTP for testing, there is no such collation in the pull-down menu. The collation shouldn't exist in the first place. The corresponding LCID, 0x20C04, was never really shipped and supported in Windows, according to Windows NLS team. So we removed this collation before RTM. Regards, Jun ...Show All
Visual Basic how do I get web templates in my ide?
how do I get web templates in my ide When I installed beta2 I chose visual basic. Now I want to try some web pages. I find no way of changing my profile so that I can create some web projects. Can somebody please help me dennist Forgot to mention in my earlier msg, I have installed from the "Visual Studio 2005 Team Suite" CD. I am assuming I can use it as an individual developer without a team. ...Show All
.NET Development Web service not responding sometimes
I am using a webservice to invoke a lengthy process in server. But I am not getting response back to the client always. The process will take around 40 min and the last task is to send an email and log the response. It does all the task including logging the response. Still the response is not reaching at client sometimes. When I try to invoke this webservice it fails to return the response once in 4 times. Are ...Show All
Visual Studio Distributing VS2005 crystal reports
I have generated a small Invoice application, using VS 2005 - VB and Crystal reports. It takes data from SQL server 2000 and displays the Invoice. It is not possible for me to run this on different nodes of the network. What is the prerequisite for running above application. My network has got Windows Server 2003 with Service Pack 1.0. I tried to instal Microsoft .Net framework 2.0 on nodes and running the above application but it's not w ...Show All
Visual Studio BUG: Changing the name of a project item causes data loss
I have a project where an add-in is creating a new solution, form, renaming the form and then adding a label. It does this all in quick succession using the DTE in Visual Studio 2005 June CTP. I have noticed that when I do this, the label gets added, and then lost. I'm not sure if this is a VS bug or a side-effect of how its implemented and something I'm just going to have to live with. You can recreate this by starting with the ToolWindow sampl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged DirectX to solve dependancies?
Hi, I'm back again! My application is now working fine and converting textures as it should, but I've just sent it to one of the texture guys to give it a run through and it crashes out with an error of "File or assembly name Microsoft.DirectX.Direct3D, or one of its dependecies, was not found." As I've come to understand it, that means that the DirectX install that they have isn't enough and that the also need to install the MDX package. Consid ...Show All
Windows Forms Bug in BindingManagerBase - PositionChanging
The .NET 2.0 documentation defines event PositionChanging, however it is undefined and unavailable in Visual Studio 2005 Beta 2. This is a critical event which we need in order to validate the data record prior to navigating to a new record. Please advise! Thanks Chavdar Angelov To remove this Event is a crime and these excuses are ridiculous. By removing it you pack the complexity back onto the shoulders of thousands of developers instead ...Show All
SQL Server XML Source Error
Hi, i am getting the following error in XML Source after generating the schema . if i click the columns Error at Data Flow Task[XML Source[1]]; There was an error setting up the mapping . The root element of a W3XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema' what could be the reseaon Jegan Hi Jamie Thanks for your reply. the problem got solved ...Show All
SQL Server How To Avoid Table Scan
Hello All, Is their any way I can avoid a Table Scan by modifying the follow WHERE clause WHERE tbl_mis_Dashboard.loan_active_flg = 1 AND [tbl_mis_Dashboard].[loan_create_dt] between DATEADD(dd, DATEDIFF(dd,0,dateadd(mm,-13,getdate())), 0) And getdate() The field loan_create_dt is indexed on the table tbl_mis_Dashboard. The query returns approximately 256K records which is appropriate and necessary. Thanks all, Orlanzo ...Show All
Visual Basic DataSet and WriteXML()
Hi, I am relatively new to .Net. I have noticed that DataSet poulated from DataAdapter of MS Access database does not contain all the field properties such as "Allow Zero Length", "Required", and "Indexed". My questions are: 1. Is it by design that DataSet will only have field name, type, and maximum length in case of text field 2. If Q1 is true, is there any other alternative way to create XML file containing table schema of MS ac ...Show All
