| Deserialize from MemoryStream cause Exception (VIP replies) |
| microsoft.public.dotnet.general |
| Hi: I try serielaze/deserialize a object using a MemoryStream in C#, but this cause the exception "The root element its missing", when I try do it whit a FileStream the exception not occur. I need serialize in memory with XML (no write to a file), store this information in a database and recover after to deserialize this XML. The code for this (extract) it's: THE CLASS: [Serializable] public class... |
|
| Deserialize to DataSet - DataType ? acts like bug. (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I read in a earlier post that I can get the column of a grid to sort by datetime if the column type was set as Date. I deserialize my XML and one attribute of the XSD has type as dateTime but upon inspection and behavior in the grid the data type is string. If I preview the dataset with the GUI in VISSTUDIO it shows my datatype to be dateTime ... If I try to rest the datatype I get this error Addi... |
|
| Designer is having a hard time with dynamic properties (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.designtime |
| Hi, everyone, While trying to be a nice guy and putting my connection string in a dynamic property, VS.NET 2003 decided to test my limits... So I created a minimal test case for your enjoyment. Attached are 2 source files with the code. Basically all I did was add a usercontrol UserControl1, which has a TextBox with its Text property coming from the app.config file. When I open UC1 in the Designer... |
|
| Designtime Property Setting outside propertylist (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I have this custom control (derived from a TextBox) with a property. I find it bothersome to go through the (long) property list to set a simple, (for me most important) property in the property list. So, I created a custom designer, and when I right click the control I get a popup menu, where I can select my value. Works fine. But, if I use the popupmenu click handle to set the property, it d... |
|
| DesignTime question (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have a user control (control 1) wich holds other user control (control 2) In control 1 there is: if(!DesignMode) {cont new control 2; }so in design mode I can not see the user control 2 inside, this works fine untill I add control 1 to form or other control. In this case the constrain !DesignMode returns true (control 1 thinks that this is run time). How to make condition (without messing with e... |
|
| Desparate - ASAP - P/Invoke probs (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Major problems w/ deadline tonight! :( I've created a DLL with the SmartPhone SDK. I've created a .NET CF app and try to p/invoke a function in the DLL. I always get System.MissingMethodException. I've copied the DLL to both my application's folder and in the \windows folder on the PocketPC. Here's my DLL code (actually, this is all auto generated by the SDK) #ifdef MYSTUFF EXPORTS #define MYSTUFF... |
|
| Detect change of focus on form? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I need to control something (visibility of toolbar buttons) when the cursor moves between fields on a form (using VB .net). How do I detect that the focus has moved? Thanks, Paul. |
|
| Detect Form Closing (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a main form that is open by using: Application.Run(New fFormCriteria) And then I have a form that runs invisible that is open by using: Dim myForm As New fVersionTimer The fFormCriteria form is the form that the user will close to exit the program. How do I detect the Form Closing event on frmVersionTimer? Is it possible? Derek Hart |
|
| Detecting Control Changes (VIP replies) |
| microsoft.public.dotnet.general |
| I have an .aspx page which retrieves a record from the database and populates each field in a ASP:Textbox. I allow the users to change the contents of individual text boxes and they click on 'Save' button to save their changes. Quite often users do not click 'Save' and go to some other page. How can I programmatically detect that they have changed one or more text boxes and prompt them to click on... |
|
| Detecting GAC assembly in use during uninstallation (VIP replies) |
| microsoft.public.dotnet.framework |
| Fellow Frameworkers, Our developer tools are a set of assemblies installed in the GAC. I use InstallShield 8.0 to create an MSI based installer that installs the assemblies just fine, thanks. My problem is that on uninstallation, an assembly currently in use by a running application (IIS, for example) is not detected. Instead, the uninstallation seems to complete successfully, but the assembly in ... |
|
| Determine Left or Right mouse click on a treeview Item (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I am looking for my program to be notified when a user right clicks on a particular treenode. I have placed my code in the "click" event, and I am indeed notified when a user clicks on the node. however what I would like to do is be able to tell which mouse button was used (left or right) can anybody tell me if this is possibe please and point me in the direction of a solution to my problem. A... |
|
| Determine the current event (VIP replies) |
| microsoft.public.dotnet.general |
| I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code that applies to all these events, but I need to have specific code execute when the form closes. The properties for this method are sender (the originator) and e (event arguments). I know how to get typeof (... |
|
| Determine what control fired the event (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi guys, considering the following code below, how do I determine which control caused the sub to execute? Ray. Private Sub TwoButtons Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click End Sub |
|
| determining a dropdownlist selected item without doing a postback (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I'm trying to find a way to determine the value of a dropdownlist without forcing a postback. The dropdown is actually a template column in a datagrid and I need to find out what the value is before posting back to the server. When the user selects an associated button column, I want to determine determine what the dropdownlist's selectedvalue is. What gets returned though is the initial value. If... |
|
| Determining previous page (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| How can you determine (in server code) the name/address of the page before the current page? Thanks, Andre |
|
| DialogResult (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Something tells me that there is a single method way of accomplishing this. When you click the button that is designated as the cancel button, the form automatically acts as if it has been dismissed, but for the OK, you have to put in its click handler: private void btnOK Click(object sender, System.EventArgs e) { DialogResult DialogResult.OK; Hide(); } Is there a better way of doing it? |
|
| Dialogs in EVC++ dll not visible .... (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| My problem is that when I add a resource like a dialog in EVC 3.0 and I try to start the dialog from the CF C# the dialog does not start. the EVC dll code is a test function that computes a product and start the dialog. The function is computed correctly, but the form is not shown on the PDA extern "C" declspec(dllexport) int WINAPI MyFunc(int n1, int n2) { AFX MANAGE STATE(AfxGetStaticModuleState... |
|
| Differnece between Events and Delegates (VIP replies) |
| microsoft.public.dotnet.faqs |
| Dear Guys Pls tell me the difference between Events and Delegates.. Thanx Gopal Prabhakaran |
|
| Difficult Concurrency Exception (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| I'm having a difficult DBConcurrency Exception. A form consistst of 2 textboxes and a checkbox, bound through a currency manager to the table 'DateType' columns ID, DateType and Active. The DataAdapter is daDT, the instance of the dataset is dsDT1. All the code for the form is below. There are Edit, Add, Delete, Update(end edit) SubmitChanges(update dataadapter), Cancel and Close buttons. The sche... |
|
| Dim scope within an IF (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have two forms both derived by inheriting the same base form. I have a third form that needs to instantiate one of those two forms, set some Protected properties on the two forms, display the form, test a property of the from when it is closed and then dispose of the instantiated form. The third form has two radio buttons used to determine wich form to instantiate. The folllowing code fails to c... |
|
| Dime doubt (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Thanks for all responses Please advice! Hi All, Clients are uploading large files to my Web Portal. I need to validate these files using a WS. Problem is file sizes are in the range of 5 20MB!!!! Q1. How do I send DIME attachments to the WebSvc from my Portal? TIA |
|
| Directory Services error: The authentication mechanism is unknown (VIP replies) |
| microsoft.public.dotnet.general |
| Hello I am using the System.DirectoryServices namespace classes to access Active Directory. We connect using the LDAP://DOMAIN method. The code works on local dev boxes, and in staging, but doesn't work on a particular box in our production environment. When we try to connect and do a search, we get a "The authentication mechanism is unknown" error. I have searched on Google, Microsoft Support Kno... |
|
| DirectoryServices Problem on Windows NT Workstation (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi, I m not sure if i m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group members. It works fine on W2k machines. It works on a WinNT 4 server, too, but it stops with a runtime error on any Windows 4.0 Workstation. The error is: System.Runtime.InteropServices.COMException 0x800500F. at ... |
|
| Disable Linkbutton from Client-Side Javascript - help! (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, I have a datagrid, which contains data, as well as a linkbutton column and a button column. I have added attributes to the button like: button.attributes.add("OnClick", "javascript: funcname('" & linkbutton.UniqueID & "');") *NOTE: this code is taking place in the OnItemDataBound function, and after I have the valid reference to the correct linkbutton...... This should then run the client s... |
|
| Disable x button of another program (VIP replies) |
| microsoft.public.dotnet.framework.interop |
| Hi all, I want to disable the x button of an old dos based program? I guess I will need a process running in the background ? thanks for any help Gerry |
|