Hi,
In VS2010 how do I add a whole directory of existing items?
When I right click on project and Add ExistingItem I seem to be able to load only one file at a time?
Hello,
I'm trying to determine the host operating system's settings regarding mouse button switch state to properly handle a context menu event.
I want to determine whether or not the operating system my application is running on has switched the left and right mouse buttons, and handle the mouse click event accordingly.
What would be the best way to determine that in C#?
Thanks!
I have the following method, I wish to remove items from my collection that match the product Id. Seems fairly straight forward, but i get an exception. Basically my collection is getting out of sync. So what is the best way to remove an item from a collection.
public void RemoveOrderItem(Model.Order currentOrder, int productId)
{
foreach (var orderItem in currentOrder.OrderItems)
{
if (orderItem.Product.Id == productId)
{
currentOrder.OrderItems.Remove(orderItem);
}
}
}
Exception Details: System.InvalidOperationException: Collection was modified; enumeration operation may not execute
I'd like to list the items in a tuple in Python starting with the back and go to front.
Similar to:
foo_t = tuple(int(f) for f in foo)
print foo, foo_t[len(foo_t)-1] ...
I believe this should be possible without Try ...-4, except ...-3.
Thoughts? suggestions?
Is there a standard practise for representing the state of a user interface that is not linked to a single Component?
For example, a Swing interface could have a series of tabs with a constraint that a single tab should only be displayed once per a given entity type (this could be represented as a HashSet). Or a message could give the result of the last operation carried out. Or a JPanel could be linked to a single entity instance for editing purposes.
I have being using jquery autocomplete. By default it is showing 10 items in the dropdown, i want to increase its number to 20 or customise it according to requirement. i have tried many ways of cache length but none of them is working. pls suggest a way.
Hii,,
I need a help. I have a master page and i am changing the masterpage file property to some other master page dynamically in the page PreInit event and that changing url is taken from a viewstate. but the view state is not getting in the pre init event. If you finding any solution regarding this pls help me....
I am using VS 2010 and SL 4.And I came up with strange behaviour of the listbox that it don't have keyboard navigation(the one which is present in wpf :( ).So is there a way or any idea or suggestion how can i do it.. I know the long way thats shown up here ,
link text
But anything simpler then this or shortes then this will be nice.. :)
Pressing up/down keys will navigate through items present in the silverlight listbox
hi,
I am making an iphone application in which after login we will go through some steps and then finally we make a call from within the app. As we know on making call our app quits so plz suggest me how to resume that state on relaunching the app?
1-login
2-some steps
3-list of numbers
4-call
Any help will be appreciated.
Thanx..
How can I add shortcut keys to my menu items. I notice that many applications have:
New ctrl+N
Open ctrl+O
Do I write the endings (like ctrl+N) myself and handle WM_KEYDOWN or is there a magical way to do it with resources?
Thanks
I backed up a SQL Server 2005 database and restored it to a new SQL 2008 instance. The restore was quick and successful. Everything was fine for an hour or so.
Suddenly, the database is now stuck in "(Restoring...)" state in Management Studio and has a green arrow icon, and my application login is failing!
Any advice? :-)
I have a column called "menu_order" which has no default value. When I select the contents of this column using the following select statement:
SELECT * FROM categories ORDER BY menu_order ASC
It lists the category items that have nothing as their menu order first and then the one's that have 1's and 2's and 3's. Is there any way to prevent SQL from take nothing to come before numbers when I am trying to list things in order?
So for example, if I have:
cat_name | menu_order
----------------------
Lunch | 1
Dinner |
And I perform my query, the output should be:
Lunch Dinner
Not:
Dinner Lunch
I'm trying to see if a particular item in a checkedlistbox is checked or not.
I assumed referencing the item would be:
var checkBox = CheckBoxCheckedListBox1.Items[0];
But that returns an object. Casting to a CheckBox throws an exeption.
Thanks!
Hi
i have a dialog that made by jquery
in this dialog i have asp button that save information in database
but when i pust the button the page will be poseback and dialog will be close
but i want to keep dialog state
how can i do that
cheers shaahin
please give me an example
Hello, i need some help with a menu. See the following menu:
menu
The code for this menu:
<div id="menu">
<ul>
<li class="home"><a href="#home" class="panel">home / <span class="go">you are here</span></a></li>
<li class="about"><a href="#about" class="panel">about / <span class="go">go here</span></a></li>
<li class="cases"><a href="#cases" class="panel">cases / <span class="go">go there</span></a></li>
<li class="photos"><a href="#photos" class="panel">photos / <span class="go">maybe here</span></a></li>
<li class="contact"><a href="#contact" class="panel">contact / <span class="go">or even here<span></span></a></li>
</ul>
</div>
What i want to do: onclick a menu item:
1. change the red text to yellow 'you are here'
2. change the previous menu item back to its original state (eg red and "go here").
The 4 values "go here", "go there", "maybe here", "or even here" are the 4 values that should be assigned to the other menu items (like the example).
This is the code i already have:
$('#menu ul li.home').addClass('active')
$('#menu ul li.active a .go').html("you are here");
$("#menu ul li").click(function () {
$('#menu ul li.active').removeClass('active');
$(this).addClass('active');
$('#menu ul li.active a .go').html("you are here");
});
var arr = [ "go here", "go there", "maybe here", "or even here" ];
var obj = { item1: "go here", item2: "go there" ,item3: "maybe here", item4: "or even here"};
$('#menu ul li').click(function () {
var str = $('#menu ul li.active a .go').text();
$('#menu ul li.active a .go').html(str);
});
As you see, it's incomplete. I don't how to get the values from the array and assign them too a menu item. The replace text works, but not the change-back-to-original-state. Also, right now, for some reason i can't click ONTO the list item itself in order to activate the jquery code. I need to click just a few pixels under it. But i guess that's a css issue.
If anyone can help, i'd be super thankful!
Regards,
Mathijs
I have a list of items sorted alphabetically:
list = [a,b,c,d,e,f,g,h,i,j]
I'm able to output the list in an html table horizonally like so:
| a , b , c , d |
| e , f , g , h |
| i , j , , |
What's the algorithm to create the table vertically like this:
| a , d , g , j |
| b , e , h , |
| c , f , i , |
I'm using python, but your answer can be in any language or even pseudocode.
Thanks
Hi,
Can any body provide me sample code or sample applications to retrieve list of items and list of objects from web service and to parse it.
Thanks in advance
Regards,
Malleswar
Hi all
I am invoking camera from my application. i want to remove few menu items that is provided by the camera application. how to do that.
Thanks alot
Hey Guys, I am trying to find the way to use same view-state but with different views so that based on where it is being called, I can provide different view to the user.
For instance, trying to achieve as follows:
Please share your experience so that I can achieve this functionality easily.
Is there a simple way to invert a WPF GridView so that items are bound to columns instead of rows? Or would it be necessary to write a custom view mode?
I am trying to use checkboxes to select the items in a Listview. I have added a checkbox control in the , and they are displayed properly.
The problem is that Checked property never changes when I click on them. Why does this happen? And is there a workaround?