RayCan's Q&A profile
Visual Studio Tools for Office How to add Category to taskItem?
Hi, I have some problems regarding adding a task to a category in outlook 2007 using VSTO 2005. I created a Outlook.TaskItem and wanted to set a category to it but i cant find which properties to use. I have tried the Categorities property which dosent seem to work as it require a string but i don't think assigned a task to a category uses a string. Pls help me. Thanks alot Osprey Categories is indeed a multi-valued string -- i.e. keywords -- property. You can set it like any other string property: myTask.Categories = myTask.Categories & "," & "New Category" ...Show All
Visual C# XML socket problem?
Hi all, i know flash can create xmlsocket and send message to server. How to create Xml Socket and send Message to server with c#. Below is flash send message codeing. C# can do this Please sombody can give me good solution. //Flash send message codeing var msg_xml = new XML(); msg_xml.nodeName = "message"; var msg_node = msg_xml.createTextNode(input_txt.text); msg_xml.appendChild(msg_node); //send Message _root.socket.send(msg_xml.toString()+"\n"); //================================== Best Regards, Hi SvenC, Q1. Can you see your connect gets accepted in the Java server A1. Yes i sure is connect my server. Q2. Are client and server using the same port A2. Yes i sure. ...Show All
Windows Forms Switch Columns type in DataGridView
Hi folks, I'm using DataGridView & BindingSource to represent a Dataset. Instead of one column i want to insert ComboBoxColumn. Is the best way to do it is: 1. Populate the DataGridView 2. Remove the column 3. Insert the ComboBoxColumn Or do you know a better way Thanks, Tamir. You may refer to this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=793377&SiteID=1 ...Show All
Visual Studio Team System Check Constraints ignored by the data generator
I am using VSDBPro to generate test data, my table has a check constraint defined in a column such as ( [Field1] = 'A' OR [Field1] = 'C' ), but it was ignored by the data generator and tried to populate some random values and terminated the entire process... Any workaround for that.... Henry, Thanks for the reply I couldn't see the regular expression in the generator properties for the char field. I have installed the trial version of Microsoft Visual Studio Team Edition for Database Professionals Version 2.0.50727.251. I imported the schema which has the check constraints on the column. But the data gererator ignored that... Is a the limitation of the trial version ... ...Show All
SQL Server Microsoft Access Database Synchronizer (ADS) RTW
Hi, Today we are very pleased to announce the RTW release of Microsoft SQL Server 2005 Compact Edition Access Database Synchronizer (ADS) for which many of you been waiting eagerly. Access Database Synchronizer provides a way to synchronize data between Microsoft Access database on a desktop and Microsoft SQL Server 2005 Compact Edition database on a device. The salient features of this solution are summarized below O Provides a synchronization solution between SQL Mobile/SSCE and MS Access. Data conversion is done while synchronizing the data. O Synchronization happens when there is an active ActiveSync connection between the device and the desktop. O There is no update to SQL Mobile/SSCE ...Show All
Visual Studio Cannot Open Solution File (*.sln) in Visual Studio 2005
I installed Microsoft Visual Studio 2005 (see Installed Program Information below*) Other information: System Info: Windows Server 2003, Standard Edition, Service Pack 1 Steps to duplicate the error: 1. Click Start, All Programs, Microsoft Visual Studio 2005, Microsoft Visual Studio 2005 2. Click File, Open, Project/Solution 3. At the Open Project dialogue box, navigate to the location of *.sln file, select *.sln file, click open. I get this error: The application for project 'C:\vbnet03sbs\chap01\MusicTrivia\MusicTrivia.vbproj' is not installed. Make sure the application for the project type (.vbproj) is installed. As you can see, I am a newbie in all these Visual (.NET) stuff from Microsoft. I bought a book that has a CD cont ...Show All
SQL Server DDL Changes breaks cubes
Hi, Lately I had to increase the size of a table varchar column. This column is used in a cube dimension attribute. After the change, cube processing ended-up in error. I had to first refresh the dataview and then go manually change the KeyColumns Datasize property to increase it as well. Is there a better way I find this very dangerous. As a minimum, a dependency check should include cubes using that metadata. I notticed the same type of problems on the SSIS sides, metadata becomes out of synch. This is not a show stopper but these are missing link in the dependency food chain. Sub-systems are not integrated, they are in a vacuum. A little less than with 2000 but still in a vacuum. Philippe ...Show All
Visual C# Sorting Structure Array
Dear All, I have a Console Application that records the top 10 records in a chart. At the moment the code uses a structure array, and uses the Get, Set methods to store values in the Array. I now need to sort the Array, and came across the Array.Sort method, however, everytime I use that method it throws an exception, any ideas I have attached my code for you to see what I am doing. public struct records { public string recordName; public string recordArtist; public int positionNow; public object dateEntered; public int weeksInChart; public int lastPosition; } class recordHandling { public records [] recordArray = new records[MainClass.maxValue]; p ...Show All
Visual Basic Excel 2003 Add To List Code.
this code works and adds an entry to the list but the entry in the worksheet doesn't become the last item in the list instead it gets entered at the last counted row. I think that the Resize part of the code may not be quite right. Hope this makes sense. Can anyone help on this please. Private Sub CommandButton1_Click() Dim SourceData As Range Dim found As Object Set SourceData = Range("ListRange") Set found = Nothing ' Try to find the value on the worksheet. Set found = SourceData.Find(ComboBox1.Value) ' If the item is not found in the list... If found Is Nothing Then Message = MsgBox("This Item is not in your list of Room Classifications, do you want to add it &q ...Show All
Windows Live Developer Forums Changes in AdCenterOrder?
Is it me or there was no announcement for a new property in AdCenterOrder --> private boolean targetExists; This was raising axis deserialization errors for AdCenterOrder objects... Ok, I downloaded all the wsdl this morning and built a new package for the API so I haven't checked if there were other changes. It does not seem to be a new version either! I am wondering what would happen if there is that kind of modification when the api developer (me for instance) is on vacation... our system will just stop doing its job! ...Show All
SQL Server Calling .Net Assembly or Dll from SQL Server 2005 at config Level 80
Hi, I create a dll assembly with the strong name in VB.Net environment. Created assembly is registered also. SQL Server 2005 configuraton level is set at "80" I want to call that assembly from stored procedure with the database config level at "80" But when i execute the stored proecure i get the following error Error Source: "ODSOLE Extended Procedure" Description: "Invalid Class String" My Code in VB.Net is given below: Imports System Imports System.Reflection Imports System.Globalization Imports System.IO Imports System.data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Imports Microsoft.VisualBasic Imports System.Diagnostics I ...Show All
Visual C# "new" event handlers
Given this declaration: Button myButton = new Button(); void myButton_Click( object sender, EventArgs e ) { MessageBox.Show("Click"); } What is difference between doing this: myButton.Click += myButton_Click; and doing this myButton.Click += new EventHandler( myButton_Click ); I've been doing it the simpler ( first ) way and I haven't had a problem (yet ), but I've noticed that most documentation I've read has it the other way, creating a new EventHandler. I'm not clear on what the effect of creating the new event handler is, and I am yet to discover what "The Bad Thing" is that's going to happen if i do i ...Show All
Visual Basic ListView and CheckBoxes
Private Sub lvSelected_ItemChecked( ByVal sender As Object , ByVal e As System.Windows.Forms.ItemCheckedEventArgs) Handles lvSelected.ItemChecked Try If lvSelected.SelectedItems.Count > 0 Then If lvSelected.SelectedItems. Item (0).Checked = True Then Multiplier.ShowDialog() End If End If Catch ex As Exception MessageBox.Show(ex.message, "Select Exam", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) Exit Sub End Try End Sub Here's my code.Hope you can help in this one.When the data is loaded in the listview and I checked on an item, nothing happens, but originally I should have prompted something like "You sh ...Show All
SQL Server Regarding Publications in Transactional Replication...
Hi, We are using transactional replication with updatable subscriptions in SQL Server 2005 . In our case both the publisher and the distributor is the same server. The subscription type is the Pull Subscription. It is set to run in the continuous running mode . Can we have more than one publication in the same Distributor Please refer the link below : http://msdn2.microsoft.com/en-us/library/ms152471.aspx This link has a recommendation of the following under the heading " Queued Updating Subscriptions" ...Show All
Visual Studio Syntax error when using Online MSDN
Hi, I have a problem with the Visual Studio 2005 help. Every page that loads i get a "line 1 syntax error" message box. It is DRIVING ME INSANE! I have tried to repair of the Document Explorer tool. I have looked for updates or KB articles and i can't find anything. I have tried turning off IE debugging but just the shape of the message box changes (and it doesn't ask me to debug), and the syntax error moves to line 2. A sample source for the page starts with XML so i thought that might be the cause but I am running the latest updates. Has anyone else had this problem Thanks in advance for any tips, Nathan Hi lyc, Thanks for the reply. Yes, with the way the markup for these particular pages ...Show All
