StuartGM's Q&A profile
Windows Forms Clone control properties
Hi together, I am trying to clone a control. So I run thru all propertydescriptor elements from the following collection: PropertyDescriptorCollection originalProperties = TypeDescriptor.GetProperties(originalCtrl); Then I want to set the properties in a new control: PropertyDescriptorCollection cloneProperties = TypeDescriptor.GetProperties(cloneCtrl); foreach (PropertyDescriptor origProp in originalProperties) { // Get the corresponding property of the cloned control PropertyDescriptor cloneProp = cloneProperties.Find(origProp.Name, false); if (cloneProp != null) { if (origProp.ShouldSerializeValue(originalCtrl)) { object origPropertyValue = origPro ...Show All
SQL Server Can not create a connection to Oracle data source when report is processing
hello, I am getting following error message when I try to view a report from reporting services. The report runs fine but after while i get the following error message. The error message will go away if i open the report manage from the server and run the report once. The report will run fine for a while from anywhere but afterwhile i get following error message. An error has occurred during report processing. (rsProcessingAborted) Get Online Help Cannot create a connection to data source 'OracleConnProc'. (rsErrorOpeningConnection) Error while trying to retrieve text for error ORA-12154 can someone please help me. Hello Robert, I followed steps from your suggested a ...Show All
Visual Studio Express Editions Random numbers
I want that some variables have a random number. I used that code: var1 = Int(Rnd * 25) var2 = Int(Rnd * 25) Var3 = Int(Rnd * 25) But I'v got still a problem. The variables haven't a real random number. When I start my program then are var1, var2 en var3 = 17,14,13. Now there isn't a problem. It looks like it are random numbers. But when I quit the program and I restart it. var1, var2 and var3 are again 17,14 and 13!!! Is there a command that give me each time other values. So real random well the Random class works on the some algorithm perhaps involving the current time. you may want to place a slight delay on the thread but not recommended. Since the time difference between generating 1 number and the other is small, probab ...Show All
Windows Forms How do I make DataGridView events.
Hi. I have a DataGridView which I programmatically add 6 columns. The initialize function is a private void() and is called on my Form_Load event. On this DataGridView, I have 4 ComboBox columns and two TextBox columns. I want to create an event for the first column only so when I select a name out of my ComboBox, the adjacent cell is auto-filled with a code from my SQL database. I only need help dealing with adding this event (in C#) as I can do the rest of the stuff quite easily. I've just never gotten involved in programming events (but got VS2005 to create them for me before). Can someone help please Thanks in advance Sean. Hi Damiaan, Thanks for your help once again! Sorr ...Show All
Software Development for Windows Vista conime.exe
Hi Oliver, Could you please refer to the thread below http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1097952&SiteID=1&mode=1 Thanks for your help and answer! Vian The conime.exe is located in "C:\WINDOWS\system32", and the version number is "6.0.5600.16384". I work in Nortel, who is the partner of Microsoft, if this doesn't work, I will contact the partner support representative. Thanks for your information! Thanks, Vian ...Show All
Windows Forms array assigning problem
i want to assign the value 500 in this position and else 8 Dim arr() As Integer = {70, 71, 72, 73, 74, 111, 113, 114, 116, 117, 119, 120, 122, 123, 125, 126, 128, 129, 131, 132, 134, 135, 137, 138, 140, 141, 143, 144, 146, 147, 149, 150, 152, 153, 155, 156, 158, 159, 161, 162, 164, 165, 167, 168, 170, 336, 424} the total array size is 554 arr2(554) how can i do this arr2(0)=8 arr2(70)=500 note 70 is the 0 element of the arr() thanks There are 554 numbers array. i want to assigne the different values to these array. i want to assign "500" only these values 70, 71, 72, 73, 74, 111, 113, 114, 116, 117, 119, 120, 122, 123, 125, 126, 128, 129, 131, 132, 134, 135, 137, 138, 1 ...Show All
SQL Server Replication security help please...
Hello, I am being told that my SQL server can no longer use a domain account to do replication cause it is a violation of SOX codes... So here is my question to ease my pain.... I believe that I can run the SQL server service under [local system account] with no issues but what about the SQL server agent service It needs rights on all the servers right I have found where you can configure replication to use sql authentication but then I can use snapshots... any help would be appriciated... oh.. I use transactional and merge if that makes any difference. Hi William, Replication agents run under the context of a Windows account. The agents make Windows Integrated Security connections ...Show All
Windows Forms Help! How can I make it check for updates? (MSI, non ClickOnce)
Hello all, Is there some documentation or walk through somewhere for programming the application to automaticlly check a specified location on the internet for updates every time the app if fired up I have a very simple program I have to deploy with MSI, so I loose the extremely important auto-update feature of ClickOnce. Any help is appreciated as I am just fumbling my way thru all this and feel slightly overwhelmed. I believe you have created a visual basic project so you have to use 'SampleForm. vb ' instead of 'SampleForm. cs ' ...Show All
Visual C++ trying to use localtime.....
Hello...I'm trying to have it display the local time of the users location.....It's weird that TickCount is in Environment:: .. but LocalTime is not. How do you get it to get the local time ! Thanks. GetLocalTime returns a void you cannot initialize a string with that and you cannot pass an unintialized pointer to GetLocalTime - well you can, but... Use this instead: SYSTEMTIME st; GetLocalTime(&st); System::String^ s = System::String::Format( "{0}.{1}.{2} {3}:{4}:{5}" ,st.wDay, st.wMonth, st.wYear, st.wHour, st.wMinute, st.wSecond); System::Console::WriteLine(s); -- SvenC ...Show All
Visual Studio Express Editions VB6 to VB2005 compile errors
I am trying to migrate a project from VB6 to VB2005. It is about 70,000 lines of code. After the upgrade wizard completed, it gave me a UpgradeReport.htm. In this are four sections. I have 181 Compile Errors, 1431 Design Errors, 3143 Warnings, and 11 Misc. It was my understanding that if I fixed the Compile Errors, the project would compile. It does not. I eliminated all of these Compile Errors. If I try to do a build, I get 102 Errors. Of course the last one says "Maximum number of errors has been exceeded." So, I don't know if I have 102 more fixes to get it to compile or 5000 more fixes. I would like to start by just getting it to compile and then set about fixing the other things. Am I going about this the right way ...Show All
Visual C# How do I transfer data to an Excel file
Happy New Year to all our readers! Hi everyone, I have a need to write data to an Excel file. I found a KB file, 306023, which gives a lot of information and an example that works. I now want to add some of this code to a DLL that I am building. However, having added all the recommended References, I still get errors. Typically, public Excel .Application m_objExcel = null ; gives an error: 1 The type name 'Application' does not exist in the type 'AnnsonDll.Excel' . I don't understand why I get the error here, but not in the example code. I have searched the web, but I can find no useful information on any of this. The KB file refers to using Excel = Microsoft.Office.Interop.Excel; but this isn't recog ...Show All
SQL Server Transaction Log Back Up error using SQl Dmo
Microsoft SQL-DMO (ODBC SQLState: 42000) (0x800A1070) [Microsoft][ODBC SQL Server Driver][SQL Server]The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE. [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP LOG is terminating abnormally. How can I check recovery model of database and change the same if User wants to take Transaction log back up. You can use SQL Workbench - drill down to the database, right-click, go to properties, click on Options on the upper-left pane, and then you will see the recovery model listed near the top of the window. ...Show All
Visual C++ __stdcall fun
heya folks, i'm trying to call this unmanaged function in my managed c++ service, in the onstart function: (i'm using vs 2005, /clr) IMGetSecurityDetails(&details); here's the prototype, struct and defines: __IMKERNEL__EXPDEC = __declspec ( dllimport ) CALLBACK = __stdcall typedef struct tagSECURITYDETAILS { int size; int numusers; int capacity; int capacityused; BOOL capacityok; BOOL willexpire; SYSTEMTIME expires; BOOL tamperedwith; int concurrentServers;// -1=Unlimited, 0=default(1), or actual number int terminationPoints;// -1=Unlimited, 0=default(1), or actual number int terminationPointsUsed; BOOL analyzerModulePresent;// ...Show All
Smart Device Development Deployment and/or registration failed with error: 0x8973190d. Error opening file
Hi All, Dose anyone know why VS2005 is giving this error at deploy time. and How I can fix... here is the execat error when I try to deply the project on a "Pocket PC 2003 Device" or "Windows Mobile 5.0 Pocket PC Device". "Deployment and/or registration failed with error: 0x8973190d. Error opening file 'c:\Projects\Cust\cust_wce\ace_core\wce400\Pocket PC 2003 (ARMV4)\Debug'. Error 0x80070005: Access is denied." "Deployment and/or registration failed with error: 0x8973190d. Error opening file 'c:\Projects\Cust\cust_wce\ace_core\wce400\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug'. Error 0x80070005: Access is denied." it looks like to wants to deply a directory. if that is the case, w ...Show All
Software Development for Windows Vista WF surface designer - loading definition ok from SqlTrackingWorkflowInstance ok, but not via WorkflowInstance!?
Dear Workflow Designer Re-hosting experts, I have been wrestling with this problem for some time and can't make sense of it. I have a deployed and working workflow that I wanted to provide readonly visualization for. I had already successfully built a workflow monitor in a windows console app that admin users can use to visualize running workflows and get information about pending tasks, completed tasks etc. I used the sample WorkflowMonitor code that came with the June CTP SDK. I then wanted to provide a similar visualization for the web users of the workflow application so they can see where their current task they are working on fits into the overall workflow that is running. So, I used a combination ...Show All
