C#中的图片是什么? [英] What's in the picture C#?

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

问题描述

如何在C#中执行此操作。我需要在图片下显示图片我写的是什么构成图像如果回答正确程序转到下一张图片如果不是corectli显示错误或非corect?

How to do this in C #. I need to show pictures under the pictures I write what constitutes an image if answered correctly the program go to the next picture if is not corectli display error or non corect?

推荐答案

嗨Gruden,



如果您在图片框中有3张图片并且您要验证每个图片框那么

Hi Gruden,

If you have 3 pictures in the picture box and you gonna validate each and every picture box then
PictureBox1 = Image1;
PictureBox2 = Image2;
PictureBox3 = Image3;



在页面加载时,显示第一张图片


At page load, show first picture that is

PictureBox1.Visible = True;
PictureBox2.Visible = False;
PictureBox3.Visible = False;



当用户回答正确时点击按钮


At button click when user answers correct then

PictureBox1.Visible = False;
PictureBox2.Visible = True;
PictureBox3.Visible = False;



类似于第3张图片框。


Similarly for 3rd picture box.

PictureBox1.Visible = False;
PictureBox2.Visible = False;
PictureBox3.Visible = True;



如果用户输入错误则


If user enters wrongly then

PictureBox1.Visible = False;
PictureBox2.Visible = False;
PictureBox3.Visible = False;
MessageBox.Show("Wrong answer");



希望这对你有所帮助。



问候,

RK


Hope this helps you a bit.

Regards,
RK


这篇关于C#中的图片是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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