标题:求组,我的毕业设计,下面不会做了 大家帮帮忙
只看楼主
ly1016_why
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-4-29
 问题点数:0 回复次数:19 
求组,我的毕业设计,下面不会做了 大家帮帮忙
下面是我的全部代码,基本模式就是这样,但内部功能我不会做,大家帮个忙
using System;
using System.Drawing;
using System.Collections;
using
using System.Windows.Forms;
using System.Data;

namespace LY
{
    /// <summary>
    /// Form1 的摘要说明。
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    {
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.DateTimePicker dateTimePicker1;
        private System.Windows. comboBox1;
        private System.Windows. comboBox2;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.ToolBar toolBar1;
        private System.Windows.Forms.ToolBarButton toolBarButton1;
        private System.Windows.Forms.ToolBarButton toolBarButton2;
        private System.Windows.Forms.ToolBarButton toolBarButton3;
        private System.Windows.Forms.ToolBarButton toolBarButton4;
        private System.Windows.Forms.ToolBarButton toolBarButton5;
        private System.Windows.Forms.ToolBarButton toolBarButton6;
        private System.Windows.Forms.ToolBarButton toolBarButton7;
        private System.Windows.Forms.ToolBarButton toolBarButton9;
        private System.Windows.Forms.RichTextBox richTextBox1;
        private System.Windows.Forms.FontDialog fontDialog1;
        private System.Windows.Forms.ColorDialog colorDialog1;
        private System.Windows.Forms.ImageList imageList1;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPage1;
        private System.Windows.Forms.TabPage tabPage2;
        private System.Windows.Forms.TabPage tabPage3;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.TextBox textBox2;
        private System.Windows. comboBox3;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.ListView listView1;
        private System.Data.DataView dataView1;
        private components;

        public Form1()
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();

            //
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            //
        }

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows 窗体设计器生成的代码
        /// <summary>
        /// 设计器支持所需的方法 - 不要使用代码编辑器修改
        /// 此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
             = new ();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.listView1 = new System.Windows.Forms.ListView();
            this.button2 = new System.Windows.Forms.Button();
             = new System.Windows.();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.richTextBox1 = new System.Windows.Forms.RichTextBox();
            this.toolBar1 = new System.Windows.Forms.ToolBar();
            this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
            this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
            this.button1 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
             = new System.Windows.();
             = new System.Windows.();
            this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.fontDialog1 = new System.Windows.Forms.FontDialog();
            this.colorDialog1 = new System.Windows.Forms.ColorDialog();
            this.imageList1 = new System.Windows.Forms.ImageList();
            this.dataView1 = new System.Data.DataView();
            this.groupBox1.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            (()(this.dataView1)).BeginInit();
            this.SuspendLayout();
            //
            // groupBox1
            //
            this.groupBox1.Controls.Add(this.tabControl1);
            this.groupBox1.Location = new System.Drawing.Point(440, 8);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(296, 472);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "检索";
            //
            // tabControl1
            //
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Location = new System.Drawing.Point(8, 32);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(280, 432);
            this.tabControl1.TabIndex = 0;
            //
            // tabPage1
            //
            this.tabPage1.Controls.Add(this.listView1);
            this.tabPage1.Controls.Add(this.button2);
            this.tabPage1.Controls.Add();
            this.tabPage1.Controls.Add(this.textBox2);
            this.tabPage1.Controls.Add(this.label6);
            this.tabPage1.Controls.Add(this.label5);
            this.tabPage1.Location = new System.Drawing.Point(4, 21);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Size = new System.Drawing.Size(272, 407);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "条件检索";
            //
            // listView1
            //
            this.listView1.Location = new System.Drawing.Point(16, 104);
            this.listView1.Name = "listView1";
            this.listView1.Size = new System.Drawing.Size(224, 248);
            this.listView1.TabIndex = 5;
            this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
            //
            // button2
            //
            this.button2.Location = new System.Drawing.Point(144, 56);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(80, 24);
            this.button2.TabIndex = 4;
            this.button2.Text = "检索";
            //
            // comboBox3
            //
            (new object[] {
                                                           "开心",
                                                           "郁闷",
                                                           "一般"});
             = new System.Drawing.Point(48, 56);
             = "comboBox3";
             = new System.Drawing.Size(64, 20);
             = 3;
            //
            // textBox2
            //
            this.textBox2.Location = new System.Drawing.Point(48, 24);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(200, 21);
            this.textBox2.TabIndex = 2;
            this.textBox2.Text = "";
            //
            // label6
            //
            this.label6.Location = new System.Drawing.Point(8, 56);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(32, 24);
            this.label6.TabIndex = 1;
            this.label6.Text = "心情";
            //
            // label5
            //
            this.label5.Location = new System.Drawing.Point(8, 16);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(40, 24);
            this.label5.TabIndex = 0;
            this.label5.Text = "标题";
            //
            // tabPage2
            //
            this.tabPage2.Location = new System.Drawing.Point(4, 21);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Size = new System.Drawing.Size(272, 407);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "最近一周";
            //
            // tabPage3
            //
            this.tabPage3.Location = new System.Drawing.Point(4, 21);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(272, 407);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "最近一月";
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.richTextBox1);
            this.groupBox2.Controls.Add(this.toolBar1);
            this.groupBox2.Controls.Add(this.button1);
            this.groupBox2.Controls.Add(this.textBox1);
            this.groupBox2.Controls.Add();
            this.groupBox2.Controls.Add();
            this.groupBox2.Controls.Add(this.dateTimePicker1);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Location = new System.Drawing.Point(8, 8);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(400, 472);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "日记";
            //
            // richTextBox1
            //
            this.richTextBox1.Location = new System.Drawing.Point(8, 152);
            this.richTextBox1.Name = "richTextBox1";
            this.richTextBox1.Size = new System.Drawing.Size(384, 312);
            this.richTextBox1.TabIndex = 10;
            this.richTextBox1.Text = "";
            //
            // toolBar1
            //
            this.toolBar1.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
                                                                                        this.toolBarButton1,
                                                                                        this.toolBarButton2,
                                                                                        this.toolBarButton3,
                                                                                        this.toolBarButton4,
                                                                                        this.toolBarButton5,
                                                                                        this.toolBarButton6,
                                                                                        this.toolBarButton7,
                                                                                        this.toolBarButton9});
            this.toolBar1.ButtonSize = new System.Drawing.Size(41, 35);
            this.toolBar1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolBar1.DropDownArrows = true;
            this.toolBar1.Location = new System.Drawing.Point(8, 112);
            this.toolBar1.Name = "toolBar1";
            this.toolBar1.ShowToolTips = true;
            this.toolBar1.Size = new System.Drawing.Size(400, 41);
            this.toolBar1.TabIndex = 9;
            this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
            //
            // toolBarButton1
            //
            this.toolBarButton1.Text = "复制";
            //
            // toolBarButton2
            //
            this.toolBarButton2.Text = "剪切";
            //
            // toolBarButton3
            //
            this.toolBarButton3.Text = "粘贴";
            //
            // toolBarButton4
            //
            this.toolBarButton4.Text = "后退";
            //
            // toolBarButton5
            //
            this.toolBarButton5.Text = "前进";
            //
            // toolBarButton6
            //
            this.toolBarButton6.Text = "字体";
            //
            // toolBarButton7
            //
            this.toolBarButton7.Text = "颜色";
            //
            // toolBarButton9
            //
            this.toolBarButton9.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
            this.toolBarButton9.Text = "表情";
            //
            // button1
            //
            this.button1.Location = new System.Drawing.Point(312, 64);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(64, 24);
            this.button1.TabIndex = 8;
            this.button1.Text = "保存";
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // textBox1
            //
            this.textBox1.Location = new System.Drawing.Point(40, 64);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(248, 21);
            this.textBox1.TabIndex = 7;
            this.textBox1.Text = "";
            //
            // comboBox2
            //
            (new object[] {
                                                           "开心",
                                                           "郁闷",
                                                           "一般"});
             = new System.Drawing.Point(336, 24);
             = "comboBox2";
             = new System.Drawing.Size(48, 20);
             = 6;
            //
            // comboBox1
            //
            (new object[] {
                                                           "晴",
                                                           "阴",
                                                           "雨",
                                                           "雪"});
             = new System.Drawing.Point(240, 24);
             = "comboBox1";
             = new System.Drawing.Size(48, 20);
             = 5;
            //
            // dateTimePicker1
            //
            this.dateTimePicker1.Location = new System.Drawing.Point(40, 24);
            this.dateTimePicker1.Name = "dateTimePicker1";
            this.dateTimePicker1.Size = new System.Drawing.Size(152, 21);
            this.dateTimePicker1.TabIndex = 4;
            //
            // label4
            //
            this.label4.Location = new System.Drawing.Point(8, 64);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(32, 16);
            this.label4.TabIndex = 3;
            this.label4.Text = "标题";
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(296, 24);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(32, 16);
            this.label3.TabIndex = 2;
            this.label3.Text = "心情";
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(200, 24);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(32, 16);
            this.label2.TabIndex = 1;
            this.label2.Text = "天气";
            //
            // label1
            //
            this.label1.Location = new System.Drawing.Point(8, 24);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(40, 16);
            this.label1.TabIndex = 0;
            this.label1.Text = "日期";
            //
            // imageList1
            //
            this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            //
            // dataView1
            //
            this.dataView1.ListChanged += new (this.dataView1_ListChanged);
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(744, 486);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.groupBox1.ResumeLayout(false);
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            (()(this.dataView1)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }

        private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            //查看按下的是哪个按钮
            if (e.Button == this.toolBar1.Buttons[5])
            {
                this.fontDialog1.ShowDialog();
                this.richTextBox1.SelectionFont = this.fontDialog1.Font;
            }
            else if(e.Button == this.toolBar1.Buttons[6])
            {
                this.colorDialog1.ShowDialog();
                this.richTextBox1.SelectionColor = this.colorDialog1.Color;
            }
            else if(e.Button == this.toolBar1.Buttons[0])
            {
                if (richTextBox1.SelectedText != "")
                {
                    richTextBox1.Copy();
                }
            }
            else if(e.Button == this.toolBar1.Buttons[1])
            {
                if (richTextBox1.SelectedText != "")
                {
                    richTextBox1.Cut();
                }
            }
            else if(e.Button == this.toolBar1.Buttons[2])
            {
                if (Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) == true)
                {
                    richTextBox1.Paste();
                }
            }
            else if(e.Button == this.toolBar1.Buttons[3])
            {
                if (richTextBox1.CanUndo == true)
                {
                    richTextBox1.Undo();
                    //richTextBox1.ClearUndo();
                }

            }
            else if(e.Button == this.toolBar1.Buttons[4])
            {
                if (richTextBox1.CanRedo == true)
                {
                    richTextBox1.Redo();
                }

            }
        }

        private void listView1_SelectedIndexChanged(object sender, System.EventArgs e)
        {
        
        }

        private void button1_Click(object sender, System.EventArgs e)
        {
     
        }

        private void dataView1_ListChanged(object sender, e)
        {
        
        }
    }
}
搜索更多相关主题的帖子: System using Forms 毕业设计 Windows 
2008-04-29 11:33
野比
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:24
帖 子:1627
专家分:516
注 册:2007-5-24
得分:0 
先问:你能说出你做了些什么吗?
再问:你能说出你要做什么吗?

还有,系统生成的代码就没有必要放上来了

女侠,约吗?
2008-04-29 11:38
andey
Rank: 2
等 级:新手上路
威 望:4
帖 子:938
专家分:0
注 册:2007-7-18
得分:0 
如果一点都不会的话...还是Copy别人一份吧...
这样给你讲...大家都得累死...

msdn == 葵花宝典!!!
QQ:122768959
2008-04-29 11:56
ly1016_why
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-4-29
得分:0 
回复 2# 的帖子
我不会才上来找人帮忙的  你能帮帮我吗
2008-04-29 12:19
野比
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:24
帖 子:1627
专家分:516
注 册:2007-5-24
得分:0 
[bo]以下是引用 [un]ly1016_why[/un] 在 2008-4-29 12:19 的发言:[/bo]

我不会才上来找人帮忙的  你能帮帮我吗

没说不能来找人帮忙。这里的很多朋友都是乐于帮助他人的。
但现在的问题是:
1.你发的帖子和贴出来的代码没有哪怕一个字提到过你的毕业设计是什么。
试问你题目都不说,谁能帮助你呢?而且从你回的话看来你似乎根本没意识到这点,只一味的说“帮帮我吧”。
2.如果你有疑惑或者技术上的难题,可不可以麻烦你辛苦下,把问题和你自己的思考整理一遍然后发帖?
这样看起来容易搞清楚,大家想帮你也更容易了。

你说呢?

女侠,约吗?
2008-04-29 14:14
ly1016_why
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-4-29
得分:0 
谢谢你的提醒啊,我的毕业设计题目是日记系统,现在只是把窗体结构拖出来了,主要是保存按钮的代码和数据库的链接不会做
2008-04-30 16:01
ly1016_why
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-4-29
得分:0 
回复 5# 的帖子
是用 C#做的
2008-04-30 16:02
pacocai
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:1583
专家分:0
注 册:2007-3-12
得分:0 
用什么数据库没说……还有一点,数据库连接随便一本什么书都有说的。剩下的就是SQL的知识了。

浮生若梦天边月,醉死如酒水中星。红楼一梦千人叹,岂让万夫空做贱。博客:http://hi.baidu.com/rxvip
2008-04-30 16:17
pacocai
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:1583
专家分:0
注 册:2007-3-12
得分:0 
保存就是把你的内容存到数据库里去。这个随便找本书查一下就OK了……

浮生若梦天边月,醉死如酒水中星。红楼一梦千人叹,岂让万夫空做贱。博客:http://hi.baidu.com/rxvip
2008-04-30 16:17
ly1016_why
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-4-29
得分:0 
回复 8# 的帖子
用Access数据库,数据库我会连,但怎么保存到数据库里我不会写,也没找到
2008-04-30 16:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-211625-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.714710 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved