Richard Moss's Q&A profile
Visual Studio 2008 (Pre-release) Schema Validation
Based on the DataMember properties like IsRequired, MustUnderstand, etc we are able to change the min occurs and max occurs values, etc of the schema. But i noticed that the requests are not validated against this schema. Is the schema made available so that the client can validate it or am i missing something here :P Regards, Suraj MustUnderstand is not supported anymore (since the Feb CTP) The deserializer does enforce IsRequired; i.e an exception is thrown if a required member is missing. Beyond this the serializer does not do any schema validation. This is intentional. This allows DataContract types to change through ve ...Show All
.NET Development as to show tables of the data base through one winapp
as to show tables of the data base through one winapp Hi, It's an access security issue. You have to Allow admin user reading system table. Go to "Tools\Security\Acces rights" in access HTH. Hayder Marzouk ...Show All
Visual Studio Visual Studio 2005 Automation Samples available on the web
The Visual Studio 2005 Automation Samples are now available on the web for download. They are available at http://msdn.microsoft.com/vstudio/downloads/code/automation/default.aspx Please provide any feedback you have regarding the samples. Enjoy! The correct URL (now that they moved it) is http://msdn2.microsoft.com/vstudio/Aa718336 Right off the bat - contents of many of the README files are incorrect or out dated. Look at: C:\vsautomationsamples\Microsoft Visual Studio 2005 Automation Samples\Toolwindow\README.txt -Pawan ...Show All
Visual C# Threading in C#
Hello Everyone, I have a tab application, which initially I made single threaded....I added a dll which has a form. Now when I change to a tab method in that dll gets fired and form comes up, which makes everything else unresponsive.... Whats the best solution to implement thread to solve that problem.... Secondly, I tried doing something this way..... namespace something { public partial class Some : Form { public Some() { } // Then here more procedures } // Here I created another class which fires the method from dll.... public partial class Test { public DLLFire() { } } Now If i ...Show All
SQL Server Adding SDF data into a Listview - C#
Hello everyone, I finally got the SDF file on my pocket pc, and now am having trouble loading the data into the listview. I am not sure where I am going wrong, but the code is listed below. Any ideas Thanks so much, everyone. private void LoadList( string szSQL) { // Clear out anything that might already be in the list CollectionList.Items.Clear(); // save off the SQL Statement m_szCurrFilter = szSQL; // Throw Data into the list SqlCeCommand sqlLoadEvents = m_cConn.CreateCommand(); sqlLoadEvents.CommandText = szSQL; SqlCeDataReader rReader = sqlLoadEvents.ExecuteReader(); // rol ...Show All
Visual Studio Suppressing Section on no data
I have a group header section that I would like to suppress if there is no data in its details section. I'm looking for something like the "Suppress Blank Section" feature, but as it applies to the group header. I appreciate any help. Thanks. ...Show All
Microsoft ISV Community Center Forums accessing VBA code from VB.net application
I have a VBA code as a part of a front end MS Access application. I am interested in knowing how I can call a method in this VBA code from a VB.net application of mine Per our support engineer: I am not sure how you want to use this VBA code method. If you want to call this VBA code method like other methods or functions created in .NET assembly, it is not possible. The VBA code method is defined in Access database and Access database is not like COM server (which can be exposed for .NET application to call). The following articles are about running code or macro in Access database. Run ...Show All
Windows Forms Proper coding model for running multiple dialogs.
Hi all. I have a question regarding the correct programming model I should be using for getting multiple dialogs to interact with each other and the user at runtime. Its something I've never been good at - I've been using Visual Studio since version 6, messing with Dialogs in MFC. I didn't have much trouble switching to .NET's framework, but having recently switched to .NET2.0 and Visual C# Express, I'm getting abuse from Mr. MDA telling me that I shouldn't be accessing controls in threads that didn't create them. (So how on earth does one do ShowDialog(mainWindow) now ) Now I do realise I'm no expert, but I didn't think I'd been doing anyth ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this question and problem. Your assistance is greatly appreciated. Currently, I am using Firefox as my back-up web browser. I have seen a similar Problem. The Culpret was a corrupted Mc ...Show All
.NET Development Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'.
Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'. I just got sql server ctp 2005 installed and have connected visual web developer with it. I can create databases through VWD, but when i try to open a page with any connectivitiy to the DB i get the above error. Does anyone know what i need to check, change or add Have you tried executing a query like: exec sp_grantlogin 'MachineName\ASPNET' I hope this information proves helpful. David Sceppa ADO.NET Program Manager Microsoft ...Show All
Visual Basic Disabling the close button of a windows application has a problem
When I tried to disable the close button of my Windows Application program using an unmanaged code, this red close button will appear again if I maximized, minimized it , or using Win(key) + D (and again) I don't know why... I can delete the Close menu item, but rather, I wanna disable it. So, if you please find the solution, thanks... Set the forms controlbox property to false...this will get rid of the minimize, maximize and close buttons in the upper right hand corner of the window HTH ...Show All
Visual Studio Express Editions Generate a random number
Can someone tell me how to generate a random number that i can put into a variable Also how to declare that number an odd or even. Thank you. This should do it for you. Private Sub Button4_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim _rnd As New Random Dim _int As Integer Dim _low As Integer = 0 Dim _high As Integer = 100 _int = _rnd.Next(_low, _high) If (_int Mod 2) = 0 Then MsgBox( "The number " & _int & " is even" ) Else MsgBox( "The number " & _int & ...Show All
Visual C# dropdown item ID
Hi, I am using this code to populate data into combobox but i was just thinking how can i assign an id to each item in the dropdown list like the primary id for example because i want to save both id and name of the company.. // fill the insurance company; VDBAdapter.SelectCommand = new VistaDBCommand("SELECT account_name AS insurance_account FROM accounts WHERE account_type = 'INSURANCE' ORDER BY account_name", VDBConnection); VDBDataset.Tables.Add("insurance_account"); VDBAdapter.Fill(VDBDataset, "insurance_account"); //put the data from the dataset into the combobox DataTable tblInsuranceCompany = VDBDataset.Tables["insura ...Show All
.NET Development Assemblies in GAC
Hi all, we need to figure out which version of a dll in the GAC our application is using and I hope someone here can give me at least a hint. Here is the situation: We have several VB.NET assemblies in the GAC and there are several versions of each of these dll's in the GAC. After a recent server rebuild, we found that we have no idea which applications need which version of the dll's. I can recreate the different versions for each dll from version control, since the dlls are small and there is a good version history in the assembly.info files. But the applications that use these dlls do not indicate which version they are looking for. ...Show All
.NET Development Type.GetProperties -> FormatterServices.GetObjectData exception
When I try to get the properties of a type and then send the PropertyInfo array to FormatterServices.GetObjectData, I recieve and exception stating "Only FieldInfo, PropertyInfo and SerializationMemberInfo are recognized". What am I doing wrong partial class Form1 : Form { public Form1 () { InitializeComponent(); } class Foo { public int _property; public int Property &nbs ...Show All
