R.W. Stewart's Q&A profile
Windows Forms how to shutdown or exit windows using vb.net
hi all ... can anyone tell me how to shut down a computer using vb.net .. if possible can anyone provide me with the code thanks In short: 1. Create a new VB Class Project ("WinShutDown") 2. Paste the code from inside modToken into the auto-generated Class1 (be sure to copy the imports statements above Class1 as well) 3. Rename&nbs ...Show All
Visual Basic running cmd.exe using System.Diagnostics.Process
Hi guys, I am running cmd.exe to start a executable from a web application.Howvever, i need to input 2 more parameters for the account and pwd as shown below. CMD.EXE c:\Documents and setting\desktop>perl scriptest.pl test.txt account(domain/user): xxx password:xxxx 'User enter perl scriptest.pl test.txt, then cmd.exe will prompt for account and password for user to enter. How do i let the web application enter the account and password. My program is such Dim proc As System.Diagnostics.Process proc = New System.Diagnostics.Process &n ...Show All
SQL Server Syntax error converting the varchar value 'a' to a column of data type int
I have a table( tab1 ) with a column( col1 ) of type varchar. I insert a row with an integer value( 1 ). And when i query the table using the sql, select col1 from tab1 where col1 = 1 , it works fine. But after i insert a varchar, say ' a ' and then do the same query, i get an error message saying, "Syntax error converting the varchar value 'a' to a column of data type int.". Why is this so Please reply. hello, i am also facing similar kind of problem, can any one help me solving this particular problem. here is SP : ALTER PROC spAllowables_ExistInsCarWithOutAllLOC ...Show All
Visual Studio Team System Team Foundation Server is not available
We have installed the TFS successfully but now we are unable to connect our VS2005 Team System to the TFS. In the event log, on the Win2K3 machine that hosts the TFS I have this error: Microsoft.VisualStudio.ELead.Common.Exceptions.ELeadException: Unable to connect to BIS service. ---> Microsoft.VisualStudio.ELead.Common.Exceptions.ELeadException: Team foundation server is not available; please contact your system administrator (URL =http://ts2005:8080/bisserver/registration.asmx is unaccessible). ---> System.Net.WebException: The request failed with HTTP status 503: Service Unavailable. at System.Web.Services.Protoc ...Show All
Windows Forms controlling color of datagrid cells at run time
Hi, I have a datagrid that is bound to a dataset which contains excel sheet data. I have got 8 columns in my datagrid and all of them except one has strings values, one column has numeric value in it. I want create coloring scheme, such that same values in a column are in one color. So that If I have following strings in my column " ...Show All
Windows Forms Setting DatagridView column type as Combo after databind
Hi, We’re using a datagridview in our winforms prj .. Problem is this .. We have a grid say with 10 columns .. 3 columns are combo’s. ways to go about it are .. 1. set the column heading and column type at design time .. retrieve the records then databind. But in this case .. a new set of columns will be created. In this scenario, is there a way where I can set the column type of the datagrid view to a datagridviewcombobox column after I do the databind 2. Have a blank Gridview.Retrieve the records and bind the table to the gridview. Here again I face the same problem. In this scenario, is there a way where I can set t ...Show All
Windows Forms How to change text from form2 in form1
Hi, I have one question in VC++.NET I have got a second Form --> Form2.h with one button. Now I want to change the text of a textbox of Form1.h when the button is checked. How can I do this thx juvi ...Show All
Visual Studio Express Editions 'Package failed to load' errors on first start of release version
I got this error when starting the ide. I got the same errormessage several times for different packages when trying to click on any of the links in the workspace. The program also crashed on exit. I've tried the beta version earlier, but it didn't work correctly either (header files seemed to be missing from the installation). I've uninstalled all the beta stuff before installing the release version. my setup is win xp, english home edition, SP 2 with latest updates amd xp 2500+ nforce2 motherboard plenty of diskspace left, and 1 gb ram the installation goes fine with no warnings, but it obviously isn't installed correctly. I've been using ...Show All
SQL Server Embedding an object into report
Hi, I am trying to figure out the way to embed a plug-in (Chime for Windows) into my report, so that I can display a certain object from a database, that is stored there as a string. This Chime plug-in would read the input string and convert it to video display. This embedding is easily done in simple HTML: <embed type='chemical/x-mdl-molfile' display2d=true width=200 height=200 hlabels2d='terminalhetero' structure= [encrypted string from the database follows]> I am wondering is there a way to do such embedding straight into my report by using the report designer features or by modifying an RDL file for my report If I am able to place ...Show All
Visual Basic HTML Help Workshop
I need to write help files for 3 new VB forms. How shoud I do this (First Time) This is a very open ended question. What should you do Read the overview documentation with the product and help files (they are there to help you with the product strange though that might seem) Get some more resources http://www.beansoftware.com/ASP.NET-Tutorials/HTML-Help-Workshop.aspx http://www.amazon.com/gp/product/1572316039/002-1286394-2834426 v=glance&n=283155 HTML Help workshop creates a single compiled help file. It is based upon HTML pages, but the first thing you need to do is actually write down what info you want to ...Show All
Visual Studio Express Editions Is there a command that I can add to my program to insure that the SQL Server is running?
Visual Basic 2005 Express Edition: Occasionally, I get an error message when I run the application that I am developing. The problem appears to be that the SQL Server is not running. Is there a command that I can add to my program to insure that the SQL Server is running Below is the error message that I get at random times immediately upon running under Debug: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - E ...Show All
.NET Development Best Practices: Generating Serial Numbers which contain informations?
Hello Forum Users, i am working on a Software which can be registered by people and companies for variable period like 3 months, 6 months or one year and so on. For example, we receive the order from company X, purchasing the software license for 6 Months. Now we would like to use our own Serial number generator and pass in the name of the company and the period and generate a serial number, which will be delivered to the customer by e-mail, phone, fax, letter etc. We would like to be able to show the information on the customers screen (so that he hardly would like to use someone else key), and be able to disa ...Show All
Visual J# Where are the Object Test Bench Features?
The functionality of Object Test Bench seems to missing from the Software Architects edition I know that unit testing is only in the Developers Edition, but I had thought that the Object Test Bench was tied to the Class Designer which is included in the Software Architects edition. I can bring up the Object Test Bench window, but the functions, like Invoke Static Method, which are context menu items off of the Class Designer, don't appear. Thanks for any info. Could you please provide more details about your solution and it's projects And also provide me the exact steps to repro & error me ...Show All
Visual C++ Please HELP~~~fatal error C1083
I downloaded and installed the Visual C++ 2005 Beta 2. I tried to compile this simple program which is fully compile in Visual C++6 but it bring up this error: "fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory" *********************************************** #include "stdafx.h" #include <iostream.h> int main(int argc, char* argv[]) { char name[20]; cout << "What is your name "; cin >> name; cout << "Hello " << name << "\n"; return 0; } ************************************** ...Show All
Windows Forms IssueVision Documentation
I am very new with using the IssueVision application, but the concept is very good for a future application I need to write. I am trying to modify the coding to access other databases for issuing and displaying. Does anyone have some basic documentation to change the structure I tried changing the IssueVisionWeb IVDataSet.xsd, but had the reinstall the app. because it messed up the program. What I'm looking for is something that shows you how to access other databases, create new screens, change fields and update the offline scheme if the application changes. Thanks Doug ...Show All
