Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
hi all
is the a way to create image gallary in window form in c# like jquery image gallary
and get the image from database which will displayed in image gallary
please help
thank u
Posted
Comments
BillWoodruff 28-Sep-12 20:09pm    
Yes, an application, or control, that duplicates the visual look and feel, and behavior, of the jQuery Image Gallery, can be done in C#, in Windows Forms, or WPF (with much more visual beauty and impressive effects and animation in WPF than in Windows Forms, imho).

But, if you intend this application or control to be used in a browser: forget about it. There'd be only one browser, IE, that would let you use it, and using it in IE would be more trouble than its worth.

What have you done so far; what are your plans for achieving this: is this a stand-alone application, or, are you trying to develop a re-usable Control ?

Show us some code. Get specific.

good luck, Bill

You can follow the link below,
This will give you a fair idea on how to build Image Gallery in Win C#.

Nice image gallery developed in WPF,
http://keyboardimageviewer.codeplex.com/[^]

cheers
 
Share this answer
 
v2
In window form? Well, there is some way: you need to develop or use some available JavaScript interpreter. Than you have to create a special host for running JavaScrip in some UI environment based on System.Windows.Forms. Then, you need to develop some analog of HTML DOM, but it rather should be the DOM in your Form-based environment. At the same time, all the name and functionality should match HTML DOM names and functionality, just because you want to use jQuery. Then you would need to develop the gallery scripts and test them. Most likely, they won't work, so you would need to go back to the design of the scripting host environment and reiterate the development.

In fact, the scope of your work would be as bigger as the scope of the biggest part of any Web browser: it would be a nearly complete layout engine plus the support of DOM, plus the JavaScript interpreted and run-time host for it. Maybe, twice as big as the layout engine, close to the complete Web browser, without plug-ins and some UI surrounding. You can get a clear idea of how much work it could be: download the source code of any open-source browser (Mozilla, Chromium). And the sense of this activity? The gallery?!

And all this work just to support "small but proud", in fact, tiny jQuery library. Probably, all your efforts will be a lot more than that needed to create the whole jQuery.

Maybe you should better learn how applications work? How OS works? How Web works? What are the benefits and drawbacks of different approaches? Maybe, also get some experience is very basic programming techniques? It would be way more useful then this question, and this idea would never come to your mind.

—SA
 
Share this answer
 
v2
Comments
BillWoodruff 28-Sep-12 20:05pm    
Vote of #1: a completely off the wall response.

The user is clearly asking how to create in C# Windows Forms an application (or, perhaps, UserControl) that behaves like, that looks like, that has the functionality of the jQuery image gallery.

He is not asking how to use JavaScipt in C#, or how to use jQuery.
Sergey Alexandrovich Kryukov 28-Sep-12 20:21pm    
Bill, you did not understand anything, I think. OP is asking how to use jQuery with forms -- read carefully, and clearly explain that it is only theoretically possible, but makes no sense. Yes, yet another brain-washing answer, but this brain wash in way more useful then yet another cookbook recipe. You know, this is in part a problem of morale, really.

Besides, OP did not ask how to make a gallery using Forms directly, but this is what I would rather advise when it comes to Forms, or with ASP.NET (PHP, whatever) and jQuery, if it comes to Web applications.

In this sense, you could down-vote rather solution 3, but of course I advise anyone not to down-vote it.

I would advise you to re-think it; right now, it does not look good, really.

--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900