导航:首页 > 五金知识 > vs加载工具箱

vs加载工具箱

发布时间:2022-01-12 14:22:59

『壹』 在vs 2008中如何添加工具箱中没有的控件

从“项目”菜抄单找到“添加引用”。 “添加引用”应该那个菜单的下面吧? http://hiphotos..com/111010000000/pic/item/f01389391367a4e53b87ce5b.jpg
如果没有,按“管理员”模式启动程序。 然后找到需要的控件,添加即可。

『贰』 vs2012,如图,下列控件已经添加到工具箱,但未在活动设计器中启用,请问如何解决

你这个问题就是添加一些控件和界面库到工具栏不能显示,我觉得应该是当前工程版的.NET的目标框架权太低了(一般是2.0的)。解决办法:右键工程---点击“属性”并进入----点击“应用程序”----界面里有一个“目标框架”,默认的应该是“.NET Framework 2”,改成NET Framework 4就行了。。。

『叁』 VS2008中怎么添加AxMediaPlayer到工具箱

在VS2005编程环境的“工具箱”中单击右键,选择“选择项”菜单,打开“选择工具箱项”窗口,选择“COM组件”标签,在列表中找到并勾选“Windows Media Player”组件,单击“确定”按钮。将该组件添加到指定的工具箱选项卡中
然后在工具箱里面找 Windows Media Player 控件,拉到form里面,拉出来的控件就是AxWindowsMediaPlayer了,打开属性窗口,在点击拉过来的控件,可以清楚的看到控件名称为AxWindowsMediaPlayer1

『肆』 VS2012工具箱加载选择项 总是崩溃怎么办

楼主,您好。有可能您下的VS2012版本不稳定,建议您卸载重新安装一个稳定的版本

『伍』 visual studio 打开工具箱没有可用的控件,提示说“将某项拖至此文本可将其添加到工具箱”,应该怎么办

1、在你已有的项目的基础上点击“工具栏”。

『陆』 VS2013 右击工具箱,选择项,下面提示正在加载选择工具箱项,一直没有反映,并没有卡死,点了跟没点一样

稍微耐心等下,如果你使用机械硬盘,而不是固态硬盘,那么运行VS2013就比较吃力了。
如果还不行,建议重装下系统。

『柒』 我想在软件中加一个类似于VS工具箱的窗口,c#中有这种控件吗

1.可以直接分组的控件有,treeView
2.像qq一样的分组:自己用BUTTON或者PANEL写一个,可以用location货dock来改变
3.自己写控件,其实很简单的,DOWNLOAD点资料就ok了
4.第三方调用,比如DevComponents
记得给我点分哦!http://www.dotnetmagic.com/downloads/Magic174AndKrypton.zip
还有用NavBarControl这个,下载地址自己找
或者重写treeview
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace SiteView.Ecc.MMC.UserContorls
{

/// <summary>
/// 继承TreeView控件,实现VS工具箱风格
/// </summary>
class ToolBox :TreeView
{

public ToolBox()
{

this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.SetStyle(ControlStyles.EnableNotifyMessage, true);

this.ShowLines = false;
this.HotTracking = true;
this.FullRowSelect = true;
this.DrawMode = TreeViewDrawMode.OwnerDrawAll;

this.Nodes.Add("test");
}

/// <summary>
/// 重新DrawNode方法
/// </summary>
/// <param name="e"></param>
protected override void OnDrawNode(DrawTreeNodeEventArgs e)
{

//base.OnDrawNode(e);
if(e.Node.Level == 0)
{
DrawRoot(e);
}
else
{
DrawItem(e);
}

}

/// <summary>
/// 绘制根节点
/// </summary>
/// <param name="e"></param>
private void DrawRoot(DrawTreeNodeEventArgs e)
{

try
{
Rectangle rect = e.Bounds;
rect.Y += 1;
rect.Width -= 1;
rect.Height -= 3;

if(e.Node.IsSelected)
//if (e.State == TreeNodeStates.Marked || e.State == TreeNodeStates.Selected)
{
using (System.Drawing.Brush selBrush = new System.Drawing.SolidBrush(Color.FromArgb(225, 230, 232)))
using (System.Drawing.Pen outerPen = new System.Drawing.Pen(Color.FromArgb(49, 106, 197)))
{
e.Graphics.FillRectangle(selBrush, rect);
e.Graphics.DrawRectangle(outerPen, rect);
}
}
else
{
using (System.Drawing.Drawing2D.LinearGradientBrush lgBrush = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, Color.FromArgb(221, 220, 203), Color.FromArgb(196, 193, 176), LinearGradientMode.Vertical))
using (System.Drawing.Pen linePen = new System.Drawing.Pen(this.BackColor))
{
e.Graphics.FillRectangle(lgBrush, rect);
e.Graphics.DrawLine(linePen, 0, rect.Bottom - 2, rect.Width, rect.Bottom - 2);
}
}
if (e.Node.IsExpanded == true)
{
//e.Graphics.DrawImage(this.imageList3.Images[0], new Point(rect.Left + 3, rect.Top + 4));
e.Graphics.DrawImage(IconResource.expanded, new Rectangle(rect.Left + 3, rect.Top + 4, 10, 10));
}
else
{
e.Graphics.DrawImage(IconResource.collapsed, new Rectangle(rect.Left + 3, rect.Top + 4, 10, 10));
}

rect.Offset(16, 2);
e.Graphics.DrawString(e.Node.Text, new Font("Microsoft Sans Serif", 8.25F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))), SystemBrushes.ControlText, rect.Location);
}
catch (Exception ex)
{
//隐藏错误
//log.Error("绘制根节点", ex);
}

}

private System.Drawing.Brush selBrush = new System.Drawing.SolidBrush(Color.FromArgb(175, Color.Gold));
private System.Drawing.Pen pen = SystemPens.HotTrack;
/// <summary>
/// 绘制子结点
/// </summary>
/// <param name="e"></param>
private void DrawItem(DrawTreeNodeEventArgs e)
{

try
{
Rectangle nodeTextRect = e.Bounds;

nodeTextRect.Width -= 1;
nodeTextRect.Height -= 1;

Rectangle rect = e.Bounds;
rect.Inflate(-1, -1);

if (e.Node.IsSelected)
{
e.Graphics.FillRectangle(selBrush, rect);
e.Graphics.DrawRectangle(pen, rect);
}
else
{
e.Graphics.FillRectangle(new System.Drawing.SolidBrush(e.Node.BackColor), e.Bounds);
e.Graphics.DrawRectangle(new System.Drawing.Pen(e.Node.BackColor), e.Bounds);
}

if (this.ImageList != null && e.Node.ImageIndex < this.ImageList.Images.Count)
{
e.Graphics.DrawImage(this.ImageList.Images[e.Node.ImageIndex], new Point(e.Bounds.Left + 3, e.Bounds.Top + 2));
}

nodeTextRect.Offset(20, 3);
e.Graphics.DrawString(e.Node.Text, this.Font, SystemBrushes.ControlText, nodeTextRect.Location);

}
catch (Exception ex)
{
//隐藏错误
//log.Error("绘制子节点", ex);
}
}
}
}
还有两个资源文件,一个加号图片(IconResource.expanded),一个减号图片(IconResource.collapsed)。你自己做两张图片加进去

『捌』 vs2017 工具箱 没有安装工具集选项

在你已有的项目的基础上,点击“视图”会出现下面图片的内容,然后点击“版工具箱权”,跳到第2步骤。

『玖』 vs2013为什么打开c#工具箱后就卡了

打开VS2013后,抄VS加载工具箱中的控件或部袭件出现问题,导致VS2013启动非常缓慢,甚至无法启动。
解决方法:重新设置一下VS2013的环境。
请参考 http://jingyan..com/album/72ee561aa24c24e16138df1e.html

阅读全文

与vs加载工具箱相关的资料

热点内容
天然气总阀门怎么开不动 浏览:947
楼房管道井带齿轮的阀门 浏览:844
输气阀门故障及处理 浏览:907
商用车万向传动装置cad图纸 浏览:102
液化气三联阀门怎么调 浏览:120
超声波机器焊接怎么看 浏览:638
一根轴用四个轴承有什么好处 浏览:714
灌注桩超声波管子怎么安装 浏览:648
阀门热紧执行什么定额 浏览:175
小型皮卡车万向传动装置 浏览:238
xp如何打开设备管理器 浏览:519
瑞虎3x仪表扳手怎么消除 浏览:870
一台汇聚交换机能带多少设备 浏览:78
济南鸿森制冷设备有限公司怎么样 浏览:608
静爆液压劈裂机设备哪里有 浏览:495
电机轴承为什么超温 浏览:848
雷凌仪表盘胎压显示怎么调 浏览:25
花生豆腐设备多少钱一台 浏览:127
什么游戏机械键盘好用吗 浏览:287
导热油上用什么阀门好 浏览:456