pencil's Q&A profile
Visual Studio Express Editions DataGridView Manipulating data
Hi I want to use a DataGridView as a report for a system I'm designing, I don't want to bind it to a database and I don't have the know how yet to figure out how too... although it would help me out soo much! basically all I want to do for now is be able to change the header of the table (which at the moment only seem to be changable in design time) and then to add data to how ever many cells are required. thanks :-) Well it depends on the computer, they should always be updated via Windows Update to make sure they are up to date. once you find out the requirements in order to run say SQL Server without installing SQL Express, for example, you can then make prerequisites for your app via c ...Show All
Visual C# Types and Variables
Is it possible to make a Type into a Variable Well this is the code i'm trying to make work : public string TheURL { get { return ComboBox; } set { this.theURL = value; } } but i get the error message ; 'System.Windows.Forms.ComboBox' is a 'type' but is used like a 'variable' 45 24 So i want to make the type ComboBox into a Variable so that it works. Ps have you got any other ideas on how to get it to work ...Show All
Visual C# Answer What is the idea behind this program?
Hello everybody. I would like to make a small program for my university I am in. Just a little bit of history. Very often I see people that have not logged out of their accounts. A bad person can do a lot of damage if you have left your accound logged. What I want to do is to write a program to monitor the user's activity. Let's say he/she can define a time interval. If there is no activity during this period, the prograt should log off the user automatically. That's it. So could you guys explain to me the general idea behind this program(programmer's point). How can I monitor the user's activity and stuff like that. Any help would be greatly appreciated. With all the respect, chire This ...Show All
SQL Server script to take backup of a database
Hi, I am trying to create a script that takes backup of a sql database. The script is failing with message "backup failed with message..." Option Explicit Dim server Dim backup Set server = CreateObject( "Microsoft.SQLServer.Management.SMO.Server" ) Set backup = CreateObject( "Microsoft.SQLServer.Management.SMO.Backup" ) backup.Action = 0 backup.Database = "test_old" backup.SqlBackup(server) I think this is failing because i did not specify the backup file name. Can u please let me know how can i specify it Also it would be great if you can point me to some relevant documentation which shows how to use SMO with vb script. Regards Aseem Bansal ...Show All
Visual Studio Custom Project Item Templates
Hello everyone, I am developing a new project wizard, and from it I am trying to use an existing project item from a template I created that is working fine. The problem I have is when I call GetProjectItemTemplate from the solution2 object, I get: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) So, I started testing some things, and replaced my call for the custom template with a call to a microsoft supplied template, class.zip: string classTemplate = soln2.GetProjectItemTemplate("class", " csharp" ); I found that this works just fine. However, if i replace "class" with another microsoft supplied template, Form for instance: string classTemplate = soln2. ...Show All
Windows Forms Trying to get GUI to appear for logged in user, from a service running as System.....
I've got a service that runs from system, and it needs to reboot the client, but I can't get any gui to be displayed to the current user. Has anyone got any suggestions on how I can get some kind of popup to give the user warning the machine is about to reboot and wait for user input before the reboot takes place Thanks, Eric- Is there a way to set that setting when installing programtically I'm installing the service from another application, thusly. SvcInstaller c2 = new SvcInstaller (); c2.InstallService( svcPath, svcName, svcDispName ); Thanks! Eric ...Show All
SQL Server RDA Push Command Failing ...
Hi, I am using the Pull command to pull two fields, on is the primary ID (int) non identity and the other is Description which comes down as an ntext type. This works fine but if I change the description and use the push command I get the following error:- The Query processor could not produce a query from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time. I am really stuck with this one so if anyone can shed some light on it I would be much appreciated. Cheers, Jiggy! Just so you do not feel alone in the world... and MAYBE point you in a useful direction... This has to do with the parameters being set by the connecti ...Show All
Software Development for Windows Vista Anyone else Agree - Missing Event?
I was just wondering or agrees or... even... disagrees. Why is there no 'StateChanged' event There is event for Started, Completed, Terminated, but not the main event I , personally, would think would make the most sense: StateChanged Anyone else think this would very much be a benefit to workflows in general Especially, if the event included the option for a generic<T> object to be passed in the event. Again... a newbie just sharing his "two-cents". Trevor Thank you, I am NOT complaining. Tracking is VERY robust, I was just considering "simple" scenarios where such robust features are not necesarly required. I certainly have alot of "learning" to do ...Show All
SQL Server Execute a SSIS package from Java code
Hi! Is it possible to execute a SSIS package using Java How Thank you! ...Show All
.NET Development Best Approach to Throwing/Handling Exceptions
Hi all, I am writing an application that has several layers, where in each layer there is the possiblity of Exceptions being raised. Where is it best for my to handle an exception if it is raised in a lower layer, such as the data layer For example, I have the following layers... UI Layer (Form) -> Middle Layer (Manager Classes) -> Data Layer (Database Classes). If a query against the database raises an exception, is it best to catch this in a try->catch block that is based in the UI layer in which that block calls the Middle Layer, which then calls the Data Layer Or is it best to bubble up Exceptions from the Data Layer to the UI Layer and catch this bubbled exception in each layer (I am going to use this code on a mobile device ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Not totaly sure.
I have never done any C++ or C# programming. (quite a bit in HTML) anyways I look for a few tutorials and wondering if you could give me some good links to ones that would be more helpfull with XNA, I DL'd and watched a 5 hour one but that was more for windows aplications in C# express. Anyways just a few links and a quick sentence on what the tutorial is about would help me alot. Thanks Clicky ! ...Show All
SQL Server problem with url in microsoft server 2005
Hi, I have a problem: When i enter in the iis i have two virtual directory: Reportsr$sqlexpress ReportServer$sqlexpress I try to run the report by browsing home.aspx and going to my report.The url that i got is: http://localhost/Reports$SQLExpress/Pages/Report.aspx ItemPath=%2fReportInventory%2fReportTotalCounting Now, i enter the parameter wanted and click on export to pdf file it works fine :it opens the report in a pdf file ,i got a url like this: http://localhost/Reports$SQLExpress/Reserved.ReportViewerWebControl.axd ReportSession=a52f1o55wy00wq454pq0jp45&ControlID=f8672382-3d09-430f-a308-9bf42b850184&Culture=1037&UICulture=9&ReportStack=1&OpType=Export&FileName=ReportTotalCounting&ContentDis ...Show All
SQL Server XML Import
I have this XML “20060828_61706.xml”: < xml version = " 1.0 " encoding = " ISO-8859-1 " > < Report type = "R RR " date = " 2006-08-28 " time = " 06:17:06 " startDate = " 2006-08-21 " endDate = " 2006-08-27 " sequenceNumber = " 8 " totalRecords = " 6 " version = " 1.0 " >< Name ><![CDATA[AAAAAA ]]></ Name >< Publication id = " 286 " name = " Account Statement / Releve de compte " mailerName = " AAAA " totalRecords = " 6 " > < Subscription uid = " E5FF0722-9D00-44C9-9C06-480B412A2A2C " accoun ...Show All
Windows Forms DataGridViewComboBoxColumn Problem
"My" DataGridView consists of only two ComboBoxColumns. As the form loads I bind the DataGridView.DataSource to a DataTable. And the DataGridView.DataGridViewComboBoxColumn.DataSources to their respective DataTables. Next the user clicks the "Add" button and I allow him to add and edit rows, set as it follows: DataGridView.AllowUserToAddRows = true ; DataGridView.EditMode = System.Windows.Forms. DataGridViewEditMode .EditOnEnter; If news values are selected, the changes are saved and I set the DataGridView state back to normal: DataGridView.AllowUserToAddRows = false ; DataGridView.EditMode = System.Windows.Forms. DataGridViewEditMode .EditProgrammactically; If no new values are selected, no ac ...Show All
Windows Search Technologies How do you get the Desktop Search Bar to show?
I am trying to figure out how to work this thing. I can not figure how to get the Desktop Search Bar to show on start bar. Can anyone give me some insight as to where I can get a Getting Started paper for this thing or tell me how this works Thanks Greg Forster I was using the version you mentioned - the latest full version. It didn't work so I installed v.3 beta to see if that would, and it didn't. I can easily uninstall v.3 and reinstall the latest full version in order to apply any fix you might have. ...Show All
