CANARY_111's Q&A profile
Visual Studio Express Editions Sifting through array for matches
Hello all, Sorry for such a beginner question, but I can't seem to work through this. I've thought about it for a while, and I just can't seem to figure out a solution. Sorry in advance: I've got an array with a bunch of names in it, and I want to sift through it to make sure that none of the names are the same, and if they are, then I want to take out one of the matches from that pair. So for instance, if i've got an array that contains the names: Robert Rob Jacob Jack Jacob I want to be able to go through and find that second jacob to take it out, so that the array only contains the names Robert Rob ...Show All
SQL Server How can I make a Matrix Transposition in SQL ?
Can we do matrix transpose (rows become columns and columns become rows) in standard SQL 1 2 3 4 5 6 7 8 9 changes to 1 4 7 2 5 8 3 6 9 how about the situation when no of rows <> no of column let's consider the no of rows it's fixed and known before running the SQL statement. thanks. Well, there are several linear algebra packages available for C# on the web - I haven't tried them myself, but they might be worth checking out. ...Show All
.NET Development HOW TO ADD '&' in XML text...
i want to create a XML tag like <info>a & b</info> but XML doesnt allow this ....SO if any1 knows plz reply.... Thankxx... Use & instead. For further information, search google for predefined XML entities. ...Show All
SQL Server Visual C# cannot connect to SQL 2005 Express
Hi, In Visual C# Express, I right click on my solution and select Add, new item, and then choose an SQL database. I get the error: Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL: http://go.microsoft.com/fwlink/ LinkId=49251 I completely uninstalled all of the beta Express products I had and reinstalled SQL Server 2005 Express first, which seems to have installed ok. Then I reinstalled Visual C# Express, but still have the same problem. This is happening on my home pc running Windows XP Home sp2. I successfully ...Show All
.NET Development access data from a Deleted DataRow
Hi! I have a DataRow marked as deleted. How can I get the data behind the row I tried to use Table.Select with several parameters but didn't succeed. I always get a System.Data.DeletedRowInaccessibleException when I try to do something like: pkID=myRow["pkID"] or in VB syntax... pkID=myRow("pkID") If DT is your table of changes use the following code to access the original row data: DataView originals = new DataView(DT, null, null, DataViewRowState.OriginalRows); foreach (DataRowView originalRow in originals){ // Do something with originalRow } ...Show All
Software Development for Windows Vista Workflow Startup in transactional way...
Hello, My WWF usage scenario requires me to startup workflow in a transaction - that is workflow should start, it should be persisted and then my startup procedure completes making completed() vote in bigger transaction. I was thinking about following solution: Let's assume that MyStartWorkflow() should work in transactional way. MyStartWorkflow() starts up workflow using workflow runtime and hangs up on an event (for example AutoResetEvent). First activity in the workflow is marked as PersistOnCompleted what causes PersistenceService to persist workflow as started and with first activity completed then, the event is fired and tr ...Show All
Visual Basic Thread Debugging
Hi, I am currently developing a multithreaded network app, debug output shows a couple of first chance exceptions, however if an exception occurs that is not first chance i.e. bad mid() statement, the ide just freezes for a few seconds, no pop up and i cant trace through the app. What am i doing wrong I have disabled Just My Code, although i doubt this would affect the debugging of my code as it is all managed anyway. I would also like to debug the first chance exceptions if at all possible. Is there something in the IDE settings i have missed Thanks for your time. Matt. I have worked out what the ...Show All
Visual Studio Tools for Office Merged Word Menus are not accessible after creating new word project
Hi, I created a new word project from within the Visual Studio IDE. I noticed, that the merged word menus are not accesible, although most of the word functions are accessible via toolbar or context menu. Is this a bug or did i miss any settings Thanks, Klaus Are the menus not enabled even when the designer is selected Can you send a screen snapshot ...Show All
Smart Device Development Own ToolBoxItem
Is it possibility to use own ToolBoxItem in Pocket PC project It seams that Xml Design-Time File doesn't support ToolBoxItem attribute ! While there is no Toolboxitem attribute support, you can use the following steps to "get the ToolboxItem attribute in". 1.Compile you control lib (e.g. PPCCtrlLib.dll) 2.decompile: ildasm PPCCtrlLib.dll /out:PPCCtrlLib.il 3.edit to add the ToolBox attribute, e.g. notepad PPCCtrlLib.il add toolbox attribute, e.g. .class public auto ansi beforefieldinit PPCCtrlLib.UserControl1 extends [System.Windows.Forms]System.Windows.For ...Show All
Visual Studio Team System Project Portal discussions: Can I have "New" ones opened automatically
The project portal is a windows sharepoint site. I've placed the General Discussion web part on the home page to make the accessible and useful to the users of our project portal. I've displayed them in the Threaded viw and the threads are all collapsed. That's the good part. When people post new messages to a trhead, those messages are marked witha very used "New" label. The question is, can I get sharepoint to expand all threads to the point where New messages are visible. Because these New messages are hidden in the default view. Teh trheads are all collapsed and there is no indicator that any activity is taking place i ...Show All
Visual Studio Express Editions Generate a random number
Can someone tell me how to generate a random number that i can put into a variable Also how to declare that number an odd or even. Thank you. This should do it for you. Private Sub Button4_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim _rnd As New Random Dim _int As Integer Dim _low As Integer = 0 Dim _high As Integer = 100 _int = _rnd.Next(_low, _high) If (_int Mod 2) = 0 Then MsgBox( "The number " & _int & " is even" ) Else MsgBox( "The number " & _int & ...Show All
Visual C# string manipulation functions
Hi, I've been trying to find a link where all of the string manipulation functions are listed but couldn't find any. Could someone please direct me to where I could find these functions Thanks, Bruce using System; using System.Collections.Generic; using System.Text; class LeftRightMid { public static string Left(string param, int length) { //we start at 0 since we want to get ...Show All
Windows Forms Imitate DataGridViewTextBox behaviour to add rows
I'm currently developing custom datagridviewcells and facing the following problem: When entering the last row in a databound datagridview (the "new row") and focusing a DataGridViewTextBoxCell the editmode is initialized and the grid waits for input. After typing the first char, a new row is created and the row is bound to that row. I need to imitate this behaviour WITHOUT typing. I developed a custom datagridviewcell with its own datagridvieweditingcontrol but which method / property is responsible for adding the new row I tried to call Me .DataGridView.NotifyCurrentCellDirty( True ) but it doesn't work ...Show All
Visual Studio Express Editions fatel error c1083
Hi i am new to coding and microsoft visual c++ express. Anyway i already have set it all up right even used the videos to do which you can find here: http://msdn.microsoft.com/visualc/learning/vcexpvids/default.aspx Anyway i am using a c++ a beginner's guide se by herbert schildt i have been trying to compile the fist simple program code in chapter one here is the code exactly as the book states. /* This is a simple C++ program. Call this file Sample.CPP. */ #include <iostream> using namespace std; // A C++ program begins at the main(). int main() { cout << "C++ is a power programming."; return 0; } I know when i use the co ...Show All
Smart Device Development Is it legal to manipulate a control (listbox for example) from a DLL written in c++ using SendMessage
Hello and good whatever time is at yout place Is it legal to manipulate a control (listbox for example) from a DLL written in c++ using SendMessage like so: in the VB part: Declare Function TestSendMSG Lib "MyDll.dll" _ (ByVal h_wnd as int32) As int32 calling this function like: (in some sub) TestSendMSG(MyListBox1.hWnd) In the DLL: unsigned long WINAPI TestSendMSG(unsigned long h_wnd) { SendMessage((HWND)h_wnd, LB_ADDITEM, ..........); return 0; } Thank you for taking the time PS.: Could you MS people _please_ add a text only property to the message properties ...Show All
