Shaykat Chaudhuri's Q&A profile
SQL Server Index was outside the bounds of the array
Ok, all I did was to create a new report, new dataset, hook it up to a simple stored proc. I can run that dataset fine and see the date in the Data tab. I go to the layout tab, throw on a textbox...or even try dragging in a field from the dataset tab, then try to preview and get the error "Index was outside the bounds of the array" what is it talking about, what array, what index the dataset Did you get the error the first time you view the report Or it started happening after you made some modifications Can you try refreshing it ...Show All
Visual Studio Express Editions Error in running built programs on other drives
Hi everyone, I am using Visual basic .NET 2005 express beta. I can build a project and then run the exe file in the same location as the installed VB but if I copy it to other drives in a server then I cannot run it there. Does anyone have ideas to fix this Cheers LucaMauri wrote: Please try run '.NET Wizards' from 'Administrative Tool' group and run 'Trust and Assemply': a wizard will popup, you have just to complete it (I used it a few motnh ago, but I remember it was very easy) and I guess your software will then work. I believe I have the same problem. I can run my program local ...Show All
Visual C++ Japanese Application
Hi I developed an Jananese application in MFC (VS 7.2). When i run this application in Japanese Windows its working fine, if i run in other then japanese it display charactors. How can i solve this problem Manoj Jangid No, sorry. I've never tried to actually accomplish what you are trying. I have always been able to require that my customers use the correct language OS. Displaying Chinese (or Japanese) on an English OS is not something I have tried. ...Show All
Windows Forms forcing an event
I have added an event handler that should execute each time the position in a dataset is changed. The event must also be fired when the dataset is initialized. Unfortunately setting the currency to the initial postion of "0" does not fire the event. My work around has been to increment/decrement the postion but this doesn't seem very clean to  ...Show All
Windows Forms TabControl: Custom TabPageCollection?
I'd like to hook the TabPageCollection of the TabControl in order to fire events when pages are added and removed, is there any way to have the TabControl construct my TabPageCollection object rather than it's own I'd like to have functionality similar to overriding the ControlCollection of the Control object using CreateControlsInstance. Thanks, Ray Controls is inherited from the TabControl's base class, Panel. TabPages is a typed collection, but contains the same objects. TabControl.Controls will only contain TabPages. ...Show All
Microsoft ISV Community Center Forums ACCESS 2003 OLE
How to insert link (local folder) into ole field named “station layout” (control source for bound object frame named “station layout bound” on form “station layout”) ! The files in the local folder are named the same as the field named “Station ID Number” From table “Station Information” The last part of the link = the value in “Station ID Number” field from table “Station Layout”! THANKS FOR YOUR HELP! ...Show All
Visual C# DOS window doesn't close after process started?
Hi, I'm trying to run a process from a Windows application. Example: if (Regex.IsMatch(textDomain.Text, "( =^.{1,254}$)(^( :( !d+.)[a-zA-Z0-9_-]{1,63}. )+( :[a-zA-Z]{2,})$)") && Regex.IsMatch(textRecord.Text, "^( :( :25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d \\d)( ( =\\. \\d)\\.)){4}$")) { Process testProcess = new Process(); testProcess.StartInfo.CreateNoWindow = true; Process.Start("cmd.exe", "/c ipconfig.exe /all >> c:\\test.txt"); testProcess.Close(); } The application is running like it should, but I'm unable to hide the stupid DOS window which pops up after the process is started. I t ...Show All
Visual Studio Express Editions Add a web Srvice As a data source to my project
I want to Add a web Srvice As a data source to my project I add it successfull but after thet it did not add to my data source and still i donot have a datasource how can i solve the problem i do not Write Code For it I just Add a datasource and Choose Webservice and Add my Web Service . but no datasource add to my Project Do u Know Why A web service is not a data source, it builds a class that you can create instances of, and call. BTW, please don't spam the forums, I deleted your duplicate posts. ...Show All
.NET Development Problem with TransactionScope and Swedish OS
Hello. We are trying to run a piece of code that looks like this: DBManager target = Factory_CreateDBManager(); using ( TransactionScope scope = new TransactionScope ()) { CompanyDataSet . CompanyRow company = target.GetCompany(UnitTest. Constants .CompanyId); company.Com_Name = name; target.UpdateCompany(company, lastAlteredBy); } When we run it on a English WinXP there is no problem. When we run it on a Swedish WinXP we get this exception: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServ ...Show All
.NET Development Help Creating a Wrapper
Hi, I am fairly new to .NET development but i was wondering if anyone could help provide me with information on how to create a wrapper to use in a C# application. I am creating a Vision application and want to use the OpenCV library so i need to create a wrapper in order to use this. I have had a look at the SharperCV project and it seems very good but development has stopped on this project so i wouldnt like it to be my first option. The SharperCV implementation is based on and older version of OpenCV. What I want to know is whether there is a standard way of creating wrappers for libraries such as the OpenCV library so that i cn pick and ...Show All
.NET Development Problem with .NET 2005
I have a main form with a object DataSet. I am colling another form and merging one of the dataset 's table into the child form. I am getting from the child form an array of modified DataRows. when I am merging the modified rows into the main dataset, I am getting a duplicate rows. Main Form: test t = new test (); t.dt = mainDataSet.Tables[ "Accounts" ]; DialogResult r = t.ShowDialog(); if (r == DialogResult .OK) { mainDataSet.Merge(t.selectedRows ); } child Form: foreach ( DataRow r in SelectedRows) { r.BeginEdit(); r[ "owner" ] = newowner; // owner is not a key r.EndEdit(); } Does any one knows what is wrong d ...Show All
Visual C++ Redistribution of C runtime libraries without MSI installation
Hi guys, I'm trying to get an installer of our product working. I've finally gotten it compiling and running under VS2005. For various technical and political reasons, I have to use NSIS as our installation technique. This is where the problem begins. I can't quite see how to redistribute the relevant CRT libraries. I've been round and round in circles following the MSDN information, and various blog postings (e.g. http://blogs.msdn.com/martynl/archive/2005/10/13/480880.aspx ) but I've not been able to see how I can redistribute the CRT in this way. Obviously, merge modules aren't an option for me. I've tried pl ...Show All
Visual Studio Pervasive SQL
I'm having trouble connecting to our Pervasive database (V8.6) in Visual Studio .NET 2005 Beta 2. I want to get some info from the database into a drop down menu. These are the steps i'm taking. 1) Selecting the box for the drop down menu (ComboBox), in the properties select DataSource then Add Project Data Source. (Do it this way so it makes the data set as well) 2) Select Database - New Connection - Using ODBC select our Database (CHAHO) - Test Connection (OK) 3) Click next and leave the name as connectionstring1 - Select the required table and leave the name as dataset1. 4) Then i get the following error:- Some Updating c ...Show All
Visual Studio Tools for Office VSTO add-in setup error accessing registry
A user is receiving the following error message during the exection of my MSI installation. I am using the MSI bootstrapper process and followed the guidelines to deploying a VSTO add-in ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerOverview.asp ). This is the error they receive: "An exception occurred in the OnAfterInstall event handler of MyInstaller.-> Unable to open the registry! The installation cannot continue." I do not have access to the machine it is running on, but it is a Windows XP/Outlook 2003 machine and the user was able to get the first ver ...Show All
Visual Basic ImageLists and ViewLists
Hello all, This forum has been of great help today. Below is some code I have that goes through all jpeg files in a directory, adds them as thumbnails to an ImageList, and displays the thumbnails and file names in a ViewList. The thumbnail size is 96 x 96 and in the ListView, the thumbs are explanded/shrunk to become 96 x 96 despite the face that what I am adding to the ImageList is a correct-aspect-ratio image. Any ideas on how to make the thumbs display correctly in the list view Thanks. For Each fileName As String In System.IO.Directory.GetFiles(somePath, "*.jpg") Dim img As Image = New Bitmap(fileName ...Show All
