SteveC_65's Q&A profile
Windows Forms transfer data between/to forms
Hi,i have designed a application to handle employyees details.I got 3 forms I got 1 form to add a employee,1 form to delete and 1 form to update employee details. For each,form, i got a 'private void connectToDataBase()' method to establish aconnection to the database. Is it possible to have 1 form initially to handle the connection.......and then the rest of the forms make use of that conection Hope some-one knows how to do this. Thanx alot. Rahul The same question is asked on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1258143&SiteID=1 It is not a "connect to database" sharing that is discussed there, but rather a "sharing data". The ...Show All
SQL Server illegal variable name/number error in script component
Hi There, I am trying to populate a table in Oracle Db using SSIS. For some reason, I get this error.. illegal variable name/number This is what I have.... Public Overrides Sub PreExecute() oracleCmd = New OracleCommand( "INSERT INTO Temp(ID) VALUES(@KEY)" , oracleConn) oracleParam = New OracleParameter( "@KEY" , OracleType.Number) oracleCmd.Parameters.Add(oracleParam) End Sub Public Overrides Sub Input0_ProcessInputRow( ByVal Row As Input0Buffer) ' With oracleCmd .Parameters( "@KEY" ).Value = CType (Row.KEY, OracleClient.OracleNumber) .ExecuteNonQuery() End With End Sub == Row.Key returns a row from the oracel table which has one col ...Show All
Visual Studio Tools for Office to retrieve event if mail item is moved VSTO oulook
Hallo, i would like to know if it is posseble to to retrive a event if a mailitem is moved to a other folder. Gloat Helmut is correct (and a great Outlook dev resource!) The only thing I would add is that using this event is good; just keep in mind that it will also fire if an item is copied into the folder. You will have to add additional code to detect whether this is an item being moved or if it is being copied. John ...Show All
SQL Server We have a new white paper on Connectivity!
Dear Forum Members, We've been working on a white paper targeting SSIS connectivity which we hope will help answer some of the key questions in the following areas : What are the SSIS components and their support level for ADO.NET, ODBC, and OleDB How to deal with 64-bit connectors what is supported, what is not Special sections on popular data sources such as SAP, Oracle, DB2, Flat File, XML. A comprehensive list of data sources and available connectors from Microsoft and other 3rd parties. You'll also find answers to why some of the things are the way they are today. Note that this white paper is currently under official editing and publishing in Microsoft. It'll be a while before it goes public off ...Show All
Windows Forms Help! "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records"
Help! I have a Access 2003 Database that holds info like "customer name" "phone number" etc. When I enter that info and then click new record then go back to the previously created record and add some more information in the other text boxes ("address", "age", etc) I get the following error: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records and when I click on details then row, I get this: '((Help_Desk_Center.HDC_DataDataSet.Table1Row)(((System.Data.DBConcurrencyException)($exception)).Row)).Customer_called_on' threw an exception of type 'System.Data.StrongTypingException' What is all that and how do I fix it, get around it, ignore it, or what ever I need to do Thanks for ...Show All
Smart Device Development Windows Mobile 5.0 Developer Resource Kit
Windows Mobile 5.0 Developer Resource Kit is available for Order. Please see http://msdn.microsoft.com/mobility/windowsmobile/howto/resourcekit/default.aspx What's inside the kit Tools and Technologies Visual Studio 2005 Professional Edition (90-day trial)* Windows Mobile 5.0 SDKs for Pocket PC and Smartphone ActiveSync 4.1 .NET Compact Framework 2.0 Localized emulator images and other useful developer tools SQL Server 2005 Mobile Edition Developer Resources Links to technical whitepapers and webcasts WeFly247-50 sample applications Hands-on labs and videos Partnering opportunities I should have made sure IIS was installed first. WeFly247-5 has installed ...Show All
Internet Explorer Development Css not applying.
i am creating a text area (multi line text box) but its not applying css to it..... any ideas 2ndly i have created a required field validator dynamically and applying the css on it but it is still showing error in default red color. for record css is applying on all other controls on the page. You have a property ForeColor="Red", or it is simply just missing. Add the property: ForeColor="" This will remove it completely. Your welcome! ...Show All
Visual Basic Client server
Hello, I'm not sure where should i post this thread. I want to create a client-server application in a network. I will use visual basic in visual studio 2005. In my system environment, I have 2 servers, i want to link from server A to server B and and retrieve its database information. I'm new to client-server application environment. Is there anyone provide some source and helps to me. I'm urgent to develop this before august 15 due date coming. From an article i have read, it tell me to use winsock in vb 6.0. But i can't find any winsock in visual studio 2005. I hopes this make sense and anyone could helps me. Your helps would be appreciated. smith In addition to ...Show All
Visual C++ When "It just works!" doesn't. :(
Hi, To test out "C++ Interop", I created a static library in VC++ 6.0: Here is the contents of the header file (staticLibrary.h): #ifndef STATICLIBTEST_H #define STATICLIBTEST_H #include <string> using std::string; int add352(int value); string sayHello(string name); #endif Here is the implementation (staticLibrary.cpp): #include "staticLibrary.h" int add352(int value) { return value + 352; } string sayHello(string name) { string s1("Hello, you are the greatest, "); return (s1 + name + "!\n"); } This code compiles fine in VC++ 6.0 and it produces an object called "staticLibrary.lib ...Show All
Smart Device Development CABWIZ/Makecab problems
Hi all, I'm having trouble building a CAB file for a CF 2 project. Done the usual steps, Added a Smart Device Deployment project to my solution, set its propertys, go to build and Always get back a message saying ; Error: CAB file "C:\Documents and Settings\DAVE\My Documents\Visual Studio 2005 \Projects\Project1\DeploymentCAB\Release\Project1. CAB " could not be created It's really annoying, I dont want to have to go back to using 2003 to build projects as I really like the new features in CF 2, but if I cant deploy them correctly, then theres no point. Any thoughts/comments appreciated. Dave Actually, INF format should be the same. What exactly appears to be wrong with this INF A ...Show All
Visual C++ random numbers
I have recently been trying to get the random number generator that comes in the default libraries to work.. I can't get the rand() to acctaully create a real random number to my wanted parameters. For example if I say wanted a number between 1 and 10 I would try: int random_value random_value = (rand()*10)+1 I would then be able to use that random number for switch processes etc. The problem is that the number is not random, the random number is always the same, with any one particular seed. Please is there another easier way of creating random numbers that are really random. I believe that it is possible to use the date as a seed which is always different, but I want a random number between 1 and 0 so t ...Show All
.NET Development .NET program in autostart
I've created a very simple "hello world" program with C# 2.0 (VS2005) and placed this program into the autostart folder. On startup the console window shows up, but it remains empty for several seconds. Only after about 5 seconds the "hello world" message appears in the console. I tested the program on a different computer (the hardware is pretty much the same) and the delay is much shorter (about 1 sec). I guess that it has to do something with the initial setup of the CLR. How can I speed this up Check the System and Application Event logs to see if anything gets reported at system startup. ...Show All
Visual C++ Command line compiler help needed!!!!
I'm trying to compile the below code with the command line compiler but I get a bunch of errors Errors like 'System' is not a class or namespace name Can the command line compiler be used on this type of code #include <stdio.h> #include <stdlib.h> using namespace System::IO; using namespace System::Text::RegularExpressions; void main (void) { int index = 0; String ^line; Regex^ rx = gcnew Regex(",") StreamReader^ sr = gcnew StreamReader(testfile.tif); while ( line = sr->ReadLine() ) { array<int>^ ia = rx->Split(line); } int a=array[index++]; int b=array[index++]; int c=array[index++]; if (a <= 42) { b--; if (c > 1444) c--; } else if (a > 42) { do { a += b; } while (b <= 1000); } ...Show All
Visual C# doubt in FOR loop urgent .
DateTime sdate=Convert.ToDateTime(amcsdate.Text); DateTime edate=Convert.ToDateTime(amcedate.Text); DateTime i; for(i=sdate;i<=edate;i=i.AddMonths(1)) { Response.Write(i); } above coding works fine . how to store the values of i in different variable like d1,d2,d3 etc. Example : sdate = jul 03 2006 edate = jul 03 2007 now i want to store the value of i in d1,d2,d3,d4.........etc till i <= edate . after getting the values of d1,d2 etc i will be storing in database . my table format : d1 d2 d3 d4 etc ............ jul 03 2006 Aug 03 2006 Sep 03 2006 Oct 03 2006 If you're using C# v2.0, then instead of using ArrayList you could use List<DateTime&g ...Show All
.NET Development Delegate on my custom class members
hi, I want that when the values of my class members change, a method will be called. For Example C#: Why not use delegates (I.e. why invent something to work like a delegate ) That's what they were put in the language for! Forgive me if you already know how to use delegates; in case you don't, here's how I might do what you want using delegates: using System; namespace MyStuff.NotifierClasses { // The delegate declares the signature of the method to be called by the event. public delegate void ValueChangedDelegate( object o, ValueChangedEventArgs e); // This method records the name of the property that triggered the change event, // and the new va ...Show All
