Roderick Prince's Q&A profile
Visual Studio Create a free form report??
I'm needing to create a report that displays one page per employee in a free form style about each employee. Sort of like how you can create templates in Word that when run plug in the data in specific fields and print the report. I believe I can do it with Reportviewer. Has anyone done this kind of report Any suggestions would be appreciated. Thanks Greg The answer is to use the List control. It has allowed me to generate individual free from reports. Greg ...Show All
Visual C# How to Register dll's
Hi: Well I want to do a process, this process will register the softpub.dll, we can register manualy following the steps: start -> run -> REGSVR32 softpub.dll ->enter then i want to register the msxml3.dll, manually following the same steps but typing Regsvr32 %windir%\system32\msxml3.dll but, i want to do this operation automatically inside my application, how can i get this Thanx. P.S. if is possible to do this task, you can post in Visual C# .NET or Visual Basic .NET ok for the people who want to know how: in C# private void button1_Click( object sender, EventArgs e) { System.Di ...Show All
.NET Development Help me to solve this problem(about a display)!Thanks!
tools:VC++.net the code is: char ch; ch = 'a'; MessageBox::show(ch.ToString()); After this code runned!The MessageBox showed '97'.It shows the alphal's ASCII number,not show 'a'. How can I fix this problem Thanks! Hi, Ok, you can do this instead. char c = 'a'; MessageBox::Show(Convert::ToChar(c).ToString()); Hope that works... cheers, Paul June A. Domag ...Show All
Visual C++ Question regarding removal of Windows driver service
Hi All, I'm not sure this is the place for my question, but I'll give it at try, I'm brand new at this forum. I'm a Delphi programmer, and I'm developing a program that installs and removes the driver "giveio.sys". I'm familiar with the API functions OpenSCManager, CreateService, StartService, OpenService, ControlService, DeleteService, CloseServiceHandle ect. I'm aware that when I install a service, it will be stored in the registry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and that it is removed from the registry as I remove the service. My problem is that in the Device Manager -> Non-Plug and Play Drivers the driver keeps ...Show All
Windows Forms e.cancel=true
hello i see an example in the MSDN: // Calls this method from the InitializeComponent() method of your form private void OtherInitialize() { this.Closing += new CancelEventHandler(this.Form1_Cancel); this.myDataIsSaved = new Boolean(); this.myDataIsSaved = true; } protected void Form1_Cancel (Object sender, CancelEventArgs e) { if (!myDataIsSaved) { e.Cancel = true; &n ...Show All
SQL Server Problem installing SQL 2005 on a Windows 2003 DC
Hello to all, we try to install an SQL 2005 server on a Windows 2003 server that is also a Domain controller. In discussions of july last year, Dan Jones said :"Unfortunately in setup you cannot change the default account for all services. So there is absolutely no work around for this problem. This will absolutely be fixed by RTM - " Can anybody help me in that way. We tried installing with our latest CDs (december 2005) The problem is during installing. Despite the fact that we allocate a domain user account as user for the service accounts, we have a error message "Failure creating lo ...Show All
Windows Forms Hide a DataGrid Column. in windows form
Hi is it possible to hide a datagrid column in windows form as it can be done web page. Where the datagrid column is still there but is not visible to the user and you can read the value from the datagrid Really urgent please reply Thanks Atul You can create your own data grid table style and map it to the list that is displ ...Show All
Windows Forms How to add a new line inside a textfield...
Ok i'm trying to add a file list into a text field so i can cut and paste... I don't want the file list to be in one continues line, so I'm appending "\n" to the end... This works BUT I get the new line character displayed on my screen as well... this is my code foreach(object i in this.checkedListBox1.CheckedItems) { Ez ...Show All
Windows Forms Start default mailprogram with attachment
Hello, I would like to start the user's defaul mailprogram with an attachment. I have tried something like this: string toEmail = "test@test.com" ; string subject = "Testar" ; string body = "test" ; string message = string .Format( "mailto:{0} subject={1}&body={2}&attach={3}" , "" , subject, body, @"c:\test.txt" ); Process myProcess = new Process (); myProcess.StartInfo.FileName = message; myProcess.Start(); myProcess.Dispose(); Everythin looks fine but the attachment is not there... If it's not possible to have an attachemnt in this way. Can someone please give me an direction how to start the u ...Show All
Windows Forms How to set the setup info of SQL Server Express Prerequisite
In MSDE, I can edit the setup.ini to control the setup parameters like InstanceName, sa password..etc. How can I do this if I install SQL Server Express as a prerequisite in VS 2005 Thanks Hi there, If you need a list of all the arguments which can be passed to sql server express setup file, you need to extract the sqlexpress.exe file somewhere and in the root of the folder look for a file named template.ini :) You will be surprised, cause you'll find all the arguments with long comments which show how to use them. Hope it helps... Cheers ...Show All
Windows Forms ListView: HideSelection and Scrollable properties
Hello, I have the following problem with the ListView component: I have define a ListView with the 'Scrollable' property set to false. And no scrollbars appears. At run time, after setting the property 'HideSelection' to true, my ListView object becomes scrollbars. Is there an interraction between those two properties. This problem occurs only with .Net 2.0. It works fine with 1.1. Many thanks in advance for your help. Regis The only way to make it running was to set first the Scrollable property to true, change the HideSelection state and then reset the Scrollable property to false. It works, but ...Show All
SQL Server Allow access through network
Hi, How can i make Query analyzer access SQL Server in a network, I've already allowed netowrk connections in enterprise manager(but locally) and none of the users could access what can it be Thanks Hi, didi you enable a listerner for TCP/IP Enable this protocol and you will get access to the services of SQL Server. -Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms App runs in debug mode, but not from .exe
I have written an application that connects to a networked SQL database. In debug mode, the application runs flawlessly. But when I attempt to run the .exe from the bin/debug folder, I initially get this: "Application attempted to perform an operation not allowed by the security policy. To grant this application [...blah, blah, blah]" The message goes on to say "To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared." Okay, so I did that. Now I'm getting and Unhandled exception that states: "The type i ...Show All
Visual Basic Assigning to variables in a structure dynamically by using the field name in a string
Hi, I have an issue where I need to be able to take value pairs i.e. fieldname and value - and assign them to the correct fields in a structure. e.g. structure X Field1 Field2 Field3 Field4 end structure Values "Field2", "xyx" "Field4","pqr1" So I need some method of assigning to the correct field in the structure - much like you can with recordsets i.e. rs.fields("<fieldname") = x. Is there a way to do this Regards Michael You can use reflection to do this. Your other option is to store values as a dictionar ...Show All
Visual Basic Dynamically Changing Button Properties
I am writing an application where I have a 5x5 array of buttons that I want to dynamically update some of the properties. I have created all of the buttons in the editor and have given then names that reference their position in the matrix (i.e. btnGrid11, btnGrid12, etc.). Based on the button that a user presses, I would like to update the image that is shown. I would like to do this in a loop and the problem that I am running into is that I cannot figure out how to dynamically reference an existing resource. This is an example of what I think the code should look like. I was thinking that I could create a button resource ...Show All
