I have a listbox which has all the names for a list of "Gesture" objects I have.
I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine?
I have to show like
(a)
(b)
(c)
Update:
I found a CSS way
ol {list-style-type: none;}
li:before {content: "(" counter(section, lower-alpha) ") ";}
li { counter-increment: section;}
but it not works in IE 7 and lower.
How to enable support of counter in all other browsers using jquery which do not support natively.?
Which control should i use?
I don't want the records to be displayed on the Windows Application list in the same way records displayed in database as this:
I want the records to be displayed statically and a user when right click a record, he/she gets Edit and Remove choices. Of course there has to be static headers at the top.
I hope my request is clear.
I'm using C#.NET - VS 2008
How can I initilise a structure in the constructor list?
Say:
struct St{int x, y};
class Foo
{
public:
Foo(int a = 0, int b = 0) : /*here initilise st_foo out of a and b*/
{}
private:
const St st_foo;
};
I've tried to write a post using a link list layout that I've created but couldn't get jekyll to generate properly. The problem should be in the index.html but I can't make the index page to generate both layout together.
{% for post in paginator.posts %}
{% include post.html %}
{% endfor %}
I can't figure out why this list is not displaying properly in IE7.
The website: http://ada.kiexpro.com/html/about.html
The background image is covered by the div below and the div in the bottom is not displayed.
Thanks in advance!
The data tools like gridview and formview does not have dropdown list by default.
Can I insert it in formview? Does it have any thing to do with databinding?
Hi guys,
I think there should a control like databound list control of vb6 in vb.net windows form application too which can show up data from database.
I have confused and staring my database applications in vb.net....
so can you suggest which control can be used?
I've seen it declared that it is bad practice to derive a class from stl containers such as std::list.
Why is this the case? What issues does violating this cause?
Is it possible to include a Silverlight (3) out-of-browser application to the add-or-remove programs list?
The intention is to be able to remove the OOB application that way (not just by right-clicking from within the running app)?
If the OOB app is installed with a shortcut to the desktop and you try to delete the shortcut you are presented with the standard 'you are just deleting a shortcut if you want to delete the application go to add or remove programs' dialog.
I want to tidy up this inconsistency.
I using this code to connect to facebook chat. When I try to retrieve list of online users instead of user name I get negative number for example: [email protected]
How can I get the original (Letters) user name?
I'm compiling a list of audio + video players (flash / javascript / other) that I can embed into a website.
flowplayer: http://flowplayer.org/
jw player:
http://www.longtailvideo.com/players/
premium beat:
http://www.premiumbeat.com/flash_resources/free_flash_music_player/
xspf web player:
http://musicplayer.sourceforge.net/
yahoo media player:
http://mediaplayer.yahoo.com/
any popular ones I'm missing? (anyone know if I can skin / customize any of them to operate similar to the Windows vista volume control?)
Hi there,
I'm looking to calculate the total size of all shared folders (except admin shares) on a number of different servers (consolidating all accessed files to a NAS box for easier backup / restore) but am having a bit of trouble finding a solution.
I'm certain this could be done in powershell but I just can't find the right information to get me going, I can currently spit out a list of all shares on the servers but am not sure where to go from here:
$servers =@(
"server1",
"server2")
foreach($server in $servers)
{
get-WmiObject Win32_Share -computerName $server -filter "Type = 0"
}
Simple question - what part of my CSS do I tweak to adjust the gap between a bullet/number and the first text character in an HTML list?
Bonus question - I've seen it mentioned here that controlling table spacing by adjust padding on table tr td {} is bad practice, but I haven't seen someone explain how you're really supposed to do it...?
I want to know what kinds of data structure in Java and not in the util package?
For example: Hashmap, Collection, Set.
Please give me a list of them as many as possible.
Thank you
For Facebook's 16x16 pixel icon, the following url is used fairly a lot, but this isn't stated by Facebook that people can use this, is it?
http://static.ak.fbcdn.net/images/icons/favicon.gif
Is there any official list of icons from Facebook that people can use their own site for Facebook Connect?
With Jquery, is there some way to make val() return an empty string instead of 'undefined' when called against an empty list of elements?
E.g., I have this code:
var x = $('#my-textbox-id').not('.watermark').val();
The idea is that I want to get the value of my textbox, but I want an empty string if it is currently showing the watermark (i don't want the watermark value!).
The selector works, but i don't want 'undefined' - I want an empty string ''.
I need to get a list of weeks for a given month, with Monday as the start day.
So for example, for the month of February 2009, this method would return:
2/2/2009
2/9/2009
2/16/2009
2/23/2009
I wanted to allow the user to choose a currency from a list of currencies. Do i have to hardcode all the currencies in the code or can i get it from the api, somehow.
Hi,
I would like to change a value in dropdown list with id "items".
The following causes error
client.setValue("items", "1");
java.lang.IllegalArgumentException: This method can not be used on components of type com.gargoylesoftware.htmlunit.html.HtmlSelect
I've tried:
client.getElement("items").setAttribute("value","1");
It causes no error and no effect as well.
Is there any possibility to solve it?
Thanx in advance
I have a listbox which has all the names for a list of "Gesture" objects I have.
I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine?
I'm using WPF.
Situation: In short, I have a football schedule. I would like to use a custom cell which provides more info for only the next game date in the schedule.
Issue: How do I find only the next closest game in the schedule (for iOS)?
I've watched the WWDC 2013 video for "Solutions to Common Date and Time Issues" however this primarily applies to the Mac. I've searched numerous posts here and some are close but not what I need to find ONLY the next date from my list of dates in the schedule. From other posts I see where I can compare two specific dates, but this is not what I want to do. I want to find the next closest date that is equal to or after today from a list of dates.
This is where I am now.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//Populate the table from the plist
NSDictionary *season = _schedContentArray[indexPath.section];
NSArray *schedule = season[@"Schedule"];
NSDictionary *game = schedule[indexPath.row];
//find the closest game date after today's date ??
NSString *gameDateStr = game[@"GameDate"];
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
dateFormatter.calendar=calendar;
[dateFormatter setDateFormat:@"MM/dd/yy"];
NSDate *today = [NSDate date];
NSDate *gameDate = [dateFormatter dateFromString:gameDateStr];
//NSString *nextGame =
NSLog(@"game date is %@",gameDate);
The NSLog returns the game dates (except for the open date):
2013-11-11 16:10:05.979 Clemson Football[24060:70b] game date is 2013-08-31 04:00:00 +0000
2013-11-11 16:10:05.982 Clemson Football[24060:70b] game date is 2013-09-07 04:00:00 +0000
2013-11-11 16:10:05.985 Clemson Football[24060:70b] game date is (null)
2013-11-11 16:10:05.987 Clemson Football[24060:70b] game date is 2013-09-19 04:00:00 +0000
2013-11-11 16:10:05.988 Clemson Football[24060:70b] game date is 2013-09-28 04:00:00 +0000
2013-11-11 16:10:05.990 Clemson Football[24060:70b] game date is 2013-10-05 04:00:00 +0000
2013-11-11 16:10:05.992 Clemson Football[24060:70b] game date is 2013-10-12 04:00:00 +0000
2013-11-11 16:10:05.993 Clemson Football[24060:70b] game date is 2013-10-19 04:00:00 +0000
2013-11-11 16:10:05.995 Clemson Football[24060:70b] game date is 2013-10-26 04:00:00 +0000
2013-11-11 16:10:05.996 Clemson Football[24060:70b] game date is 2013-11-02 04:00:00 +0000
2013-11-11 16:10:05.998 Clemson Football[24060:70b] game date is 2013-11-09 05:00:00 +0000
2013-11-11 16:10:06.000 Clemson Football[24060:70b] game date is 2013-11-14 05:00:00 +0000
2013-11-11 16:10:06.001 Clemson Football[24060:70b] game date is 2013-11-23 05:00:00 +0000
2013-11-11 16:10:06.003 Clemson Football[24060:70b] game date is 2013-11-30 05:00:00 +0000
2013-11-11 16:10:06.005 Clemson Football[24060:70b] game date is 2013-12-07 05:00:00 +0000
Thanks in advance for any assistance you can provide. This seems like it should be simple but has been fairly frustrating. Let me know if you need additional info.
I have written a program to store a bunch of strings in a JFC hash table. There are defiantly collisions going on, but I don't really know how it is handling them. My ultimate goal is to print the number of occurrences of each string in the table, and traversing the bucket or list would work nicely. Or maybe counting the collisions? Or do you have another idea of how I could get a count of the elements?