Actcom's Q&A profile
Windows Forms Can't understand this exception at design-time (C# express 2005)
Hi, I'm writing a custom control and I face a strange problem since I have the latest release of Visual C# express 2005. When I drag the control from the toolbox to a form, I get this exception: Failed to create component. The error message follows: 'System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.NativeWindow.AddWindowToTable(IntPtr handle, NativeWindow window) at System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean ssignUniqueID) at System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle) & ...Show All
Software Development for Windows Vista Vista
I have just become a member of Technet plus. I have installed Vista beta on my puter. I keep having this Windows Security pop-up everytime my anti-virus hiccups. Is there a way to stop this It is the pop-up to accept or deny permission for my anti-virus to run. silly1 wrote: I have just become a member of Technet plus. I have installed Vista beta on my puter. I keep having this Windows Security pop-up everytime my anti-virus hiccups. Is there a way to stop this It is the pop-up to accept or deny permission for my anti-virus to run. ...Show All
.NET Development ODBC
I am a relative newbie to the ways of .NET. I have been learning to use Microsoft Visual C# .NET 2005 and have wrestled just about everything to the floor except for database access. I have an extensive survey data library with all the files in dBase IV format. As a long time Delphi programmer, this used to be a relatively straightforward piece of the jigsaw and I have written a number of successful applications that manipulate those files. I understand that what I need to do the same in the .NET environment is ODBC. I have gone round and round in circles on the MSDN sites trying to find the appropriate download. I am running Window ...Show All
Windows Forms On Change
Ladies and Gentlemen, I am new to asp design. I need to accomplish the following. I have created a insert page and on with various listboxes, I need to pick from the list and when this happens it needs to populate several text fields. How can I accomplish that. Thanks, JoeCing This is Web development These forums are tailored for client&nbs ...Show All
Visual C# Newbie and no understanding how to use SQL Server Express
Hello, I want to use SQL Server Express in my C# Express Projekt. I created the Tables I need but I didn’t understand how to connect and make the SQL Statements. In the learning Videos everything is done in the Designer but I will learn how to make this by myself in code. Has anyone a small sample that only makes a connection, a Select and an Insert Statement I think that will help me a lot to understand. Thank you very very much twickl I answered pretty much this same question in another post ... I'll repeat the same thing here. I hope this helps ... Your DataAccess class should retrieve/pass D ...Show All
Visual C# Allowing a particular class in other namespace to access a method non public method of a class in other namespace
Could in any way I can enable a particular class in other namespace to access a method(non public) of another class in other namspace That is suppose I have a namespace1 with class1 and a namespace2 with class2 class1 contain a method named OnlyAccessibleByClass2 Could I do it You cannot directly access it, bcoz it is not a static class nor a static function So, in namespace1.class1 , you have to create a object of namespace2.class2 then you can access the OnlyAccessibleByClass2 Function. ...Show All
.NET Development validating XML
I am looking to validate an xml document prior to populating my dataset and binding it to a datagrid on my webform. Being this is my first foray into using webforms, xml, schemas, etc. I am not sure how to go about doing the validation. Any help is thus appreciated. -Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconvalidationofxmlwithschemas.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatadatasetclassreadxmltopic4.asp or Dim vr As New XmlValidatingReader( New XmlTextReader (filename))&nb ...Show All
SQL Server Modifying the Initial Size of a database
Hello everyone, I'm having a problem shrinking one of my tempdb data files. When I initially installed SQL 2005, the data file for tempdb was 6GB. I'm not sure why it created such a large file, I don't remember seeing a setting in the setup to change it either. Can anyone give an explanation for the file being so large Anyway, after noticing this, I created several other data files and shrunk the main data file. The problem now is whenever the service is restarted, it recreates that file as 6GB. Is there any way I can get that to remain the shrunk size after the service is restarted I just need to ge ...Show All
.NET Development Biztalk Help needed
Hello Friends, I am new in Biztalk server 2004. I need a solution for my project. Below I give my problem, Please give me a good solution for me. I have a C# application. It has an upload page. If user uploads a XML file,the C# application reads it and send this to MSMQ as a Message. The code is below. StreamReader sr = new StreamReader(Path); string str; str = sr.ReadToEnd(); System.Messaging.Message mm = new System.Messaging.Message(); mm.Formatter = new ActiveXMessageFormatter(); mm.Body = str.ToString(); mm.Label = UserID; mq.Send(mm); I create a Orchestration with receive and send ports. The receive ports looks message from the MSMQ ...Show All
SQL Server XML DOM Document
Hi, I created some DTS packages in sql server 2005 and this morning I am getting errors. I am able to open the packes to edit. Following are the errors: Error 1 Error loading MCDMS_Load_Key_OCRepair_Extract_TST.dtsx: Unable to instantiate XML DOM document, please verify that MSXML binaries are properly installed and registered. E:\SCRIPTS\MCDMS_Scripts_System_Test\MCDMS_Load_Key_OCRepair_Extract_TST.dtsx 1 1 Error 2 Error loading MCDMS_Load_Key_OCRepair_Extract_TST.dtsx: Unable to load from XML. E:\SCRIPTS\MCDMS_Scripts_System_Test\MCDMS_Load_Key_OCRepair_Extract_TST.dtsx 1 1 Error 3 Error loading MCDMS_Load_Key_OCRepair_Extract_TST. ...Show All
Visual Studio Express Editions Opening excel files in vb 2005
How to I write the code for a button to open an excel document from a vb 2005 express edition form ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbalr/html/ec11fd03-b420-412f-b25a-057f877cefbc.htm The following example uses the CreateObject function to create a Microsoft Excel worksheet and saves the worksheet to a file. To use this example, Excel must be installed on the computer where this program runs. Also, you must add a reference to the type library from the COM tab of the Add Reference dialog box on the Project menu. The name of the type library varies depending on the version of Excel i ...Show All
Software Development for Windows Vista SerializationException because of non-serializable parameters in CallExternalMethod activity
Hey guys, I have a CallExternalActivity that calls a service. This method call has one outgoing parameter and a return value. None of them is serializable. The parameter and the return value are both bound to a public properties of the workflow, but the fields behind those two properties are decorated with the [NonSerialized] attribute. What is the reason behind this I mean I can understand that public properties of workflows should be serializable in order to serialize the whole workflow, but I don't understand why this needs to apply to parameters. Does anybody know how I can get around the limitation that I can only pass [Seriali ...Show All
Windows Forms CAD file library
Hi, Where can I get library for reading cad files like PCAD, Mentor, Cadence, Veribest, Fabmaster, Zuker and so on Thank's Alexei Hi, I have tryed to search in google but didn't find it. I have found library for AutoCAD files (It doesn't give me what I want) but I need for another programs like Cadence, Mentor, PCAD, ORCAD, Veribest, Fabmaster  ...Show All
.NET Development When to call dispose when using SqlConnection and SqlCommand?
What is the best practice when running code as follows: //### code start #### SqlConnection conn = new SqlConnection("xxxx"); SqlCommand cmd = conn.CreateCommand(); //...do the necessary processing cmd.Dispose(); conn.Close(); conn.Dispose(); //### code end #### calling Dispose on the cmd and the connection seems redundant. Additionally, if I am disposing hte connection should I first explicitly call Close() The shortest form is simply to call conn.Close(); however even this is questionable. conn.Close() may be valid since the connection is aware of the cmd object created with the conn.CreateCommand(), ho ...Show All
SQL Server Error in convert function
I use convert to work with Hijri functions when i write select convert (datetime,'29-10-1426',131) the result is correct 2005-12-01 00:00:00.000 when I increase the date by one select convert (datetime,'30-10-1426',131) I get Server: Msg 242, Level 16, State 3, Line 1 The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. Why and how i solve it As far as I know, the month 10 in Hijri calendar only has 29 days, so the second statement is supposed to fail. The next day to convert (datetime,'30-10-1426',131) is select convert (datetime,'1-11-1426',131) Regards, Jun ...Show All
