Posts

c# - Sorting a ListBox in WPF -

Let me start by saying that I'm completely new with WPF (this is my first project and I work in it I am doing less than a week) It is being said, please be easy on me! I have three lists ListBox which is bound to a LINQ query for ObservableCollection s. In the beginning, everything is fine, all three are correctly populated. I need to drag and drop my client from one ListBox to another. I also have this work, but when I drag the If I drop, the new one is placed below the ListBox instead of sorting alphabetically with existing items. How can I sort ListBox on the runtime after code completion of the drag-and-drop operation? Thank you! It is not completely clear how you manage drag and drop in your code. That your listboxes are all data-bound - which means that you actually drag objects from one backing collection to another and drop it on the drop if yes, then the listbox displays only those items that are present in the archive Are there. You should either ...

c++ - How do you multiply a matrix by itself? -

It's up to me yet, but I do not think it's right. (matrix [i] [j] + = matrix [i] [j] * for matrix [i] (int i = 0; i I do not think you can increase a matrix by yourself. For (i = 0; i Even if you minus nothing and iuml; matrix times ( I.e. (n 3 ) use some other than algorithm, even if you have additional storage.

.net - Textbox Formatting -

Is there a library that will provide content to format text box (or rich textbox) based on content, Does the content correspond to a pattern (abstract syntax highlighting)? It would be nice if it is possible to win both web in the world as well, although I prefer Winform (or WPF for that matter). Select the text that you need to programmatically, and then set the Select Caller property. Of course, you will need to write a regular expression which is to select which text, but after that it is easy to paint. Oh, yes; This will not work for a text box, only a rich textbox (obviously).

internet explorer 6 - Facebook connect iframe applicaitons and ie6 fb:friend-selector -

It is one of the two scripts in which I have FB: Friend selector is a Facebook IFrame app, but whatever I Also, I6 has a height of around 150 pixels, which gives the scrollbar. By adding 1px boundaries it appears that in other browsers where it actually works, there is an initial height of approximately 150 pixels VC, because the list of friends is populated. & lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: this is never something in IE6. FB = "http://www.facebook.com/2008/fbml"> & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script src = "http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt ;? = $ _ Receive [friend_sel] ;? & Gt; & Lt; Fb: serverfbml style = "width: 500px; height: 20px; range: 1px solid red" & gt; & Lt; Script type = "text / fbml" &...

Writing API in C# for My Application -

I will write an application, but I have not allowed people to use their application programming interfaces first. I mean, how should I kindly design people to let people use my methods like the API from outside the world. Please someone shows me a path. I am new to this. Express as little as you can. Whatever you publish, it will come back to you x100 in the next version. Keeping consistency is very difficult. Create instability for whatever you publish You will definitely change your interior, but your existing users should stay consistent. Mark everything internally Even the main method of your application will be to use each one method that can be used. Check your public API in the same way that you would for the interface. Integration test and so on Note that your API will be used in an unexpected way. Maximize the conference on the configuration This is necessary even if your API is the only way, you will still need to support it. Resolve as many FxCop and Styl...

javascript - Hiding/Showing a swf in a div? -

I have a Flex app that I want to hide in a single device as long as the user clicks on a link or some type of element does not. I have seen that embedding the SDF into a style display in one display: Nobody really does not hide the SDF, so how would I have to go about completing this? Flex is loading the background in the target while the user uses other things Thanks. I usually force the container's height / width to 1 to 1 pixels ... & lt; Div style = "height: 1px; width: 1px;" & Gt; ... Flash goes here ... & lt; Div & gt; Then, when I need to flash, I will reset the height / width as appropriate, note that you may want to put it in the parent container if You just want to reset the HV in "100%" which is the "parent: relative; height: px; width: px" setting.

vba - Visual Basic dot operator syntax--no object name -

In a previous life, I wrote some Visual Basic, and today I write an Excel Macro to resume those skills. need to. To help us with this Excel macro, while looking for the Internet in search of VBA instances, I came to this unusual syntax: set rFound = .Columns (1). Search (after: = "cat", after: = cell (1, 1), LookIn: = xlValues, LookAt: = _xlPart, SearchOrder: = xlByRows, search direction: = xlNext, MatchCase: = False _, SearchFormat : = False) Notes. Columns and. Seals - The dot operators do not have any object names left. I remember using this syntax much earlier, but I do not remember details. Question: When is this legal? Where can I get more information? Thank you. This is the one with the most statement in this way: With testObject. Height = 100 Text = "Hello, World". Information for VB with statement on more for more with .ows = 20 End Col = 20 End