ESTAN's Q&A profile
Windows Forms Cannot run Setup because of Framework in clients machine
I was able to get setup program in my development computer to work. What do I need to do to the application to run in other pcs where it doesn't have .net Framework installed. BAsically What do I need to do for setup program to work in clients' computer Thanks Hi, I have a similar problem last time. After development, i create a Deployment Solution to deploy my app in the Target Machine for client. Those PC with no .Net Framework wont let your installer run. So I download first the .Net Framework then install it on the Machine before I run my SETUP Installer. .Net Framework are downloadble. Just check the Microsoft Download and also check what .Net Framework version you are using. Good luck! ...Show All
Visual C# displaying form as image
Hello everybody i want to display a form as thumbnail in the listview for that i am using DrawToBitmap() but it is not working for richtextbox and any com components if i use CopyFromScreen() it is also capturing any contextmenus and filedialogs please help me regards Ramana kumar Hi Ramana, I found the following information in the documenatation of the DrawToBitmap method: The DrawToBitmap method is not supported for ActiveX controls. You can override the OnPrint event and provide custom printing logic if required. I'm not that familiar with this myself and couldn't find any information on the net (I only did a quick search). Hopefully this gets you on the way or ma ...Show All
SQL Server Promblem with log in Managment studio
hi Until now I was using SQLServer Express edition and whenever I wanted to log in Management Studio In the Server Name section I used to wirte MyComputername\SQLExpress but now I'm going to use Enterprise edition what should I write in the Server Name section to log in Management studio Hi, well, that depends. If you are using a default instance it should be just the "servername" or "." or "(localhost)". If you are using a named instance it should be something like your mentioned combination with the name of the instance substituted with the SQLExpress keyword. MachineName\NameInstanceName HTH, Jens K. Suessmeyer. --- http:://www.sqlserver2005.de --- ...Show All
SQL Server Brackets appear in column name
I am using Enterprise Manager to create database tables. In the table design view I am trying to create a column called, section. After typing, section, Enterprise Manager automatically puts brackets around the name, ex. [section]. When I view the table by returning all rows the brackets are gone. However, when I go back to desing view the brackets are there. Why is this happening and what affect does it have on my database Thanks, Matt That is 'normal' and expected behavior when your table or column names contain spaces or other 'invalid' characters. SQL Server, unlike Access you may have been using, does not allow the use of spaces in object (tables, columns, etc.) names. You will always have t ...Show All
Internet Explorer Development MS Word within IE - Editing? Code Interaction?
I was checking out: http://support.microsoft.com/kb/286023 & http://support.microsoft.com/kb/555685 which specifies how to use Automation to get data within and out of MS Word. What I'm trying to accomplish: - MS Word (viewing and editing capabilities) within the IE6/Win browser - Communication between MS Word and Javascript, ActiveX, or .Net Control within the browser. I notice that if i were to navigate to an online Word document, IE6 displays it within the browser using Word. I am able to view and edit it with ease (though the standard Word toolbar is missing). This is exactly what I want but now i would like to have communication between Word and my code. I will need access to the contents of the document (opened information or ne ...Show All
.NET Development How do I Databind XML file to a dropdown list?
Hi, I'm trying to populate a drop down list from a list of countries stored in XML in ASP.net. I can do this successfully with the following file using states as an example: <state name="Alabama" abbreviation="AL" /> <state name="Alaska" abbreviation="AK" /> The 'Choose Data Source' on the drop down list picks up the 'name' property successfully when binding to the values in the XML file. But I have an ISO XML standard file of countries. However the format is like so: <ISO_3166-1_List_en xml:lang="en"> <ISO_3166-1_Entry> <ISO_3166-1_Country_name>AFGHANISTAN</ISO_3166-1_Country_name> <ISO_3166-1_Alpha-2_Code_element>AF</ISO_3166-1_Al ...Show All
.NET Development When is a property not a property?
I am wrapping the ADO classes using reflection and producing a C# binding... ADODB.Errors has this property (from the Interop ildasm): .property class ADODB.Error Item(object) { .custom instance void [mscorlib]System.Runtime.InteropServices.DispIdAttribute::.ctor(int32) = ( 01 00 00 00 00 00 00 00 ) .get instance class ADODB.Error ADODB.Errors::get_Item(object) } // end of property Errors::Item However, if I use this: ADODB.Errors FErrors; FErrors.Item[ ObjectArg2 ]; I get: ADODB_Errors.cs(111,33): error CS0117: 'ADODB.Errors' does not contain a definition for 'Item' So.... a) Why b) I presumably have to use get_Item ... how can I tell I have to do this ...Show All
Visual Studio 2008 (Pre-release) Custom Control binding
I've created a custom control that have two data templates: ViewTemplate ( when edit mode is false) and EditTemplate (when edit mode is true) . I have a problem with binding: a) when I use Content = " {Binding} " and < TextBlock Name = " View " Text = " {Binding Path=Name,Converter={StaticResource NameConverter}} " /> < TextBox Name = " Edit " Text = " {Binding Path=Name,Converter={StaticResource NameConverter}} " /> in ListView I get only one row of product name instead of list of products' names b) when I use Content = " {Binding Path=Name,Converter={StaticResource NameConverter}} " and < TextBlock Name = ...Show All
SQL Server SSIS web service task input parameters
There is not a way to pass parameters to input of Web Service tasks. I heard this problem is fixed with SQL2K5 SP1 and even the online doc says that one can choose either "value" or "variable" when specifying input for web service tasks, but after I installed what-I-think-is SP1, there is still no way to do this. If one can only specify values (hard-coded) as input to web service tasks, then this would be a very severe limitation. I hope I'm wrong, so could someone please give a pointer. Thanks Kevin Le Kevin, I'm glad you are able to add variables to your Web Service Task now. For future reference, the service pack download page includes a link to a readme document which describ ...Show All
Windows Forms Null Reference Exception was unhandled: Object reference not set to an instance of an object.
Hi, I've an application to capture video of image as well as grab still image. It’s running well. Then, I put loop in the code so the application could keep capturing the image repeatedly and automatically. However it gives one exception error: NullReferenceException was unhandled a ”Object reference not set to an instance of an object". I found that, this error emerged when I called image from the folder. The reason of my assumption is because when I put comment notation before that line code, the application could run well. These are the code that call image file from the folder outside of the main body of code programming. //load an image for subtract System.Drawing. Bitmap image2 = ...Show All
Gadgets saveAs dialog
Hi again, seeing that the documentation is still not updated, how it is with the save file as dialog I've discovered that I have to separate the file types by \0 instead of :. I wonder if I can leave the code with this null char or if this would be unexpectly fixed And how should I use the first parameter Is there any way how to suggest the file name for user Thank you for help with the first parameter. There should really be a way to suggest the file name for user, however. If you have some suggestions list too, it would be nice if you could add it. ...Show All
Smart Device Development CArchive to raw byte buffer over bluetooth socket?
Hi, I'm trying to send serialized objects over a Bluetooth socket, but there doesn't seem to be a way to do it using CSocket. Right now I have the serialized object in a CArchive. Is there any way to send/receive the CArchive (would even try converting it to raw bytes) over the BT socket Otherwise I could just give up on sending objects and just send strings, but it'd be really nice to be able to use CArchive. You could create your archive on a CMemFile and use direct access to CMemFile to get a hold of the actual serialized bytes. The problem you will likely face is that CArchive contains type data only once, so if for some reason part of your transmission got lost, you will need to recreate the ...Show All
.NET Development sharing of textfile (FileShare method not working)
Hi guys, I'm working on application with multiple instances running in the same machine. In this application I'm accessing file "test.txt" and the other instances also needs this file. But the first application who will get to open the "test.txt" will have the write access and the other instances will only have read access. Below is my code snippet: if (singleInstance) {FileStream fs = File .Open( @"C:\test.txt" , FileMode .Open, FileAccess .ReadWrite, FileShare .Read);} else {FileStream fs = File .Open( @"C:\test.txt" , FileMode .Open, FileAccess .Read ) } When I tried running my application, I open the test.txt in the notepad and I can open it but can't do any mo ...Show All
.NET Development Create mdb file in VB 2005
Hello, How can i create an Access database (.mdb file) in a VB 2005 project Is this possible Christos Hi All, I want to do similar thing. Here are the links for C# http://support.microsoft.com/default.aspx/kb/317881 http://www.codeproject.com/books/186100558x_16.asp But along with tables, I want to add forms, Macros, reports also. Can I do that If yes, how Regards, Abhay ...Show All
SQL Server What is the account that the SQL Server is running under?
Hello, I need to allow SQL server 2005 to open a file in a shared directory. Any assistance or help will be greatly appreciated! Oh, MSSQLSERVER is the instance name. If you scroll to the right, you should see a column titled "Log On As", this displays the account for the server. Or, you can double-click "SQL Server (MSSQLSERVER)" in SCM, you should get a pop-up which displays the login info for the service account (this is also how you change the user account). Sung ...Show All
