如何以窗口形式创建图像库 [英] how to create image gallary in window form

查看:63
本文介绍了如何以窗口形式创建图像库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
是一种以c#形式像jquery image gallary一样以c#形式创建图像库的方法
并从数据库中获取图像,该图像将显示在图像库中
请帮助
谢谢u

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

推荐答案

您可以点击下面的链接,
这将使您对如何在Win C#中构建图像库有一个清晰的认识.

使用WPF开发的精美图片库,
http://keyboardimageviewer.codeplex.com/ [ ^ ]

欢呼
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


处于窗口形式?嗯,有一些方法:您需要开发或使用一些可用的JavaScript解释器.比您必须创建一个特殊的主机,以便在基于System.Windows.Forms的某些UI环境中运行JavaScrip.然后,您需要开发一些HTML DOM的类似物,但是应该是基于表单的环境中的DOM.同时,所有名称和功能都应与HTML DOM名称和功能相匹配,只是因为您要使用jQuery.然后,您将需要开发库脚本并对其进行测试.它们很可能无法正常工作,因此您需要返回到脚本宿主环境的设计并重申其开发.

实际上,您的工作范围将与任何Web浏览器最大部分的范围一样大:它将是一个几乎完整的布局引擎加上DOM的支持,再加上JavaScript解释器和它的运行时主机.可能是布局引擎的两倍大,它接近完整的Web浏览器,而没有插件和周围的UI.您可以清楚地知道它的工作量:下载任何开源浏览器(Mozilla,Chromium)的源代码.以及这种活动的意义?画廊?!

所有这些工作只是为了支持小而引以为傲",实际上是小的jQuery库.可能,您所做的所有工作将远远超过创建整个jQuery所需的工作.

也许您应该更好地了解应用程序如何工作?操作系统如何工作?网络如何运作?不同方法的优点和缺点是什么?也许,还可以获得一些非常基础的编程技巧经验?相比这个问题,它会更加有用,而且您永远不会想到这个主意.

—SA
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


这篇关于如何以窗口形式创建图像库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆