stephanielauym's Q&A profile
Windows Forms Is it possible to simulate a property for databinding on an object using ITypedList
Is it possible to simulate properties on an object and have the simulated property bound to a windows form control I have seen examples using ITypedList to do this. But all the samples simulate the property on a collection of business objects and never on the business object itself. When i tried to do this on an object by adding a new property to the PropertyDescriptorCollection being returned, i get an ArgumentException when setting the datasource saying "Cannot bind to the property or column Company on the DataSource. Parameter name: dataMember". I will be happy to provide the source code if required. Thank You, Vish ...Show All
Software Development for Windows Vista How to launch Child workflows based on some rules from a Running workflow?
Instead of binding a workflow at designtime, can we bind the TargetWorkflow of a InvokeWorkflow Activity at runtime You can find an example of a custom invoke workflow activity that can be set at runtime on my blog here . ...Show All
Visual Studio Express Editions void* in c#?
I have a dll file created from vc++ which contains something like this below. extern "C" __declspec ( dllexport ) Byte OpenDevice(Integer DriverType,Byte *DriverName,Integer *pVidPid,Byte ForceLoad,Byte *CodeFileName,Handle *pDevice); And Handle declared as typedef void * Handle; in c. In c#, this is how I import the dll file: [ DllImport ( "lmxxeval.dll" )] public static extern byte OpenDevice( int DriverType, string DriverName, [ MarshalAs ( UnmanagedType .LPArray, SizeConst = 2)] short [] pVidPid, byte ForceLoad, string CodeFileName, [ MarshalAs ( UnmanagedType .LPArray, SizeConst = 1)] int [] pDevice); My question is do I convert the type from c into c# correctly and How ...Show All
Smart Device Development SimUnlockPhone with incorrect PIN code causes VS2005 debugger to bomb
Works fine in Release configuration. Under Debug configuration, with breakpoint on the SimUnlockPhone call, pressing F10 (run to the next line) causes VS2005 to throw a couple of errors, debug stops, and the WCE5 device has to be reset. ...Show All
Visual C# ExtractAssociatedIcon not working well for some extensions (ex: .XML)
Hi, I am using the Icon.ExtractAssociatedIcon to retreive the icon associated with some file extensions. While the code works generally fine, it does not return the expected Icon for some extensions, say .XML for example. I have also tried the Interop route (using the WIN32 API SHGetFileInfo, etc...), and it does the same thing, which I find quite logical. I suppose this is an issue with Windows more than .NET. Has any one fixed this Thanks Hi, Here is a sample cause that's causing me problem (make sure you create two files named t.txt and t.xml in the current directory): Icon .ExtractAssociatedIcon( "t.txt" ).ToBitmap().Save( "txt.jpg" ); Icon .ExtractAssociatedIcon( "t.xml" ) ...Show All
Smart Device Development RAPI fails on Smartphone but works on Pocket PC
In spite of the RAPI Security configuration being set to "allowed" I am unable to execute a function with CeRapiInvoke on a Smartphone device. It works properly on the Pocket PC device. CeRapiInvoke returns S_OK on the Pocket PC device, but returns 0x80090006 Invalid Signature on the Smartphone device. GetLastError returns 2148073478. CeRapiInit returns S_OK on both devices. I have the rapitest.dll file (my RAPI dll) in the Windows folder on both devices. I have tried this on both a real Smartphone device and on the Motorola Q emulator. Here is the relevant desktop code: WCHAR szCmd[cchSzMax]; LPTSTR szOut = NULL; BOOL fStream = FALSE; BYTE * pBuf = NULL; HRESULT hr; const WCHAR c_szDllName[] = L "rapitest" ; ...Show All
Microsoft ISV Community Center Forums Dllokup help
I am searching some thing through dlookup but it is not going to next record , while i am trying while loop till eof while not rs.eof rs.movefirst b= dlookup("[cartons]","dc","[itemcode]='ioo1'") rs.movenext wend by this command its showing value of only first record where item code i001 found , while i0o1 exists 5 times in recordset , i want value of cartons of 5 records where i001 so pls help me thanks rupinder Hi, I see a bug in your code, this might not be the solution but it's the first thing that jumps out. You keep jumping back to first row in your while loop. Your always going to find the same record with your search as your always starting the search from the same p ...Show All
Visual Studio The filename selected is not recognized as legal
I'm completely new to VSS and am having problems. I can add projects and solutions to the database I've created, but I can't seem to open them from another machine. If I go to File, Open Project and select SourceSafe (LAN) and browse and select my SLN file (or VBPROJ file for that matter) and try to open it I get this error: The filename selected is not recognized as legal. Please select another file or rename the selected file. Any help would be appreciated. Like I said, I'm very new to this. I don't think it's related to the file name - I have this problem on my PC, when attempting to open any solution or project from SourceSafe through the open project dialogue. The same projects work fine from ot ...Show All
Visual Studio Work Item creation from a web front end
We want to design and implement a web UI that will allow users to create/ insert work items from a front end. For this the users should not have TFS explorer installed on their machines. We are not trying to create a new product, our only goal is to expose the WI creation feature to the users. I have earlier posted a question in the TFS Architect forum and thanks to Jon for giving me certain guidance. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=726302&SiteID=1 However, I can use any extra information. Since this site is totally dedicated to extensibility, may be I can get some more info of how to implement this. Also, is there any place I can get to see the WI object model and how the APIs are exposed. Is it th ...Show All
Silverlight (formerly WPF/E) Image clip issue
After clip an image by a Geometry, I found the unvisible part (which is cut off by clip) of the image still can receive mouse event, however when I clip a shape, for example ellipse, only the visible part response to mouse event. Is this a bug on image clip We are investigating this. It appears to be a bug from your description. Can you post your XAML or a smaller sample of your XAML with your event handler code I want to make sure it isn't an issue of the event bubbling. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server parameters in reporting services
hello to everybody. can anyone give me some info (some links)on how to create parameters in RS my problem is that i pass all the values as selection but when i push the button i get all the results. so the problem must lie in the connection of the parameters with the questioning. can anyone describe the procedure than u in advance Hi : If you are using the cube to create the reports and using the usual BI studio interface - then you can create parameters by dragging them onto the "Filter" section on the MDX browser pane - and then checking the "Parameter" option. However, if you are looking to customise the list you choose therein, then you can individually write spe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Value cannot be null.
Can anyone explain why I get the error : Value cannot be null. Parameter name: value My program was ok, I added a new component to it nd this error started appearing.. I removed the new component and it still appears. I get it ~5 times as soon as I run the game even before I get into the code, even if its already stopped on 1 error. Also I get it when changing between source files when the debugger is stopped. Any explanations Btw, why is the box to type a message in on the forums 2x6 pixels big I can't see a thing I type. Edit: Seems the small text entry box is a problem with Opera, it works fine with Firefox. 1. Delete all temporary files, force visual studio to recompile everythin ...Show All
Visual C# How to use keyword 'using' to open Form in this scenario
Hi all, when I normally open a Form with the 'using' keyword I use code like the following... using (FormInspectionActions frmInspectionAction = new FormInspectionActions()) { if (frmInspectionAction.ShowDialog() == DialogResult.OK) MessageBox.Show("Actions OK"); } ...but if I have a scenario such as the following where I do a test to find out what Constructor to load, how would I make use of the 'using' keyword to open the Form if (txtAnswer.Text.Length > 0) frmEditKeywords = new FormEditKeywords(txtAnswer.Text); else frmEditKeywords = new FormEditKeywords(); if (frmEditKeywords.ShowDialog() == DialogResult.OK) txtAnswer.Text = frmEditKeywords.m_txtKeywords; Hope you can help. Thanks Why not check ...Show All
Visual Basic Problem: Eventing Among Multiple User Controls on a Form
I must be missing something simple, because I would think this would happen all the time. But I can't find any reference to a problem like mine. I have a VS 2005 VB Forms application. I have defined a user control that contains several controls, events and properties. Based on properties set at run-time, the appearance of the control changes. When I have a single user control on a form, the events of the user control work fine - the user control behaves nicely. But when I have two controls on the form (and I need two), the first one that I fire an event from works, but the second one does not. That is, the events of the first control used fire, but the events of the second control used do not. Whic ...Show All
Visual Studio Express Editions Installing on SP1
Hello, Is there any way to install Visual C++ Express Edition on SP1 Thanks in advance, Yorick Bouma Sorry to be the one to tell you this but all the express editions need XP SP2 to install. If you are using Win 2000 youve got to have SP 4. For full compatibility details go to http://msdn.microsoft.com/vstudio/express/support/readme/ Matt ...Show All
