calico's Q&A profile
Visual Basic Setting focus to control in next/previous tabpage?
Hi, I use a TabControl several places in my project, and this is what I want to do: When the user presses tab in the last control on a tabpage, I want to set focus to the first control in the next tabpage. When the user presses Shift+Tab in the first control on a tabpage, I want to set focus to the last control in the previous tabpage. If there's no next or previous tabpage, I want to follow the "normal" taborder. Is there a pretty way to do this that I have yet to discover I don't necessarily recommend this, because it makes your UI non-standard. For instance, if there are other controls on the form besides the tab control, then ...Show All
SQL Server Auto-Refresh for SQL Grids displaying SQL Server Data
Functionallity of the Application----- "We have a large legacy application using SQL Server 2000. We're gradually adding .NET WinForms controls to it, using the IdeaBlade DevForce package as the data access layer, and primarily Infragistics Grids and other controls for display. We're using Visual Studio 2005, and plan to migrate to SQL Server 2005 pending validation, but I need a solution that works for 2000." Problem description-- "I would like a mechanism to allow grid displays to automatically update when any change is made to one of the tables that contributes data to it. I'd like the mechanism to be event dri ...Show All
Visual Studio Tools for Office Unable to build MSI/Setup program referencing Outlook Addin
Configuration : Windows XP SP 2 Visual Studio 2005 Prof. RTM VSTO 2005 RTM Problem : When attempting build any Setup progrm which references a VSTO project's primary output in Visual Studio, the installer program for VSTO opens and attempts to add components. After inserting the vsto disk, the following error occurs "The installer encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902". This error interupts the build process and makes it impossible to build the setup program. Visual Studio reports "Unrecoverable Build Error" I also fou ...Show All
SQL Server Run querys after silent installtion SQL 2005 Express
Hi, I'm looking for a solution to run querys (create databases ed) after a silent installation of SQL 2005 Express edition (example with a .sql file). So users can run a installation unattended with all databases installed and so on. What I got is a document about how to run a silent installation (document " Using Command Prompt Options to install SQL Server Express") but this docs there's no solution how to run querys after the installation. Thanks Robert-Paul I think you want to use sqlcmd.exe after installation. This really isn't a setup issue. You will probably get a better answer in either the Tools or DB Eng ...Show All
Visual C# Is the Intermediate Language a security risk?
We are creating a new product where the main value will be in the data, and there will be a relatively small amount of code that will process that data. The data will be encrypted so competitors will not be able to use it, but I'm assuming it would be a simple matter to look at the Intermediate Language and determine how to decrypt and use the data. We are considering doing this in C# but could also do it in C++, but we want to use .NET in either case. Is my assumption about the Intermediate Language correct, that any of our competitors could easily reverse engineer our code by purchasing one of our products and examining the Intermediate ...Show All
SQL Server Help says ODBC is Available. Where?
In BOL it clearly says that you can "use the Microsoft OLE DB Provider for ODBC Drivers provided." in relation to Analysis Services. ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/uas9/html/9fab8298-10dc-45a9-9a91-0c8e6d947468.htm Unfortunately, this provider is not in my list. Here is the full text section from help. "Other relational systems support the older Open Database Connectivity (ODBC) specification but do not yet support the OLE DB specification. For these systems, use the Microsoft OLE DB Provider for ODBC Drivers provider. Although ODBC providers can be used by referencing them with the Microsoft OLE ...Show All
Smart Device Development How to make sure I am working with NETCF SP3?
Hello, I'm rather new to Visual Studio and especially SmartDevice developing. I have a decent knowledge in Borland Delphi, and i'm trying to apply my skills in .NET developing using Visual Studio 2003. Here is the brief explanation of a problem I've run into: In my application I'm using a listbox, which stores some collection items. Anyway, I want to trap the keys, pressed while listbox is focused. In the event list there is no such an event. I read that in base version of Net CF just a small amount of the controls are supplied with the OnKeyDown/OnKeypress/OnKeyUp events. But it was also mentioned that in .Net CF ServicePack 2 all the c ...Show All
Windows Forms Accessing list of all controls for a form at design time
I am creating a modal custom UITypeEditor. Is it possible to walk back up the context tree and access all the controls that are on a form Is there a proper and not proper way to do this Any push in the right direction would help greatly! :) If you want all components on the form (that includes controls,  ...Show All
Visual Studio Express Editions Debugger data view problem
Hello, I wrote a simple factorial program to test the new Visual Studio C++ Express, file : fact.cpp #include <iostream> int Factorial(int x) { if(x <= 0) return 1; else return (x * Factorial(x-1)); } int main() { std::cout << std::endl << "Enter a number: "; int n = 0; std::cin >> n; std::cout << std::endl << n << "! = " << Factorial(n); return 0; } When I put a breakpoint on the second std::cout, n incorrectly always shows the value of n=2, even when I enter a different value. this is in the Local p ...Show All
SQL Server Problem to connect Access 2003 to SQL Server 2005 Express
Hello, after successfully connect Access to the Server I want to add a table. I got an error message: With this version of MS Office Access you are not able to make any drafts because this version of SQL server you are connected to does not support this. Check the MS Office update website for the newest downloads. You habe connected to a version of SQL server which is newer than SQL server 2000. Versions: SQL Server runs on a MS Server 2003 SP1 Access 2003 (11.6566.6568 SP2) on an MS XP Pro SP1 all on actual patch level. Any ideas what's wrong :-) Klaus ...Show All
Windows Forms help please
This MS is really get out of hand. Whay can't they make stuff simple. I am trying to populate a datagridview, whey can they just leave the datagrid , with the following code and that &*^&$%^$(^)(* *** can't seem to work. Private bs As New BindingSource Private dr As SqlDataReader Private Function GetTransactions( ByVal sDate As String ) As SqlDataReader Try dr = SqlHelper.ExecuteReader(CONNSTR, CommandType.StoredProcedure, "GetTransactions", _ New SqlParameter("@transactionDate", sDate)) Catch ex As Exception MsgBox(ex.Message) End Try Return dr ...Show All
SQL Server INSERTs given me the BLUES
cstring = cstring + "VALUES('%" + txtWatchID.Text + "%','%" + txtcenter + "%'" & _ cstring = "INSERT INTO tblNEW (watch_id, service_center_num, repair_envelope, store_number" cstring = cstring + "date_purchase, transaction_num, cust_fname, cust_lname, product_code" cstring = cstring + "value_watch, failure_date, service_date, failure_code, repair_code" cstring = cstring + "service_request, store_number_senditem, register_number, street_address" cstring = cstring + "city, state, zip_code, area_code, phone_num, product_desc, service_center" ...Show All
.NET Development How to use Serialport in VB?
I've search for exemple of how to use Serialport, but all my search ended up with c# examples... Any example in VB Thanks Nico Since the SerialPort class in .NET 2.0 is not a special class/feature for C# (not like My in VB)... what you need to do is to convert the C# syntax to VB syntax. Here is an example for how to send data out of the serial port: C#: using System.IO.Ports; private static void SendSampleData() { // Instantiate the communications port with some basic settings SerialPort port = new SerialPort( " COM1 " , 9600 , Parity.None, 8 , StopBits.One); &nb ...Show All
Visual Studio integrating Crystal Reports with a C++ app (MFC)
Hi I'm completely new to Crystal Reports and only a novice in Visual Studio and MFC programming. After days of googling, I have come to the conclusion that integrating Crystal Reports is relatively easy when using C#, VB, etc., but I can not seem to find any tutorials on integrating Crystal Reports with C++, specifically in a MFC app. Is the Crystal Reports Viewer Control not accessible in the MFC development environment Does Crystal Reports need to be integrated as an ActiveX Control Business objects I know these questions are probably extremely simple and straightforward., but, again, I am a relative beginner to all these technolog ...Show All
Windows Forms beta2 deploy web application
I am using Beta 2 IDE environment. I build the code successfully and now I am ready to deploy the code to another server. I am using aspnet_compiler.exe utility to precompile my code. However, I get below error everytime I try to do this. Can you please help error ASPRUNTIME: Object reference not set to an instance of an object. Hi, to upload your pages on a server you just have to copie your files onto a asp.net server and it works. Can you post some code where you get this error while "precompiling". ...Show All
