Posts

how to dispatch own events to controls to simulate mouseclicks in c#? -

how to dispatch own events to controls to simulate mouseclicks in c#? - is possible in c# dispatch own events controls? i mean, can in java: mouseevent leftclick = new mouseevent(image, mouseevent.mouse_pressed, 0, 0, 100, 100, 1, false, mouseevent.button1); image.dispatchevent(leftclick); events in c# work little differently. instead of dispatching event object, subscribe event object has available , provide delegate. see events (c# vs. java) reference. however, if want run code attached event, can phone call delegate directly, think people consider bad form. may improve have method performs action , phone call both delegate , wherever wanting simulate click event from. somecontrol.leftmousebuttondown += new leftmousebuttondown(somecontrol_leftmousebuttondown); protected void somecontrol_leftmousebuttondown(object sender, eventargs e) //might typed eventargs instead of generic. { //run code or phone call method. } preferably, utilize click ...

mysql get maser and all details if one detail matches condition -

mysql get maser and all details if one detail matches condition - i have 2 tables product , specs want product , group_concat(all specs) if @ to the lowest degree 1 spec matches where. have far returns 1 spec matches where. select p.id, p.name, p.manufacturer group_concat(s.specvalue order s.pid,',') product p bring together spec s on p.id = s.pid s.specvalue = 'micro' grouping p.id product table | id | name | manufacturer | | 1 | iphone | apple | | 2 | galaxy | samsung | | 3 | note | samsung | ------------------------------ spec table | id | pid | specname | specvlaue | | 1 | 1 | charger | bad | | 2 | 2 | charger | micro | | 3 | 2 | keypad | touch | | 4 | 4 | charger | micro | ----------------------------------- you can utilize next uses in in where clause: select p.id, p.name, p.manufacturer, group_concat(s.specvalue order s.pid,',') allspecs product p bring ...

How to create Zip files in Asp.Net? -

How to create Zip files in Asp.Net? - in asp.net 2.0, need take multiple folders along files. our requirement take folders , need create single zip file. can help me on this. thanks. download sharpziplib, it's 1 of more popular zip libraries add reference icsharpcode.sharpziplib.dll you can go through code samples when download sharpziplib sense of how can zip , unzip files, here's example: public static void main(string[] args) { zipfiles("d:\\sharpzip","d:\\zipped.zip"); } private static void zipfiles(string inputdirectory, string outputdirectory) { if (directory.exists(inputdirectory)) { string[] filenames = directory.getfiles(inputdirectory); using (zipoutputstream zipstream = new zipoutputstream(file.create(outputdirectory))) { zipstream.setlevel(9); byte[] buffer = new byte[4096]; foreach (string file i...

objective c - Animating Background image /layer in iPhone -

objective c - Animating Background image /layer in iPhone - i started working on sample application, have objects(images) animated on uiview. have background image should animate along these objects.two animations should happen @ same time. background image occupies screen space , on top of other images should animated. guide me accomplish this. i tried next things mentioned in link below. (int = 0; < image_count; i++) [_imagearray addobject:[uiimage imagenamed:[nsstring stringwithformat:@"d%d.png", i]]]; _animatedimages = [[uiimageview alloc] initwithframe:cgrectmake( (screen_width / 2) - (image_width / 2), (screen_height / 2) - (image_height / 2) + status_bar_height, image_width, image_height)]; _animatedimages.animationimages = [nsarray arraywitharray:_imagearray]; _an...

javascript - jquery mobile swipe functions -

javascript - jquery mobile swipe functions - i have swipe function set on web app ipad 1 time user swipes right wit finger, takes them lastly page went to. javascript looks <script> $(document).bind('swiperight', function () { history.back(); });</script> now in mind, if wanted create function more exact, alter particular page, incorporate jqm alter page function? <script> $(document).bind('swiperight', function () { $.mobile.changepage( "#home", { transition: "slide"} ); });</script> and set attribute data-direction="reverse"? it should this: $(document).bind('swiperight', function () { $.mobile.changepage("#home", { transition: "slide", reverse: true }); }); javascript jquery ios jquery-mobile

reporting services - Some of the page numbers are repeated when exporting to word -

reporting services - Some of the page numbers are repeated when exporting to word - i have study 50 pages. have 1 list control, , list command contains table control. using grouping in list, page break @ end. want each grouping on 1 page. example, if size of info bit more of pages moves sec page. the problem getting of pages same number info 1 grouping more 1 page. using look in footer: format(globals!pagenumber & "of" & globals!totalpages) when have 50 pages after exporting word 45, becuase 5 or 6 pages repeated, giving "1 of 45" instead of "1 of 50". note using ssrs 2005. reporting-services reportingservices-2005

sql - Running a bat file with BCP command, getting connection error -

sql - Running a bat file with BCP command, getting connection error - i have bat file using bcp command execute stored procedure delimited file. when manually running bat file, next errors: i'm using -t parameter log database windows authentication. there setting may need alter prepare error? the -s argument needed passed bcp command. sql sql-server-2008 sql-server-2008-r2 bcp