peacefrog's Q&A profile
Visual Basic Dynamic queries on Access databases
I have been programming computers since 1962 in just about every computer language that exist, but I have spent the past 12 hours trying to accomplish in VB 2005 what I accomplished in VB 6 with 3 statements: Set DB1 = DBEngine.OpenDatabase("C:\DataFolder\DataDB.mdb") Sql = "SELECT * FROM TABLE1 WHERE INDEX = 1432;" Set rs1 = DB1.OpenRecordset(Sql) I am no closer now that I was at 6 AM this morning. I really need some help! I can access the database and read/write data to it but cannot find the way to create and excecute the Sql statemen ...Show All
Visual C# Help to datagrid question?
Hallo I need some help to an visual 2003 C# question. 1) I have a datagrid with som columns and data in this columns, nut the questions is, can you insert an extra textbox column in datagrid with a linklabe, checkbox etc. with syntax, if yes how 2) How can I with syntax get the values from a datagrid and put the data in some textboxes Hope to hear from someone who can help me. spot Check this article, hope this might help http://www.codeproject.com/useritems/DataGrid_Template_columns.asp ...Show All
Windows Forms Textbox
Hi, I'm new to .NET framework. In the past I've used Borland and trying to learn visual c++.NET is a challenge. I'm not familar with MFC, so I'm diving straight into .NET. I have not found any good beginner/intermediate books. Anyway, I'm trying to convert an entry into a Textbox (Textbox1->Text) to an int and want a simple way to check and see ...Show All
Visual Studio comandline ss prop seems to "hang" after using analyzer
hello, Please help us solve this problem. After using analyzer on our database we can not use the comandline ss prop * anymore. It seems to hang on a source. When i look up this source in the Sourcesafe explorer there seems te be nothing wrong with the source. I can see the propperties of this source. What we use: Visual Sourcesafe 6.0d What we do: 1. We run on the comandline ss links, prop and paths. It runs correctly. 2. We analyse and fix the database with ANALYZE -C -D -F -V4. We get several errors wich analyzer can repair, except two errors: "There is a diff chain size mismatch in file 'CMCZ0000.cbl' (bwcbaaaa) at v ...Show All
Windows Forms Communication between two user controls ?
I've made 2 very very simple user controls named uc1 and uc2, I've put then on my main Windows form, but how can we for example :: displaying the text from the textbox uin uc1 on the label in uc2 Sorry for my bad english, here is a screenshot : http://dyt4.free.fr/shot1.jpg Thanks for your help I don't know why you posted THAT ...Show All
SQL Server Programmatically Render Report to PDF
Hello, I'm looking for an example on how to programmatically render a report to pdf in C#. I don't want to use a url with the rs:Format=pdf querystring. Any help would be much appreciated!! Hello, Have a look at this doc page: http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx There is a full example of how to render reports programmatically using the Render method. -Chris ...Show All
Visual C++ Getline () error in VS 2005
Hi, I am running into an error with getline. I am a student and I am using Visual Studio c++ 2005. I am writing a Secert Santa program so we dont havce to pick names from a hat every christams. The progam I am runnign into is that getline is skipped the first time through the loop. Here is my code- place=1; do { cout<<endl<<"Enter the name of the Santa - "; getline (cin,name); santa_name [place] = name; temp= santa_name; place++; } while (place<=people); I read about the library problem in version 6.0 but I thought that this was fixed in later releases. I am doing something wrong Thank You ...Show All
Visual Studio Team System xslt for VS test and coverage results
Does anyone know whether there is an xslt tranformation schema available to make the VS test and coverage results more suitable for consulting E.g. to HTML or so. Sadly we did not ship any XSLT transformations for XML exported coverage or unit test results with VS 2005. It is something we are considering for a future release. Hopefully there will be some enterprising folks in the community who work on this and make their work available to others. One thing to point out is that you'll notice the schema is actually embedded in the XML output. This should make it a little easier to understand how to parse the results ...Show All
Visual Basic Migration of x-y graphs from VB6 to VB 2005
How do I migrate a VB6 program detail concerning making an X-Y graph of 100 XY points to VB 2005 (Express edition) Note: the "migration engine" makes a mess of this, even with the simplest VB6 example. Can anyone give an example of connecting 2 points in a picturebox in VB 2005 How do I make the grid for such a graph I used to do that at run time using hLines and vLines at the proper locations. Imports System.Drawing Public Class Form1 Private Declare Function GetTickCount Lib "Kernel32" () As Integer Protected g As Graphics Protected a As GraphClas ...Show All
Visual C# NullReferenceException: Object reference not set to an instance of an object
First time to test web appliction. I do not know how to handle this error. [NullReferenceException: Object reference not set to an instance of an object.] in line: 32 using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace WebApplication4 { /// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.TextBox TextBox1; protected System.Web.UI. ...Show All
Smart Device Development Debug ATL control in Pocket PC 2003/2005
Hi, I am kind new in developing ATL control for Pocket PC 2003/2005. I have been able to generate a .dll activeX control and I can deploy it in the device. My question is how can debug it throug Visual studio 2005. When I started debugging, a message "a non-executable project cannot be started directly. Please set a command to use to start debugging this project" pops up. Anybody have an idea about this Do I need to write a program to host this control for debugging But, when I want to insert activeX control, there is no such control since it is installed in the Pocket PC. I really appreciate any kind help. Thanks. ...Show All
Software Development for Windows Vista RaiseDataChanged and DuplicateInstanceId
I'm trying to send data to a WaitForData activity. I start a workflow containing the data activity, then I call this method below to do RaiseDataChanged-- public void SendRuleIdToWorkflow( string instanceId, string assemblyName, string typeName, string datasourceName) { WorkItemData data = new WorkItemData (); data.TeamFlowRuleId = new Guid (); WorkflowRuntime wfrt = WorkflowRequestContext .Current.WorkflowRuntime; Dictionary < string , object > properties = new Dictionary < string , object >(); properties.Add( "Activation" , true ); properties.Add( "InstanceId" , ne ...Show All
SQL Server TargetServerURL for named instance?
Hi There I am running the latest Sql Server 2005 CTP with reports server installed. I am following thorugh the Reporting services tutorial on 2005 BOL. I am at the publishing report step: The tutorial stipulates that under the project properties the url is as follows http://servername/reportserver or http://local/reportserver for TargetServerURL. The problem is that i am running sql server 2000 and 2005 on my machine. So the named instance for 2005 is called SEANLO\SQLSERVER2005 and the reportserver database is named ReportServer$SqlServer2005 in that instance. Because 2000 is my default instance. As a result i am having difficulty add ...Show All
Visual Studio Print Preview Problems and Two Questions
I'm having problems with Print Preview on a LocalReport. The "Generating Report" message stays on screen even after the toolbar becomes re-enabled. I can print, via the print button, refresh, and go back to the normal view. However, the problem does not occur with the sample Web Log Analyzer project. I have deleted the report and recreated it (several times). The only thing I haven't done is to compare the XML of my report and the Web Log report to see if there is anything radically different. The report is a LocalReport (embedded resource), using A4 page size and 1cm margins. The data supplied is via 4 business object types. 3 are supplied ...Show All
Visual C# set desktop background with c#
i think the title is my question How to change the desktop background with c# I modified a CodingForFun sample to cycle through different images in a single directory. http://www.srtsolutions.com/public/item/103695 The original CodingForFun sample is here: http://msdn.microsoft.com/coding4fun/inthebox/wallpaper/default.aspx -Bill ...Show All
