紧急!请教一个listView的问题,分不够再加 顶 放两个listview何如 :) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你在控件定位方法中用锚定位试了吗!?namespace Microsoft.Samples.WinForms.Cs.Anchoring { using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; public class Anchoring : System.Windows.Forms.Form { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.Container components; protected internal System.Windows.Forms.Button button1; protected internal System.Windows.Forms.TextBox textBox1; public Anchoring() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); //为 button1 启动事件 button1.Click += new System.EventHandler(button1_Click); this.MinimumSize = new Size(392, (117 + SystemInformation.CaptionHeight)); } /// <summary> /// 清理正在使用的所有资源。 /// </summary> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } /// <summary> /// 设计器支持所必需的方法,不要使用 /// 代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container (); this.button1 = new System.Windows.Forms.Button (); this.textBox1 = new System.Windows.Forms.TextBox (); this.Text = "锚定示例"; this.AutoScaleBaseSize = new System.Drawing.Size (5, 13); this.ClientSize = new System.Drawing.Size (392, 117); button1.Size = new System.Drawing.Size (120, 40); button1.TabIndex = 1; button1.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; button1.Location = new System.Drawing.Point (256, 64); button1.Text = "请单击我!"; textBox1.Location = new System.Drawing.Point (16, 24); textBox1.Text = "Hello Windows Forms World"; textBox1.TabIndex = 0; textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; textBox1.Size = new System.Drawing.Size (360, 20); this.Controls.Add (this.button1); this.Controls.Add (this.textBox1); } private void button1_Click(object sender, System.EventArgs e) { MessageBox.Show("文本是:'" + textBox1.Text + "'"); } /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] public static void Main(string[] args) { Application.Run(new Anchoring()); } }} 恩..用算法把listview中的第1列随你移动而置换成第2,第3列,其他的列相应替换,如何 如果在listview的第一列绑定一个listbox,会不会实现上面的效果? 极度关注!++++++++++++++++++++++++++++++++++++------------------------------------如果想交流,联系 275037227 (qq)衷心感谢 CSDN 的朋友们给我的帮助!------------------------------------抵制日货!!!!!!!!!!!!!!!!!!!!!!!!!------------------------------------++++++++++++++++++++++++++++++++++++ 自定义一个控件,从listView继承,然后,放一个label上去,样式大小设的维妙维肖像一个Item或是Tittle,放在那个地方:我不说你也知道。把它的值同listview第一个值显示的一样,就OK了,哈哈,简单吧. 放两个ListView 呀,第一个ListView 只绑定第一列,第二列就绑定别的 关于C#控件treeView的递归调用问题 菜鸟求助!!!如何遍历DataList控件!!! 请问文本框的TextChanged事件判断输入的字符是否规范? 关于存储过程调用 2008年的奥运会,我们程序员可以做些什么,除了看比赛? VS.net2005中,C#如何用多线程访问用户界面控件? c# OracleParameter问题出在哪里? 上传文件与覆盖文件问题(ASP.NET),请支援!!!! 关于性能问题,大家讨论一下。~~~~~~~~` 如何打开一个已有的excel文件并进行操作? 500分赠送 怎么才能把收到的邮件编码还原 密码框
namespace Microsoft.Samples.WinForms.Cs.Anchoring {
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms; public class Anchoring : System.Windows.Forms.Form {
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components;
protected internal System.Windows.Forms.Button button1;
protected internal System.Windows.Forms.TextBox textBox1; public Anchoring() {
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //为 button1 启动事件
button1.Click += new System.EventHandler(button1_Click); this.MinimumSize = new Size(392, (117 + SystemInformation.CaptionHeight));
} /// <summary>
/// 清理正在使用的所有资源。
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
} /// <summary>
/// 设计器支持所必需的方法,不要使用
/// 代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container ();
this.button1 = new System.Windows.Forms.Button ();
this.textBox1 = new System.Windows.Forms.TextBox ();
this.Text = "锚定示例";
this.AutoScaleBaseSize = new System.Drawing.Size (5, 13);
this.ClientSize = new System.Drawing.Size (392, 117);
button1.Size = new System.Drawing.Size (120, 40);
button1.TabIndex = 1;
button1.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
button1.Location = new System.Drawing.Point (256, 64);
button1.Text = "请单击我!";
textBox1.Location = new System.Drawing.Point (16, 24);
textBox1.Text = "Hello Windows Forms World";
textBox1.TabIndex = 0;
textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBox1.Size = new System.Drawing.Size (360, 20);
this.Controls.Add (this.button1);
this.Controls.Add (this.textBox1);
} private void button1_Click(object sender, System.EventArgs e) {
MessageBox.Show("文本是:'" + textBox1.Text + "'");
} /// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
public static void Main(string[] args) {
Application.Run(new Anchoring());
} }
}
用算法把listview中的第1列随你移动而置换成第2,第3列,其他的列相应替换,如何
------------------------------------
如果想交流,联系 275037227 (qq)
衷心感谢 CSDN 的朋友们给我的帮助!
------------------------------------
抵制日货!!!!!!!!!!!!!!!!!!!!!!!!!
------------------------------------
++++++++++++++++++++++++++++++++++++