Dwz2006's Q&A profile
Visual C# Transaction Problem!!!
You should create methods in Bank and Account class that will return what you need. You can use either generics and in this case for example you will have method GetAccounts in Bank class with return type List<Account>, or you can build your own collection type of classes for Account and Transaction class. Also you should have a method in Account class like GetTransactions. For transfering money from one account to onother you will have a method in Bank class for example TransferBetweenAccounts(Account fromAccount, Account toAccount, decimal amount) which will do the transfer. This method will be a litle more complex, because you should check that fromAccount has the balance bigger or equal the ...Show All
Visual Studio 2008 (Pre-release) Where can we download a demo about the WCF Security?
I need a demo about the WCF Security, Where can we download it Thanks a lot Review this documentation to understand How Message security and Transport security works(eventhough it is for WSE,we share same ws-security concepts in wcf also) http://msdn.microsoft.com/practices/default.aspx pull=/library/en-us/dnpag2/html/wssp.asp ...Show All
Visual C++ wchar redefinition in ODBCSS.h
Hi, I get the following errors when i convert to Visual Studio 2005. Inclusion of ODBCSS.h causes the problem. -- Start Error Message 1>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\ODBCSS.h(430) : error C2371: 'WCHAR' : redefinition; different basic types 1> C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(266) : see declaration of 'WCHAR' -- End Error Message Can you please tell me what is wrong Any help is appreciated. Regards, Venkat Hi, A new project works fine but I’m working on an older project. All i did was convert from VS 2003 to VS 2005. When i Google redefinition of wchar in odbcss.h, i get couple hits bu ...Show All
Visual Studio Team System Need Help With Certificates for load testing webservices over SSL
Hi, I want to do a load test on web services which uses certificates over SSL. When I do a web test with one web service call, I get the message "The page requires a client certificate" with 403 forbidden error and understand that I need to incorporate some code for verifying certificates. Could any one guide me to an example or any resources to resolve this issue Thanks, You have to add the certificates to the WebTestRequest.ClientCertificates collection. You can do this in a coded web test, or by using a request plugin in a declarative web test. There’s a doc here on using X509 certificate collections to make a SOAP request in .NET. Code for using them in a web test will be ...Show All
Windows Forms The Answer - Displaying selected items in an unfocused ListView
Hello, I have the following problem : I want to display the selected items in a ListView even if the ListView isn't focused. As far as I have noticed, in .NET Framework 1.1 the default behaviour is NOT to display them while the ListView control is not focused. Any workarounds Andrei Alright I got it !! The basic idea is the each ListViewItem should have its " UseItemStyleForSubItems " property to true. make sure you do that. In case you cannot do it at the beginning, you can do it in the OnSelectionChanged() function that exists in my solution below. Enjoy! Heres the solution: [Description("ListViewWithSelection")] [ToolboxBitmap( typeof (ListView))] public class ListViewWithSel ...Show All
Visual C# How to get time from datetimepicker component
I have been pnace a control DateTimePicker in my Win form. my problem is that I actually get Date info but time is set to 12:00:00 am. so How can i get the right time that is shows in the control. I use: dtp1.Value.ToString("yyyy/MM/dd hh:mm:ss") in order to get a text, any idea will be appreciate, thanks in advance for your help, Edward The default format for a DTP is "Long". That lets you edit the date but not the time. The drop-down calendar was designed to select a date, not a time. Since the time isn't normally editable, it defaults to midnight. To make the time editable, you need to set the Format property to "Custom" and the CustomFormat property to something like &quo ...Show All
SQL Server Export Functionality with Navigation
Hi, I have a doubt regarding use of navigation controls in a report and exporting the report. For example using a drilldown functionality in a report. After the report is generated one can export the report in whatever format he wants (PDF,TIFF, XML,...). In this case, with the drill down functionality in the report, the details of the report are visible only when the plus sign is clicked. Suppose now the plus sign is not clicked and one exports the report in a PDF or TIFF format. In the PDF file, the navigation or the drill down functionality is now not useful right There is no way to view the detail fields of the report now, using the PDF file right Thanks in advance, The only format as far ...Show All
Visual Studio Express Editions The conflict between FileStream and Bitmap
Hello, I read a text file and store the data into an array. And i use these data to draw a graphic in another form And output the graphic into a BMP format. Before adding the last function.i could open the data text file any times and use the data to redraw graphic any times. But when i add the last function(output the graphic into a BMP format), a problem happens. when i close the redraw graphic form. i could not read the data text file any more. and i should close the application and open again. Looking forward to your help. /////////////////////////////////////////////////////////////////////////////////////////////////// Here is my reading data text file code: ////////////////////// ...Show All
SQL Server Mirroring Verification
I connected to the mirror server and the database is in restoring mode, which I believe means I can't query it. I found the Database Mirroring Monitor but it shows the same thing that Management Studio shows, which is Synchronized. Do I just have to trust that Synchronized means everything is working I was hoping there was a way to look at the tables and verify that changes were taking place without performing a manual failover Thanks in Advance for your help Casey Smith caseys@nhcolorado.com ...Show All
Visual Basic Please help me about using Flash as background of a form!
Hi everybody, I have a MDIForm named MainForm. How can I embed a Flash as background of this form instead of using a static image I try to embed Flash by dragging & dropping Shockwave Flash Object into the form. I set the property of this object like Dock = Fill. The problem is when I call any childform of my MainForm, I can't see this childform because it is hidden by the Flash. Please help me. It's very urgent. Thanks. Can you guide me more clearly I embeded the Flash to my MainForm by using Shockware Flash Object , it worked well. But when I called any childform, the childform is hidden by the Flash. This problem is that I don't know how to put the Flash behind all of childforms . ...Show All
Visual Studio Express Editions visual basic express problems
what is the code to update a database, the code i use tells me an error ahmed when i tries your way i got squiggly lines under reclist and songfields. it says that reclist is a type and cant be used as expression. and the other i got sogfileds is not a member or newrec.seeview ...Show All
Silverlight (formerly WPF/E) A bug under full screen
When the window is under full screen, and use the javascript to window.open("http://www.xxxxxx.com"), the parent window return to the normal size, and the source object's canvas gone to the Opacity=0 Sorry for the delay, I will file this bug internally. Thanks for reporting this issue. Ed Maia WPF/E PM ...Show All
Software Development for Windows Vista Why are so many important design time classes internal only?
I'm attempting to create an activity in a similar style to IfElseBranchActivity. This allows you to select the type of condition, and then set the properties on it. It does this by using a custom TypeConverter and overriding GetStandardValues which creates instances of the possible derived types, and then you can bind their properties. Now the first bit I've managed to do fine, but when it comes to binding the properties of the objects created by the TypeConverter, I get the error that only dependency properties can be bound. So I look at how the ConditionTypeConverted manages to create properties so that they get bound, and there are literally thousands of lines of code in internal classes like PropertyDescriptorFilter, and internal cl ...Show All
SharePoint Products and Technologies Help pls: Problem adding custom Field type in create column in a list settings
Error: Field type PhoneNumber is not installed properly. Go to the list settings page to delete this field Hi I create an ascx with its cs code behind, i copy the ascx to D:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES then i create this xml that I copy to D:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML (the file is bellow in the post). After I create my cs file with all the methods. I build my project, then copy the dll file to the d:/windows/assembly. But when I try to add the column to my list i get the error . Field type PhoneNumber is not installed properly. Go to the list settings page to delete this field Here is the xml ...Show All
SQL Server update statement
Newbie Question: Im trying to update a table column to a new value and I receive an error, here is my statement: USE PD51_Data; GO UPDATE CASENUMBERS SET CaseNumTypeID = 130 WHERE CaseNumTypeID = 101 AND CaseNumber BETWEEN 199999 AND 600001; GO I receive this error Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '9368----' to data type int. What did I forget Pig, What are the datatypes for the following columns: caseNumbers caseNumTypeId caseNumber My guess is that one of the fields -- maybe caseNumber -- is a varchar and contains the string '9368----'. Dave ...Show All
