HariK's Q&A profile
Software Development for Windows Vista Custom activity with dynamic properties sample
Anyone got this activity sample working in a workflow using June CTP If I set a dynamic property I get compilation errors: Error 1 CreateInstance failed for type 'System.Collections.Generic.List`1'. Cannot create an instance of System.Collections.Generic.List`1[T] because Type.ContainsGenericParameters is true.. If you added the activity before you updated the code you need to do the following. Open the Xoml file with the XML Editor and remove the DynamicPropertiesActivity from the file. Build clean. Some times if you have had VS open and rebuilt many times it is a good idea to close and re-open the solution before rebuilding. VS holds a reference to all the old versions of the assemblies and has been know to get conf ...Show All
Visual Studio Installing Visual Studio 2005 60 day trial
Hey, I am trying to download the 60 day trial of Visual Studio 2005 Professional, but the format of the file download is .img..... I read here: Additional Information This Trial Edition has full retail functionality but will expire after 90 days. An ISO-9660 image file is an exact representation of the original installation media, including the content and the logical format. The most common use of an image file is to write it to a blank DVD-R resulting in an identical copy of the original DVD including file name and volume label information. ISO Images can also be extracted directly to a file location by many DVD-R utilities. ? This trial software is not supported by Customer Services and Support (CSS). If you have questions ...Show All
Windows Forms DataGridView doesn't display the data however rows.count returning correct numbers of rows
Hi all, I have a very weird problem. I have a dataview that I have populated with DataRowView through the Rows.Add() . I debug it line by line and all the results are correct (rows.count and also values in each rows are correct), the only problem is the DataViewGrid doesn't display the data, it just showing empty. The code above works fine when I put it in the Load() method, but when I place it to public method and call it outside the control. The data doesn't get displayed at all, while the counts and values are correct when I debug it on the watch window. Any extra step that I should do This is really frustating me... Thanks ...Show All
Visual C# import C# Form as ActiveX in Internet Explorer
I am trying import a C# form as a ActiveX control on my webpage. I have followed the following tutorial verbatim here . What happens is it works great at first but then I change the dll, recompile and transfer the dll over to website and then the activex control will not load. Even if I copy the old dll back, it still does not load. Are there some settings on the compiler that I have to set. Any help would be appreciated. Loads first time and doesnot after some change and recompilation, Hmmmm! It may be version issue. Open AssemblyInfo.cs and try to fix the AssemblyVersion attribute by removing * to 0 or some other numner like [assembly: AssemblyVersion ( "1.0.0.0" )] Make sure in Subsequ ...Show All
Visual C++ read last character of a string
I need to read the last character of a String and if its not a backslash "\", i need to put a backslash there. Can anybody clue me in on an easy way to do it Thanks!! In my opinion you also can try the PathAddBackslash function: #include <shlwapi.h> . . . CString s = . . .; PathAddBackslash(s.GetBuffer(MAX_PATH)); s.ReleaseBuffer(); I hope it helps. I think you should give more details about which kind of strings you are using (simple, MFC, STL, etc.). ...Show All
.NET Development Time Zone Issue.
I am doing a simple testing. WinForms application sends Current Time after converting into UTC to a WebService as a parameter. eg. DateTime.Now.ToUniversalTime() at WebService end i am receiving this time and Converting it into LocalTime eg. ReceivedUTCTime.ToLocalTime() The Problem: when i debug my application the conversation happens properly, but moment i shift my webservice to another Box its unable to convert ReceivedUTCTime to localtime. After excuting the .ToLocalTime() method the conversation does not happen. it remains same. I am surprized, what could be the possble reason Finally My Application is going to reside on Box1 wth ,NET 1.1 and WebService is on Box2 with .NET 2.0 - Jignesh Note: Currently Box ...Show All
SQL Server Can't Route to another LOCAL Broker Instance
I have two databases (A and B )on the same SQL Server instance. Both have SSB enabled and running fine within themselves. All athorizations are at present set to dbo. Recently I had a requirement to start a dialog and send a message from within data base A to a queue via a service that is in database B. I tried coding the SSB instance in the BEGIN DIALOG then I set up a route and tried that. On both occoasions I got the following on sys.transmission_queue "An exception occurred while enqueueing a message in the target queue . Error : 916 , State : 3. The server principal "sa" is not able to access the database "B" under the current security context ." Is this sometjhing to ...Show All
Visual Basic problems with showing gif and playing wave - need help
I have been working in VB6 trying to show a gif while playing a wave. I want to show gif number 1 while playing wave number 1 and when wave 1 is finished, then I want to show gif 2 while playing wave 2. When I try this in VB6, gif 1 is not displayed. My bud suggested that I download VB 2005 express to see if that helps, but the same problem results - the first gif never shows up. Here is my snippet: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click x = "c:\Documents and Settings\rzq4bj\data\vbsonja\ratty.gif" PictureBox1.Image = Image.FromFile(x) x = "c:\Documents and Settings\rzq4bj\data\vbsonja\hi_sonja.wav" My .Computer.Audi ...Show All
Software Development for Windows Vista Smartcard based authentication with CardSpace
When choosing to use Smartcard based authentication with CardSpace, how does the transmission from the certificate between the smartcard reader and the STS takes place The Information Card specifies the thumbprint of the certificate to look for, but what is the exact technical background; does it just searches your computer's Certificates store and all smartcard drives for that certificate, and then sends it towards the STS Would like to know more about it, since nothing specifically seems to be documented about this feature I think I understand your problem a little better now and can see what you are trying to do. The bad news is, and hopefully I'm wrong here, is that this feature ...Show All
Windows Forms Arrow Keys on a User Control in .Net 2.0
If I have a form and want to trap keyss, I can use the KeyDown event to trap and detect which keys are used. This includes the arrow keys. However when I want to do the same with a UserControl placed on the form, all keys are detected except the arrow keys. 1.Why do the arrow keys not generate the even on a UserControl 2 Is there a way to make arrow keys generate an a KeyDown or KeyPress event on a UserControl 3. If not, what event if any is generated by the arrow keys on a USerControl Thanks Steve Make sure the CanFocus and CanSelect return True for your control. To get that, you need Visible = True and Enabled = True. ...Show All
Visual Studio Express Editions How can I refer to an form in array of forms?
Hi, How can I refer to a form in array of forms In my project, I have created an array of forms in a module like this: Module FormsArray Public ArrayOfForms(25) As clsDummyForm Public Sub CreateFormsArray(ByVal i As Integer) ArrayOfForms(i) = New clsDummyForm End Sub Public Sub CloseForms(ByVal i As Integer) ArrayOfForms(i).Close() End Sub End Module (clsDummyForm in the code above is a class in which I am inheriting System.Windows.Forms.Form) The problem occurs when I try to use the CloseForms() sub from another form like this: Public Class Form1 Private Sub CloseAllForms() For x As Integer = 1 To 25 CloseForms(x) Next End Sub End Class I get the error "Object is not set to an instance of an object". ...Show All
Visual C++ most effiecient after compile
I have a question about how the compiler works relative to if-else statements. I have a number of if-else in the most often executed portion of the code ( inner loop). Code looks like: if ( a == b ) x = 1; else x = 2; OR if ( a != b ) x = 2; else x = 1; My question is which is more efficent assuming that a != b for most time through the big loop. Naturally, the actual code is much more complex. Thanks, RON C You can also make it a bit shorter with : operator. For example: x=(a==b) 1:2; ...Show All
SQL Server Dbmail sending mails but recognised as spam by outlook07 and spamassasin.
Just started playing with the server 05 demo I am trying out the dbmail tool/ sp. Problem is that mails are being recognised as spam! Emails are being sent as text. Both Outlook 07 and spamassasin recognise the mail as spam :S.... I sent same info via outlok and all is ok. Difference is the header. Has anybody come across this Know of a solution Thanks DBMail does not require Outlook or any of the client pieces that SQL Mail required. What SMTP server are you using Where are you sending the mail Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All
Visual Studio Express Editions small problem with Messagebox
Hello. I have just a small problem. i have a MessageBox on my form. On the menubar, when ya click File, then click New, if text has changed in RichTextBox1 the MessageBox opens asking if ya want to save it. When ya click Yes on the MessageBox the SaveFileDialog1 opens, which is want i want it to do....the problem is, if ya click No on the MessageBox the SaveFileDialog1 opens. How can I stop this from happening and get the th MessageBox close when ya click No heres my code: Private Sub NewToolStripMenuItem1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem1.Click If RichTextBox1.Modified = False Then End If If RichTextB ...Show All
Windows Forms C# ListViewItems sometimes lose their BackColor settings when I run the .exe file directly
Hello, I’m developing a C# program using Visual Studio 2005 Professional Edition. In the main form I have inserted a ListView control that is populated in a different way depending on the item selected in a ComboBox. I have written a procedure that reads the ComboBox selected item and populates the ListView according to that. The procedure uses a “for” cycle: in every iteration it creates a ListViewItem, set its SubItems and BackColor properties and add it to the ListView (the BackColor is set to a color that depends on various factors). When I run the program from Visual Studio everything goes ok, but when I run the program from the .exe file created after the code generation, in some cases the Lis ...Show All
