C#:如何刷新图片框 [英] C#: How to refresh a picture box

查看:70
本文介绍了C#:如何刷新图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个图片框,当从相机拍摄后保存图像时,该图片框应显示在该图片框中.问题是图像到了,但是我无法在应用程序界面中重新加载图片控件.

请给我建议任何可能的逻辑构想,以便我自己解决此问题.

-谢谢

解决方案

尝试从另一个线程加载图像.


在图片框旁边,在下方放置一个按钮(刷新)该按钮调用上述方法,将代码存入mypage.php中,它是(AJAX),它将以asp,java和php等任何语言工作.

函数selectvalue()
{
 var   = document.getElementById('  egroup').//  location.href ="admin/mypage.php?Result =" + group;  

(' #typelist').load(" admin/mypage.php?Result =" + 解决方案

try loading the image from another thread.


Beside your picture box put one button(Refresh) under that button call the above method write the code for loding image in mypage.php it is (AJAX) it will work in any language like asp, java, and php.

function selectvalue()
{
var group=document.getElementById('egroup').value;

//location.href="admin/mypage.php?Result=" + group;


('#typelist').load("admin/mypage.php?Result="+ group); }


这篇关于C#:如何刷新图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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