Microsoft.Win32.OpenFileDialogopenFileDialog1=newMicrosoft.Win32.OpenFileDialog();openFileDialog1.Filter="(*.cup)|*.cup";if(openFileDialog1.ShowD...
分类:
其他好文 时间:
2014-06-11 21:51:03
阅读次数:
224
首先,程序的界面如下:这里一定要使用OpenFileDialog控件,然后该页面代码如下:using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System....
分类:
其他好文 时间:
2014-06-05 13:22:36
阅读次数:
523
OpenFileDialog openFileDialog = new OpenFileDialog();
//打开的文件选择对话框上的标题
openFileDialog.Title = "请选择文件";
//设置文件类型
openFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件(*.*)|*.*";
//设置默认文件类型显示顺序
openFileDialog...
分类:
其他好文 时间:
2014-06-05 08:25:37
阅读次数:
267
private void btnOpenFileDialog_Click(object sender,
EventArgs e) { OpenFileDialog oFD = new OpenFileDialog(); oFD.Title =...
//c/s 代码 private void button1_Click(object sender,
EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); o...
分类:
Web程序 时间:
2014-05-26 16:15:21
阅读次数:
496
1.上传 1 private void Button_Click_1(object sender,
RoutedEventArgs e) 2 { 3 OpenFileDialog openFileDialog = new OpenFileDialog()
4...
分类:
Web程序 时间:
2014-05-26 08:28:56
阅读次数:
430
相信习惯以前winform开发的朋友们都对FolderBrowserDialog和OpenFileDialog这两个东东不陌生,但是在我最近做的WPF项目中才发现这两个东东在WPF中却不是默认存在的,郁闷,好歹WPF也出来几年了,咋个微软的同志不与时俱进呢。好了,说说具体怎么用吧。OpenFileD...
分类:
其他好文 时间:
2014-05-09 11:38:40
阅读次数:
350
private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog fileDialog1 =
new OpenFileDialog....
分类:
其他好文 时间:
2014-05-08 13:27:26
阅读次数:
229
private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog dlg = new
OpenFileDialog(); if...
分类:
其他好文 时间:
2014-05-07 20:28:32
阅读次数:
295
//图片转化为流保存; Stream ms; byte[] picbyte;
OpenFileDialog open = new OpenFileDialog(); open.Filter = "图片文件(*....
分类:
其他好文 时间:
2014-05-01 15:35:40
阅读次数:
315