C#的题c 新手手求教

C# webservice 发布问题,另请教DevExpress控件相关使用技巧的资料的网站
我是新手,最近做项目时遇上需要发布WebService,据说是将其变成静态的,即网页的形式,但我将其发布到localhost时,用C#发布的话如果不手动做任何改动,(别人发布出来的结果很自然的asmx文件在根位置,而相应的asmx.cs就放到app_code下去了),始终不能改成别人发布出来的asmx写连接文件,app_code下放相应代码文件,请问这是如果做到的,看了好多资料都找不到这种方法
始终不能改成别人发布出来的asmx写连接文件?不明白是什么意思。 webservice地址是写在配置文件中的。发布的时候只需要修改配置文件即可改变asmx的路径
DevExpress请到DevExpress自己的网站去找资料
已标记为答案
取消答案标记
已建议为答案
已标记为答案
在VS2005 sp版本之前 建立网站项目默认可以将后台代码cs文件放置于App_Code下;之后的版本一般我们是建立WebApplication 生成dll 位于bin下面。
不知道你是否是这个意思。
另外我之前又遇到过某个版本VS开发WebService的bug,直接修改配置文件Web service地址不行的,必须修改URI属性或者直接将其地址属性修改为配置的方式。在之后的版本没有出现过此问题;你需要留意你的配置文件的格式。
DevExpress请到其对应官方网站提问,谢谢。
Raymond Tang (Microsoft C# MVP)
Denn Ich Gehoer nur mir
.NET交流群
微软中文论坛同城社区成都QQ群:
Chengdu,Sichuan Province,China
已标记为答案
始终不能改成别人发布出来的asmx写连接文件?不明白是什么意思。 webservice地址是写在配置文件中的。发布的时候只需要修改配置文件即可改变asmx的路径
DevExpress请到DevExpress自己的网站去找资料
已标记为答案
取消答案标记
已建议为答案
已标记为答案
在VS2005 sp版本之前 建立网站项目默认可以将后台代码cs文件放置于App_Code下;之后的版本一般我们是建立WebApplication 生成dll 位于bin下面。
不知道你是否是这个意思。
另外我之前又遇到过某个版本VS开发WebService的bug,直接修改配置文件Web service地址不行的,必须修改URI属性或者直接将其地址属性修改为配置的方式。在之后的版本没有出现过此问题;你需要留意你的配置文件的格式。
DevExpress请到其对应官方网站提问,谢谢。
Raymond Tang (Microsoft C# MVP)
Denn Ich Gehoer nur mir
.NET交流群
微软中文论坛同城社区成都QQ群:
Chengdu,Sichuan Province,China
已标记为答案
Microsoft 正在进行一项网上调查,以了解您对 Msdn 网站的意见。如果您选择参加,我们将会在您离开 Msdn 网站时向您显示该网上调查。是否要参加?
<input type="hidden" id="hdnTrackerText" value="请不要关闭此窗口。谢谢!完成访问时,调查将显示在此处,所以请不要关闭此窗口。" />
其他 Office 网站当前位置: >
> 有劳各位,求C#如何编程获取Exchange邮件问题,谢谢如题,我是新手,刚接触.NET就要进行编
有劳各位,求C#如何编程获取Exchange邮件问题,谢谢如题,我是新手,刚接触.NET就要进行编
有劳各位,求C#如何编程获取Exchange邮件问题,谢谢!如题,我是新手,刚接触.NET就要进行编程,做上面这个东西,好多地方都还没有入门,不知如何下手,请指点一二。
/// 获得一个用户指定文件夹中的所有邮件
&/summary&
&param name= &username && 用户名 &/param&
&param name= &domain && 域名 &/param&
&param name= &folder && 文件夹 &/param&
&param name= &password && 密码 &/param&
&/returns&
public static ArrayList GetMessage(string username,string domain,string folder,string password)
ArrayList messagelist=new ArrayList();
ExchangeHelper.ExchangeHelper helper=new ExchangeHelper.ExchangeHelper();
ADODB.RecordsetClass
aRS = new ADODB.RecordsetClass();
ADODB.Connection aC
string strurl = String.Format( @ &file://./backofficestorage/{0}/mbx/{1}/{2}/ &,domain,username,folder);
aConn = helper.GetConnection(strurl,username,password);
if (aConn == null)
//以上部分完成了打开某收件人邮箱的功能
string strQ= & &;
strQ = strQ +
& \ &urn:schemas:mailheader:thread-topic\ & &; //标题
strQ = strQ +
&, \ &urn:schemas:httpmail:displayto\ & &; //收件人姓名
strQ = strQ +
&, \ &urn:schemas:httpmail:displaycc\ & &; //抄送
strQ = strQ +
&, \ &urn:schemas:httpmail:thread-topic\ & &;
strQ = strQ +
&, \ &urn:schemas:httpmail:priority\ & & ;//级别
strQ = strQ +
&, \ &urn:schemas:httpmail:importance\ & & ; //级别
strQ = strQ +
&, \ &urn:schemas:mailheader:message-id\ & &;
strQ = strQ +
&, \ &urn:schemas:httpmail:htmldescription\ & &;//邮件的内容
strQ = strQ +
&, \ &urn:schemas:httpmail:subject\ & &;
strQ = strQ +
&, \ &urn:schemas:httpmail:sendername\ & &;
strQ = strQ +
&, \ &urn:schemas:mailheader:received\ & &; //收件日期
strQ = strQ +
&, \ &DAV:contentclass\ & &;
//项目资源的内容类别
strQ = strQ +
&, \ &DAV:displayname\ & &;
//项目资源在web存储系统中的名称
strQ = strQ +
&, \ &DAV:id\ & &;
//(相当于关系数据库中的主键)
strQ = strQ +
&, \ &DAV:href\ & &; //项目资源的完整url
strQ = strQ +
& from scope ( &#39;shallow traversal of
& ;// &#39;使用何种搜索方式
strQ = strQ +
&\ & &+ strurl
&\ & &#39;)
strQ = strQ +
\ &DAV:contentclass\ &= &#39;urn:content-classes:message &#39; &;//message 是电子邮件消息或公共文件夹投寄
//以上为查询邮件主要内容的SQL语句,不要用Select *,因为这样会很慢的!
aRS.Open(strQ ,aConn,ADODB.CursorTypeEnum.adOpenForwardOnly,ADODB.LockTypeEnum.adLockReadOnly,0);
while(!aRS.EOF)
string id=aRS.Fields[ &DAV:id &].Value.ToString();
string strmsgurl=aRS.Fields[ &DAV:href &].Value.ToString();
string contentclass=aRS.Fields[ &DAV:contentclass &].Value.ToString();
CDO.IMessage
cMsg=new CDO.MessageClass();
cMsg=helper.ReadEmail(aRS.ActiveConnection as ADODB.Connection,strmsgurl);
messagelist.Add(cMsg);
//string cc=cMsg.HTMLB
//cMsg.GetStream().SaveToFile(@ &d:\saf.eml &,ADODB.SaveOptionsEnum.adSaveCreateOverWrite);
catch(Exception ex)
string bb=ex.M
aRS.MoveNext();
&#39;读取一个指定的邮件
Public Function ReadEmail(ByVal con As ADODB.Connection, ByVal url As String) As CDO.Messagemm142536 & &
& & (0)(0)
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&&&湘教QS2-164&&增值电信业务经营许可证湘B2-新手求:c#中如何使用Pow()方法
[问题点数:10分,结帖人ily5242]
新手求:c#中如何使用Pow()方法
[问题点数:10分,结帖人ily5242]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关帖子推荐:
2008年9月 .NET技术大版内专家分月排行榜第一
2008年10月 .NET技术大版内专家分月排行榜第一
2008年9月 .NET技术大版内专家分月排行榜第二
2008年10月 .NET技术大版内专家分月排行榜第一
2008年9月 .NET技术大版内专家分月排行榜第二
本帖子已过去太久远了,不再提供回复功能。&&问题点数:0&&回复次数:10&&&
请教一个C#窗体打开图片问题
界面如图所示,下拉菜单可以选择一个只含图片的文件夹,然后图片小图依次在小框中显示,并可通过拖动条改变,选择某个小框,该图片在上面的大框中显示&&本人刚学C#不是很懂 各位可否给个小例&&万分感谢
附件: 只有本站会员才能下载或查看附件,请
搜索更多相关主题的帖子:
等 级:贵宾
威 望:13
帖 子:189
专家分:1090
你这个要求有点大,要花点时间,但念在你是初学,还是写一个给你吧,还望他日学成之后能多多帮助别人~~!
先看图,基本按你的要求
一、这里为了方便示例我增加了一个“文件夹”按钮,其余和你要求的相同,这个按钮的作用是点击后弹出一个FolderBrowserDialog供选择文件夹,选定一个文件夹后在这个文件夹及其子文件夹中查找是否有图片文件,放置有图片文件的文件夹将被添加到ComboBox中以供下一步选择;
二、在ComboBox中选择文件夹,然后点击“载入图片”按钮将选定文件夹中的图片生成缩略图并在缩略图区域的各个PictureBox中显示,载入的数量不超过缩略图区PictureBox的数量;
三、点击缩略图将从文件中载入相应的原图显示在最上方的PictureBox中;
四、最下方的HScrollBar在载入缩略图后确定其Maximum值,拖动可以变更缩略图显示的范围;
五、缩略图区域PictureBox的数量由缩略图PictureBox控件所占区域大小和应用程序窗体宽度决定,窗体宽度的变更可以导致缩略图PictureBox的数量减少或增加,缩略图PictureBox的数量增加后可以显示更多的之前未能显示出来的图片(假如有的话,如果没有则不显示任何东西);
六、作为一个例子,这里展示了Windows窗体控件的动态使用、事件处理、Linq、图片缩略图的获取、类的扩展等一点知识,这些都是很基本的东西,希望你能掌握;
七、代码里面我没有添加任何注释,这样做不是希望你看不懂,恰恰相反,我是希望你能深刻理解这些代码,直接看到注释知道代码的功能显然不能给你留下深刻的印象,下次要用的时候不一定写得出来,实在没办法理解你再问吧,到时我再标上去;
八、仓促写成,仅为了示例,没有进行错误处理等。另如有错漏之处,还望指正!
下面是代码:
FormMain.cs
程序代码:using S
using System.Collections.G
using System.D
using System.IO;
using System.L
using System.Windows.F
namespace ImageViewDemo
&&& public partial class FormMain : Form
&&&&&&&&#region 只读全局字段
&&&&&&&&private readonly List&PictureBox&&&&_pictureB //用来存放缩略图PictureBox控件的集合
&&&&&&&&private readonly int&&&&&&&&&&&&&&& _thumbPictureBoxH //缩略图PictureBox的高度,用于生成缩略图
&&&&&&&&private readonly int&&&&&&&&&&&&&&& _thumbPictureBoxW //缩略图PictureBox的宽度,用于生成缩略图
&&&&&&&&private readonly int&&&&&&&&&&&&&&& _regionWidthPerThumbPictureB //缩略图PictureBox在界面上占用的宽度,用于计算是否需要添加或减少缩略图PuctureBox
&&&&&&&&#endregion
&&&&&&&&#region 构造函数
&&&&&&&&public FormMain()
&&&&&&&&&&&&InitializeComponent();
&&&&&&&&&&&&_pictureBoxs = new List&PictureBox&(); //初始化集合
&&&&&&&&&&&&//循环将Flp中的所有类型为PicutreBox的控件添加进集合并设置PicutreBox鼠标点击时的处理程序
&&&&&&&&&&&&foreach (var pictureBox in Flp.Controls.OfType&PictureBox&())
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& _pictureBoxs.Add(pictureBox);
&&&&&&&&&&&&&&& pictureBox.Click += ThumbPictureBox_C
&&&&&&&&&&&&}
&&&&&&&&&&&&_thumbPictureBoxHeight&&&&&&&&&= _pictureBoxs[<font color=#].H
&&&&&&&&&&&&_thumbPictureBoxWidth&&&&&&&&& = _pictureBoxs[<font color=#].W
&&&&&&&&&&&&_regionWidthPerThumbPictureBox = _thumbPictureBoxWidth + _pictureBoxs[<font color=#].Margin.Left + _pictureBoxs[<font color=#].Margin.R
&&&&&&&&#endregion
&&&&&&&&#region 控件事件
&&&&&&&&private void ButBrowser_Click(object sender, EventArgs e)
&&&&&&&&&&&&//打开一个目录选择对话框选择目录
&&&&&&&&&&&&var fbd = new FolderBrowserDialog { ShowNewFolderButton = true };
&&&&&&&&&&&&if (fbd.ShowDialog() != DialogResult.OK) return;
&&&&&&&&&&&&CobFolders.Items.Clear();
&&&&&&&&&&&&//获取选定目录及其所有子文件夹中包含有指定类型图片的文件夹并将其路径添加进CobFolders
&&&&&&&&&&&&foreach (var directory in GetDirectoriesIncludeImage(fbd.SelectedPath))
&&&&&&&&&&&&&&& CobFolders.Items.Add(directory);
&&&&&&&&private void ButLoad_Click(object sender, EventArgs e)
&&&&&&&&&&&&if (CobFolders.SelectedIndex == -<font color=#) return; //当前没有任何路径则退出
&&&&&&&&&&&&var files&&&= CobFolders.Text.GetImageFiles(); //获取CobFolders当前选择路径中所有的图片文件路径数组
&&&&&&&&&&&&Hsb.Tag&&&&&= //将获得的文件路径数组保存到Hsb中
&&&&&&&&&&&&Hsb.Maximum = files.Count - <font color=#; //设置滚动栏最大滚动范围
&&&&&&&&&&&&Hsb.Value&&&= <font color=#; //重置滚动栏初始位置
&&&&&&&&&&&&LoadThumbil(); //载入缩略图显示在缩略图PictureBox中
&&&&&&&&//当窗体宽度改变时,确定是否需要增加或减少缩略图PictureBox的数量,需要则增加或减少
&&&&&&&&private void Flp_SizeChanged(object sender, EventArgs e)
&&&&&&&&&&&&var thumbPictureBoxCount = (int)Math.Floor((double)Flp.Width / _regionWidthPerThumbPictureBox);//计算当前的宽度能够容纳多少个缩略图PictureBox
&&&&&&&&&&&&var files = (List&string&) Hsb.T
&&&&&&&&&&&&if (thumbPictureBoxCount & _pictureBoxs.Count)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& //如果能容纳的缩略图PictureBox数量大于现有的缩略图PictureBox的数量则添加缩略图PictureBox
&&&&&&&&&&&&&&& var lastThumbPictureBox = _pictureBoxs[_pictureBoxs.Count - <font color=#]; //获取当前最后一个缩略图PictureBox
&&&&&&&&&&&&&&& //应该增加的缩略图PictureBox的数量是可容纳数量-现有数量,就循环这么多次进行添加
&&&&&&&&&&&&&&& for (var i = <font color=#; i & thumbPictureBoxCount - _pictureBoxs.C i++)
&&&&&&&&&&&&&&& {
&&&&&&&&&&&&&&&&&&&&var thumbPictureBox = new PictureBox { Width = _thumbPictureBoxWidth, Height = _thumbPictureBoxHeight }; //创建PictureBox的实例并设置宽高
&&&&&&&&&&&&&&&&&&&&_pictureBoxs.Add(thumbPictureBox); //添加进数组
&&&&&&&&&&&&&&&&&&&&Flp.Controls.Add(thumbPictureBox); //添加到父容器
&&&&&&&&&&&&&&&&&&&&thumbPictureBox.Click += ThumbPictureBox_C //指定鼠标点击处理事件
&&&&&&&&&&&&&&&&&&&&if (lastThumbPictureBox.Tag == null) continue; //如果当前最后一个缩略图PictureBox的Tag为Null说明所有的图片已全部显示了,则继续添加
&&&&&&&&&&&&&&&&&&&&var pictureBoxFileIndex = (int)lastThumbPictureBox.T //取当前最后一个缩略图的索引值
&&&&&&&&&&&&&&&&&&&&pictureBoxFileIndex++;
&&&&&&&&&&&&&&&&&&&&if (pictureBoxFileIndex &= files.Count) continue; //如果索引值大于文件数量则也不用生成缩略图
&&&&&&&&&&&&&&&&&&&&thumbPictureBox.Tag = pictureBoxFileI //将索引值保存到缩略图PictureBox的Tag属性以便鼠标点击时使用
&&&&&&&&&&&&&&&&&&&&LoadThumbImageToThumbPictureBox(thumbPictureBox, files[pictureBoxFileIndex]); //生成缩略图并显示在刚添加的这个缩略图PictureBox中
&&&&&&&&&&&&&&& }
&&&&&&&&&&&&}
&&&&&&&&&&&&else if (thumbPictureBoxCount & _pictureBoxs.Count)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& //如果能容纳的缩略图PictureBox数量小于现有的缩略图PictureBox的数量则减少缩略图PictureBox的数量
&&&&&&&&&&&&&&& for (var i = <font color=#; i & _pictureBoxs.Count - thumbPictureBoxC i++)
&&&&&&&&&&&&&&& {
&&&&&&&&&&&&&&&&&&&&_pictureBoxs.RemoveAt(_pictureBoxs.Count - <font color=#);//在数组中移除缩略图PictureBox
&&&&&&&&&&&&&&&&&&&&Flp.Controls.RemoveAt(Flp.Controls.Count - <font color=#);//在父容器中移除缩略图PictureBox
&&&&&&&&&&&&&&& }
&&&&&&&&&&&&}
&&&&&&&&&&&&else return; //如果可容纳的缩略图PictureBox的数量等于现有的缩略图PictureBox的数量则直接退出
&&&&&&&&&&&&Hsb.LargeChange = _pictureBoxs.C //缩略图PictureBox的数量改变后要设置滚动栏的LargeChange值以反映变化
&&&&&&&&//滚动栏Value改变时要更新缩略图区域
&&&&&&&&private void Hsb_ValueChanged(object sender, EventArgs e)
&&&&&&&&&&&&var files = (List&string&) Hsb.T
&&&&&&&&&&&&var value = Hsb.V
&&&&&&&&&&&&//根据滚动栏Value的值生成每个缩略图并更新每个缩略图PictureBox的图片索引值
&&&&&&&&&&&&for (var i = <font color=#; i & _pictureBoxs.C i++)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& LoadThumbImageToThumbPictureBox(_pictureBoxs[i], files[i + value]);
&&&&&&&&&&&&&&& _pictureBoxs[i].Tag = i +
&&&&&&&&&&&&}
&&&&&&&&//鼠标点击缩略图PictureBox时在上面大图显示原图
&&&&&&&&void ThumbPictureBox_Click(object sender, EventArgs e)
&&&&&&&&&&&&var thumbPictureBox = (PictureBox)
&&&&&&&&&&&&if (thumbPictureBox.Tag == null) return;
&&&&&&&&&&&&Pb.Image = Image.FromFile(((List&string&)Hsb.Tag)[(int)thumbPictureBox.Tag]);
&&&&&&&&#endregion
&&&&&&&&#region 私有方法
&&&&&&&&//载入现有缩略图PictureBox数量的图片生成缩略图显示出来
&&&&&&&&private void LoadThumbil()
&&&&&&&&&&&&var files = (List&string&) Hsb.T
&&&&&&&&&&&&for (var i = <font color=#; i & _pictureBoxs.C i++)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& _pictureBoxs[i].Image = null;
&&&&&&&&&&&&&&& if (i &= files.Count) continue;
&&&&&&&&&&&&&&& LoadThumbImageToThumbPictureBox(_pictureBoxs[i], files[i]);
&&&&&&&&&&&&&&& _pictureBoxs[i].Tag =
&&&&&&&&&&&&}
&&&&&&&&//从指定路径的图片生成缩略图显示在指定的缩略图PictureBox中
&&&&&&&&private void LoadThumbImageToThumbPictureBox(PictureBox pictureBox, string filePath)
&&&&&&&&&&&&var image = Image.FromFile(filePath); //载入原图
&&&&&&&&&&&&var imageRatio = (double)image.Width / image.H//获取图片宽高比
&&&&&&&&&&&&int thumbHeight, thumbW
&&&&&&&&&&&&if (imageRatio &= <font color=#)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& //如果宽高比大于等于1,说明是横式图片,那么缩略图的最大宽度等于缩略图PictureBox的宽度,当然现在默认的缩略图PictureBox是竖式的,实际使用中如果是横式的则不是这样处理,要反过来
&&&&&&&&&&&&&&& thumbWidth = _thumbPictureBoxW
&&&&&&&&&&&&&&& thumbHeight = (int)Math.Floor((double)thumbWidth / image.Width * image.Height); //根据缩略图宽度按比例得到缩略图高度,这样就不会变形
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& ////如果宽高比小于1,说明是竖式图片,那么缩略图的最大高度等于缩略图PictureBox的高度,实际使用中还是要和PictureBox的比例进行比较的,我这里只是个例子,不做严格处理,但你要明白我这里是不太严谨的
&&&&&&&&&&&&&&& thumbHeight = _thumbPictureBoxH
&&&&&&&&&&&&&&& thumbWidth = (int)Math.Floor((double)thumbHeight / image.Height * image.Width);
&&&&&&&&&&&&}
&&&&&&&&&&&&pictureBox.Image = image.GetThumbnailImage(thumbWidth, thumbHeight, null, IntPtr.Zero); //生成缩略图
&&&&&&&&#endregion
&&&&&&&&#region 静态私有方法
&&&&&&&&//在指定目录及其所有子目录下查找所有包含指定类型图片的文件夹
&&&&&&&&private static IEnumerable&string& GetDirectoriesIncludeImage(string directory)
&&&&&&&&&&&&var result = new List&string&();
&&&&&&&&&&&&if (directory.DirectoryHasImageFile()) result.Add(directory);
&&&&&&&&&&&&var directories = Directory.GetDirectories(directory, &*&, SearchOption.AllDirectories);
&&&&&&&&&&&&foreach (var dir in directories)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& if (!dir.DirectoryHasImageFile()) continue;
&&&&&&&&&&&&&&& result.Add(dir);
&&&&&&&&&&&&}
&&&&&&&&&&&&return
&&&&&&&&#endregion
&&& public static class StringExtension
&&&&&&&&private static readonly string[] extensions = new[] { &*.jpg&, &*.png&, &*.tif&, &*.bmp&, &*.gif&, &*.wmf& };
&&&&&&&&#region 类扩展方法
&&&&&&&&//定义string类的扩展方法以判断此字符串实例所表示的目录下(不包括其子目录)是否存在有指定类型的图片文件
&&&&&&&&public static bool DirectoryHasImageFile(this string directory)
&&&&&&&&&&&&var result = false;
&&&&&&&&&&&&//循环取每种类型图片的文件
&&&&&&&&&&&&foreach (var extension in extensions)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&& result = Directory.GetFiles(directory, extension, SearchOption.TopDirectoryOnly).Any();
&&&&&&&&&&&&&&& if (!result) continue;
&&&&&&&&&&&&&&& break;
&&&&&&&&&&&&}
&&&&&&&&&&&&return
&&&&&&&&//定义string类的扩展方法以在此字符串实例所表示的目录下(不包括其子目录)获取指定类型的图片文件的路径集合
&&&&&&&&public static List&string& GetImageFiles(this string directory)
&&&&&&&&&&&&var result = new List&string&();
&&&&&&&&&&&&//循环取每种类型图片的文件加入结果集合
&&&&&&&&&&&&foreach (var extension in extensions)
&&&&&&&&&&&&&&& result.AddRange(Directory.GetFiles(directory, string.Concat(&*&, extension), SearchOption.TopDirectoryOnly));
&&&&&&&&&&&&return
&&&&&&&&#endregion
FormMain.Designer.cs
程序代码:namespace ImageViewDemo
&&& partial class FormMain
&&&&&&&&private ponentModel.IContainer components = null;
&&&&&&&&protected override void Dispose(bool disposing)
&&&&&&&&&&&&if (disposing && (components != null)) components.Dispose();
&&&&&&&&&&&&base.Dispose(disposing);
&&&&&&&&private void InitializeComponent()
&&&&&&&&&&&&this.Pb = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.CobFolders = new System.boBox();
&&&&&&&&&&&&this.ButLoad = new System.Windows.Forms.Button();
&&&&&&&&&&&&this.Flp = new System.Windows.Forms.FlowLayoutPanel();
&&&&&&&&&&&&this.pictureBox1 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.pictureBox2 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.pictureBox3 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.pictureBox4 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.pictureBox5 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.pictureBox6 = new System.Windows.Forms.PictureBox();
&&&&&&&&&&&&this.Hsb = new System.Windows.Forms.HScrollBar();
&&&&&&&&&&&&this.ButBrowser = new System.Windows.Forms.Button();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.Pb)).BeginInit();
&&&&&&&&&&&&this.Flp.SuspendLayout();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
&&&&&&&&&&&&this.SuspendLayout();
&&&&&&&&&&&&this.Pb.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
&&&&&&&&&&&&&&&&&&&&| System.Windows.Forms.AnchorStyles.Left)
&&&&&&&&&&&&&&&&&& | System.Windows.Forms.AnchorStyles.Right)));
&&&&&&&&&&&&this.Pb.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.Pb.Name = &Pb&;
&&&&&&&&&&&&this.Pb.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.Pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Z
&&&&&&&&&&&&this.Pb.TabIndex = <font color=#;
&&&&&&&&&&&&this.Pb.TabStop = false;
&&&&&&&&&&&&this.CobFolders.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
&&&&&&&&&&&&&&&&&& | System.Windows.Forms.AnchorStyles.Right)));
&&&&&&&&&&&&this.CobFolders.FormattingEnabled = true;
&&&&&&&&&&&&this.CobFolders.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.CobFolders.Name = &CobFolders&;
&&&&&&&&&&&&this.CobFolders.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.CobFolders.TabIndex = <font color=#;
&&&&&&&&&&&&this.ButLoad.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
&&&&&&&&&&&&this.ButLoad.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.ButLoad.Name = &ButLoad&;
&&&&&&&&&&&&this.ButLoad.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.ButLoad.TabIndex = <font color=#;
&&&&&&&&&&&&this.ButLoad.Text = &载入图片(&L)&;
&&&&&&&&&&&&this.ButLoad.UseVisualStyleBackColor = true;
&&&&&&&&&&&&this.ButLoad.Click += new System.EventHandler(this.ButLoad_Click);
&&&&&&&&&&&&this.Flp.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
&&&&&&&&&&&&&&&&&& | System.Windows.Forms.AnchorStyles.Right)));
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox1);
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox2);
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox3);
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox4);
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox5);
&&&&&&&&&&&&this.Flp.Controls.Add(this.pictureBox6);
&&&&&&&&&&&&this.Flp.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.Flp.Name = &Flp&;
&&&&&&&&&&&&this.Flp.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.Flp.TabIndex = <font color=#;
&&&&&&&&&&&&this.Flp.WrapContents = false;
&&&&&&&&&&&&this.Flp.SizeChanged += new System.EventHandler(this.Flp_SizeChanged);
&&&&&&&&&&&&this.pictureBox1.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox1.Name = &pictureBox1&;
&&&&&&&&&&&&this.pictureBox1.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox1.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox1.TabStop = false;
&&&&&&&&&&&&this.pictureBox2.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox2.Name = &pictureBox2&;
&&&&&&&&&&&&this.pictureBox2.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox2.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox2.TabStop = false;
&&&&&&&&&&&&this.pictureBox3.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox3.Name = &pictureBox3&;
&&&&&&&&&&&&this.pictureBox3.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox3.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox3.TabStop = false;
&&&&&&&&&&&&this.pictureBox4.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox4.Name = &pictureBox4&;
&&&&&&&&&&&&this.pictureBox4.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox4.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox4.TabStop = false;
&&&&&&&&&&&&this.pictureBox5.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox5.Name = &pictureBox5&;
&&&&&&&&&&&&this.pictureBox5.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox5.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox5.TabStop = false;
&&&&&&&&&&&&this.pictureBox6.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox6.Name = &pictureBox6&;
&&&&&&&&&&&&this.pictureBox6.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.pictureBox6.TabIndex = <font color=#;
&&&&&&&&&&&&this.pictureBox6.TabStop = false;
&&&&&&&&&&&&this.Hsb.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
&&&&&&&&&&&&&&&&&& | System.Windows.Forms.AnchorStyles.Right)));
&&&&&&&&&&&&this.Hsb.LargeChange = <font color=#;
&&&&&&&&&&&&this.Hsb.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.Hsb.Maximum = <font color=#;
&&&&&&&&&&&&this.Hsb.Name = &Hsb&;
&&&&&&&&&&&&this.Hsb.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.Hsb.TabIndex = <font color=#;
&&&&&&&&&&&&this.Hsb.ValueChanged += new System.EventHandler(this.Hsb_ValueChanged);
&&&&&&&&&&&&this.ButBrowser.Anchor =
&&&&&&&&&&&&&&& ((System.Windows.Forms.AnchorStyles)
&&&&&&&&&&&&&&&&&((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
&&&&&&&&&&&&this.ButBrowser.Location = new System.Drawing.Point(<font color=#, <font color=#);
&&&&&&&&&&&&this.ButBrowser.Name = &ButBrowser&;
&&&&&&&&&&&&this.ButBrowser.Size = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.ButBrowser.TabIndex = <font color=#;
&&&&&&&&&&&&this.ButBrowser.Text = &文件夹(&F)...&;
&&&&&&&&&&&&this.ButBrowser.UseVisualStyleBackColor = true;
&&&&&&&&&&&&this.ButBrowser.Click += new System.EventHandler(this.ButBrowser_Click);
&&&&&&&&&&&&this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
&&&&&&&&&&&&this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.F
&&&&&&&&&&&&this.ClientSize = new System.Drawing.Size(<font color=#, <font color=#);
&&&&&&&&&&&&this.Controls.Add(this.ButBrowser);
&&&&&&&&&&&&this.Controls.Add(this.Hsb);
&&&&&&&&&&&&this.Controls.Add(this.Flp);
&&&&&&&&&&&&this.Controls.Add(this.ButLoad);
&&&&&&&&&&&&this.Controls.Add(this.CobFolders);
&&&&&&&&&&&&this.Controls.Add(this.Pb);
&&&&&&&&&&&&this.Name = &FormMain&;
&&&&&&&&&&&&this.ShowIcon = false;
&&&&&&&&&&&&this.Text = &Image Viewer Demo by mmxo&;
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.Pb)).EndInit();
&&&&&&&&&&&&this.Flp.ResumeLayout(false);
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
&&&&&&&&&&&&((ponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
&&&&&&&&&&&&this.ResumeLayout(false);
&&&&&&&&private System.Windows.Forms.PictureBox Pb;
&&&&&&&&private System.boBox CobF
&&&&&&&&private System.Windows.Forms.Button ButL
&&&&&&&&private System.Windows.Forms.FlowLayoutPanel F
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox1;
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox2;
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox3;
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox4;
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox5;
&&&&&&&&private System.Windows.Forms.PictureBox pictureBox6;
&&&&&&&&private System.Windows.Forms.HScrollBar H
&&&&&&&&private System.Windows.Forms.Button ButB
[ 本帖最后由 mmxo 于
22:07 编辑 ]
附件: 只有本站会员才能下载或查看附件,请
为提高中华编程水平而奋斗
等 级:新手上路
回复 2楼 mmxo
万分感谢 我自己昨晚也研究了半夜 希望自己以后可以自己解决所有问题&&谢谢啦
等 级:新手上路
回复 2楼 mmxo
实在不好意思 能把代码稍稍注释下么?还有对于初学者 怎样才能快速提高c#编程能力 需要看哪些书或练习?万分感谢
等 级:贵宾
威 望:13
帖 子:189
专家分:1090
注释已加,表达能力有限,看不懂请多包涵,快速提高C#能力的话就一句“逢山开道,遇河架桥”,任何书或者练习只要是里面有你没有掌握的你都应学习之,过程对一般人来说比较痛苦,除非你是有瘾的那一种,那你就会觉得十分快乐!
为提高中华编程水平而奋斗
等 级:新手上路
回复 5楼 mmxo
你好 我不知是我自己理解错了还是操作错了,运行之后窗体中没有任何控件 甚至连名字都不显示&&很抱歉不断麻烦您
附件: 只有本站会员才能下载或查看附件,请
等 级:贵宾
威 望:13
帖 子:189
专家分:1090
这个我这里经过测试是没有问题的,一般我给出的例子除非那种几句代码的以外我都是经过测试才敢给你们的,实在不行你就自己建UI咯,把控件改名字,然后用FormMain.cs的代码,实在还是不行那我就没办法了,只有等到你学会抄代码了以后再来看了,哈哈!
为提高中华编程水平而奋斗
等 级:新手上路
回复 7楼 mmxo
其实我就是自己建的 我再多学学吧 谢谢版主了
来 自:杭州大帝国
等 级:论坛游民
专家分:20
cobfolders 是指combobox吗
前世不修 今世编程
等 级:贵宾
威 望:13
帖 子:189
专家分:1090
为提高中华编程水平而奋斗
版权所有,并保留所有权利。
Powered by , Processed in 0.037481 second(s), 8 queries.
Copyright&, BCCN.NET, All Rights Reserved

我要回帖

更多关于 烧烤鸡腿怎么串的求教 的文章

 

随机推荐