Patrickssj6's Q&A profile
Windows Forms Printing a windows form page
How do i print a windows form . In my case my window has many controls embedded on it.along with a scroll bar,so I need to print the whole window including that which is seen when scrolled. The samples from net print only user visible area. If this is not possible is there a way to print out the data present in each control. How can these things be accomplished. --------------- Regards Bhargav Printing a form as in the sample will do just that, print the form. Thats nothing more than a screen shot. What you are asking to do is print the data contained in the form. Bas ...Show All
Visual C++ what dose that mean?
int main (int argc, char *argv[]) what dose argc mean and what dose argv mean What is the difference between "int main (int argc, char *argv[])" and "void main()" int main(int argc, char* argv[]) is the Standard signature of the entry point to any C or C++ program. int argc - this is the count of the number of arguments that the operatring system (in this case I suspect Windows) passed into your program. char* argv[] - this is any array of strings that represent the arguments that were passed into the program. There are 'argc' elements in this array. Say you have a program call myp ...Show All
Smart Device Development VS.NET 2005 BETA2 : Could not establish connection to network
Hello to all! I just create one simple solution in VS.NET 2005 Beta2 with 2 projects: -webservice project (just with default HelloWorld web method) -smartDevice project (who call HelloWorld web method) When I try to call WebMethod the error occurred (I use PocketPC 2003 Emulator): An unhandled exception of type 'System.Net.WebException' occurred in System.Web.Services.dll Additional information: Could not establish connection to network. When I write the same code in Windows project everything works OK. In VS.NET 2003 also works OK. I use this code: ----------------------------------------------- localhost.Se ...Show All
Windows Forms Word contacting Versign
Everytime I launch word, it is trying to contact crl.versign.com. For now I block these contacts with my firewall. can anybody tell me why Word would try to contact Verisign Regards Nothing of that kind. It is a relatively new installation of Office XP. Word is also trying to contact Verisign if I start it without an existing document. Can't find&n ...Show All
Visual Basic Change "plusminus" icon in treeview control
I everyone... i need to know if is possible to change the "plusminus" icon in a treeview control. I want to change so i can customize my application and make it more pretty If anyone can help me.... Thanks Yes you can...First you can stop them from even being displayed by setting the showplusminus property to false and then you can do just about anything you wan when you set the DrawMode property to OwnerDrawAll ...Show All
Visual Studio Tools for Office How to Access Data in Offline using Excel 2003 and VSTO 2005
Hi, We want to develop a smart client Excel 2003 Application which works both in online (when the user is connected in LAN) and offline scenarios that work with the data present at centralized location of our database. So we need more information about architecting / developing such an application about accessing the data in offline scenario. Please kindly provide some information, samples about this would be helpful and also we need information of advantages and disadvantages for in developing the Office application working in offline scenarios. Thanks, Here are som ...Show All
Windows Forms Vector.Rotate rotates in which direction?
I tried to use Vector.Rotate in one of my creatures and for hours tried to figure out why it was running in the wrong direction sometimes. I went into the conclusion that Vector.Rotate rotates clockwise, so if a positive unit vector moves your creature to the right (0 radians, or 2*Pi radians), rotating that vector Pi/2 radians will make the creature&n ...Show All
SQL Server Export report to password-protected PDF
Just to throw out there another question with a "Not possible" answer: Can RS export a report to a PDF and password-protect it for changes/edit/etc. You answered your own question. Not Possible. Or I should say not possible with the RS PDF renderer. You could write your own Render extension that could do this. It would not be a trivial task. ...Show All
Windows Forms Open Form
hi i have 2 forms i want when i go from form 1 to form 2 form1 to be closed and form 2 appers when i do that all the appliction closes plz tell me what to do The challenge here is that when you start your application, the message pump is activated around Form1 (see Application.Run(new Form1()) and when that form is c ...Show All
Windows Forms DataGridView - Row Selector - Can they be numbered ???
Howdy all, I have a datagridview and my data's index is NOT an integer; but I would like to see a number associated with the row. Is there any way I can put a number in where the record selector goes I know what data i want in there - I just don't know how to put it there. Is it possible Thanks in advance for your help. Randy Randy, you can display text in the row header cells. In C#, you would need to do this: this.dataGridView1.Rows[rowIndex].HeaderCell.Value = "text to show in header"; or this.dataGridView1.Rows[rowIndex].HeaderCell.Value = number.ToString(); Hope this is what you need. Thanks, ...Show All
.NET Development using ADODB
im trying to execute a store procedure in a method written in c#, but i want that method to return a recordSet so i tried using adodb but how to execute the store procedure using adoodb is it possible thanks in advanced Hi, Yes you can. But you'll have to use SOAP to get xml values returned by the Webservice. When you return a Dataset, it would be converted to xml. Just download the SOAP SDK and see the docs on how to capture a webservice in VB6... cheers, Paul June A. Domag ...Show All
Windows Forms DataGridView Error
When I execute the following code: myleaserow.Cells[5].Value = ((decimal)(myleaserow.Cells[8].Value) * (decimal)(myequiprow.Cells[1].Value)) / 1000; I get an Object referance not set to an instance of an object error. How do I fix this The purpose of doing this is so that I may edit the cell in the datagridview and then insert it into the database. What is strange is that&nbs ...Show All
Visual Studio Express Editions build rrors
heres the code its from the Web Browser tutorial dont understand what is wrong if u know pls tell me than....BTW its gives me a error on the last bracket } ________________________________________________________________________________ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Web_Browser { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void goButton_Click( object sender, Event ...Show All
Visual Studio Express Editions Where is the redistributable C runtime?
Keywords: MSVCR80.dll, Microsoft.VC80.CRT According to the documentation, the redistributable components of the runtime are supposed to exist in the VC/redist/x86/ directory. See the "Deploy using xcopy" MSDN article. This directory doesn't exist in the VC++ 2005 express install. Further, the redist.txt file mentions a vcredist_x86.exe which does not exist. Where are the redistributable components I am compiling a DLL for use as a plugin for 3rd party software. It works on the build host. On another machine, I have tried copying the CRT DLL's out of the WINDOWS/WinSxS directory and creating a private assem ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft. ...Show All
