MitchMc's Q&A profile
Smart Device Development sending/receiving datasets from webservice
Hi If sending/receiving datasets from webservice is mandatory in an application , is there any better solution in CFv2.0 in replace of using dime attachments Can i use XmlSerializer to convert datasets to bytes and pass that as parameter to webmethods or add to soap attachment instead of the dataset itself Please advice Thanks Gauls Just declare Web method which takes/returns dataset, framework would take care of the rest. ...Show All
Visual C# Convert VB to C#
Well, i have tried at least 3 apps, to convert the code, but neither of them worked! VB CODE: For Each queryObj As ManagementObject in searcher.Get() Dim arrVendorSpecific As Byte() = queryObj("VendorSpecific") MsgBox("Temperature = " & arrVendorSpecific(101)) C# CODE: foreach (ManagementObject queryObj in searcher.Get()) { Byte[] arrVendorSpecific = (byte[])(queryObj["VendorSpecific"]); Console.WriteLine("Temperature = " + arrVendorSpecific(101)); } This ir the error i get with the C# code: 'arrVendorSpecific' is a 'variable' but is used like a 'method' ps: the VB code works fine! okey, this worked ! Po.. pelo nome voce parace ser brasileiro, me da uma ...Show All
SQL Server What is the best way of moving indexes to a different file group in SQL2005?
I was looking for a simple way to script out the delete and create statements, so I can change "ON [new filegroup]". There are hundreds of indexes in this database. If you know an easy way of doing this or a better way please let me know. Thanks. This is more like what I was looking for. I am hoping someone will post a tried and true version of this that they have used. This looks like it handles the majority of cases but if someone used one of the lesser used options like "sort order" it would be lost. Rob, thanks again for the post. ...Show All
Windows Forms Tabbing not working in MFC + .NET app
Ok, I've got an MFC/.NET hybrid app. The main form and functionality is MFC. There was an add on form I created that was done in a .NET form (it had the functionality I needed). The .NET form is not modal and you can switch between the two at will. Tabbing between controls works perfectly in the MFC form and all its dialogs. However, on the .NET form, tab does nothing. You cannot tab between any of the controls on the .NET form. I have set the TabOrder and TabStop on all the controls but it still does not work. I've done some searches but couldn't find the answer. Any ideas Thanks for your help. PS, I hope this is the right forum for my question! Y ...Show All
SQL Server How to know if user have access to a specified DB
Hi ! I'm searching a way to know if a specified user have access to a specified database. For sure I may look with Enterprise Manager, but I'm searching a way by looking in System Table, or using StoreProc Where the Info about user and is Database access are store Any idea I'm using MSDE Zak Actually, when I went outside for a walk I realized that this doens't completely answer the question. A user could be aliased. Hang on and I will get you some more information. Sorry about rushing the answer. Dave ...Show All
Visual Basic Finding Dialog Parent Name
Hi, Have a dialog that may be called from one of two other forms and I want to know which one when the dialog loads. Sender.name=the dialogs name, so no use. Tried me.parentname but me.parentform.name is nothing. How do I determine the parent. Solved the problem using boolean set by caller but would like to know why parentform is nothing. Display the dialog with ShowDialog(Me). Then in the dialog form, you can find the parent form's name with Me.Owner.Name ...Show All
.NET Development XSL Transformation not generating expected result after upgrade to .Net 2.0
I am currently upgrading a .Net 1.1 project to .Net 2.0 and one of my XSLT is not generating the expected results. I even used the new XSLCompiledTransform object , didnot help much .. Below is the XSL File , it takes in some parameters , does anyone know of any part of the XSL that is obsolete or so. Looks like <xsl:if> is not working .. Any suggestions or comments are greatly appreciated. < xml version = " 1.0 " encoding = " UTF-8 " > < xsl:stylesheet version = " 1.0 " xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " xmlns:asp = " remove " > < xsl:output method = " html " /> < xsl:template match = " / " & ...Show All
Software Development for Windows Vista Mix filter
I want to write a simple DShow filter that mixes two video inputs. I noticed that the CTransformFilter is really only 1 input 1 output. Is there any other class that has been extended for 2 inputs and 1 output Or does anyone know what it would take to make the Transform filter base class to support 2 inputs Thanks in adavance, Don Hi, as nobody tackled your question, I'll try to provide an answer :) The choice of base class to implement a filter is an very important decision, because it more or less defines (and restricts) what you will be able to do. In your case, the choice is either use a transform filter or go back to the basefilter with basinputpins ...Show All
Visual Studio Team System Illegal Characters in Path
Hi i am facing issue in copying files from one destination to another. TFSBuild.proj looks like this < Target Name = " AfterCompile " > < Exec Command = " " c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv " " c:\projects\cp\CP1.1 SP1\BVT_100506\Sources\Release 1.1 Sp1\Source\Assemblies\MS.CP.ServerSolution\MS.CP.1.0.ServerSolution\MS.CP.1.0.ServerSolution.sln " /Build " Debug|Mixed Platforms " /Project MS.CP.WebService\MS.CP.WebService.vdproj " /> < Copy SourceFiles = " " c:\projects\cp\Debug\MSCPWebService.msi " " DestinationFolder = " " $(OutDir) " " ...Show All
Windows Forms How To: User Dynamically Resizing Controls at Runtime
I was wondering what is the best way to allow a user to resize a control with the least amount of flicker. Currently, I am using MouseDown, and MouseMove events to accomodate the resizing of the control. The MouseDown event stores the initial location of the mouse. The MouseMove event calculates how much the mouse pointer has moved since its position in the MouseDown event, and then resizes the control accordingly. The problem with this method is that I get a lot of flickering and artifacts in the form until the MouseUp event occurs. I have double buffering on the control set but this doesn't seem to help. If I hold down the mouse button and move the mouse ...Show All
Visual Basic using NonSerializedAttribute class with Visual Basic events
I am having a problem serializing an object, in that it has events, which are handled by event handler methods in an instance of UserControl. Thus, when the object is serialized, those events are serialized, along with references to their handlers, which makes it try to serialize the UserControl instance, which cannot be serialized (even if it could I wouldn't want to). Apparently you can't just use <NonSerialized()> on an event. I saw the following example in C# on http://msdn2.microsoft.com/en-us/library/system.nonserializedattribute.aspx: "To apply the NonSerializedAttribute class to an event, set the attribute location to field, as shown in the following C# code. [field:NonSerializedAttribute()] public event ChangedEventHand ...Show All
SharePoint Products and Technologies Unrecognized tag prefix or device filter 'SharePoint'.
I have this erro: Error 3 Unrecognized tag prefix or device filter 'SharePoint'. C:\Projectos AS\Projectos 2005\DocumentPage\DocumentPage.aspx 13 53 C:\...\DocumentPage\ Can anybody help me Thank's! > Problem Solved! How It's unclear whether you mean the previous suggestion was what solved the problem or something you discovered yourself. If the latter, how did you clear this Mike ...Show All
Windows Forms Coloring TabControl.
As far as I can see TabControl object has no properties of either Back or ForeColor. Is it possible to assign these properties to this object Another question: TabPage object does have both properties but when you assign a color to it it does not cover the whole TabPage: the tab itself remains gray. Is it possible to give it colors Many thanks. nahguam wrote: TabControl inherits from Control so the properties BackColor and ForeColor *are* present. They have just been hidden from the VS designer. If you manually assign them (don't believe what intellisense tells you! :) ) It will compile. Unfortunately, modifying them seems to have no effect on the painting of the control. I'm not sure how you can ...Show All
.NET Development USER NAME + Mobile in AD
how to get all users name plus his/her mobile number this can be done using the ActiveDirectory namespace(s) in .NET 2.0 Now I don't have a domain so I can't really test this but hopefully we can work together on this. It's basically finding the user name and read their properties. Remember to add the System.DirectoryServices and System.DirectoryServices.ActiveDirectory in the using statement to import the namespace private void GetProperty(string loginName, string propertyName ) { DirectoryEntry theDirectoryEntry = new DirectoryEntry(" LDAP://OU=Domain,DC=YourDomain,DC=com "); theDirectoryEntry.Authe ...Show All
Windows Forms BorderColor for a Standard Button
Hi, It is rather straight forward to change the border color for a flat style button control. The color properly is not listed for a standard style, and I dod not see a public property or method to alter the color by the program either. Not prefer to draw border lines for each control, is there a quicker way to just change the standard button bordercolor property Regards, Reza Bemanian Standard/system style buttons are painted according to the current Windows XP theme or system colors. Buttons do not implement custom drawing so you can't change their appearance. Unless you create your own button by deriving from ButtonBase... ...Show All
