導航:首頁 > 五金知識 > vs2015工具箱界面

vs2015工具箱界面

發布時間:2021-12-18 19:36:10

A. 想要用c#編寫一個和vs界面類似的軟體,工具箱的控制項可拖拽到編輯塊里

我倒是有個半成品..你要的功能基本都有了..

如果要的話.留個郵箱


B. visual studio2015工具箱哪個是顯示時間的控制項

首先確認自己不是在如下圖所示的代碼編寫界面,因為在該界面下右邊的工具箱窗口內中沒有控制項,這是由於容不可能直接向代碼窗口拖入控制項,所以VS不顯示控制項。

2
即使在代碼窗口下,右鍵點擊工具箱窗口空白處選擇重置工具箱也看不到控制項,或者右鍵點擊工具箱窗口空白處選擇全部顯示,雖然有控制項顯示出來但是是灰色的,不能拖動,這些還是由於不能向代碼窗口拖入控制項造成的。

C. 我把vs的工具箱給關了,怎麼調出來到界面

找到菜單-》視圖-》工具箱即可

D. VS怎麼設置界面和工具使用

VS設置界面和工具使用:

一、如何設置VS字體顏色大小、背景

  1. 1、打開VS軟體,在導航欄Tool的菜單中選中Option

  2. 彈出Option的對話框,選擇Environment列表下的Fontsandcolors,在其中對文本的字體大小顏色以及背景色做出自己想要的設置

  3. 如下圖所示是我們所做的一個例子設置

  4. 最終的預覽結果

二、如何顯示源代碼每行編號

  1. 同樣是在VS工具欄Tool的菜單中點擊option:

  2. 在彈出的Option對話框中,選擇TextEditor列表下的C#,並勾選Linenumber這一選項,點擊OK

  3. 操作之後的頁面

三、如何將消失的工具箱等小窗口重新顯示在桌面上

1、選擇工具欄中的View菜單中的Toolbox,工具箱即可重新顯示在桌面上。同樣在View列表中的SolutionExplorer、TeamExplorer、ErrorList、Output等小窗口也可以在View列表下選中展示在窗口上。


四、如何將懸浮的小窗口定位在適合的位置

  1. 點擊滑鼠左鍵拖動某個小窗口時,窗口會出現成「十」字的九個小塊,如下圖所示:

  2. 可以將小窗口拖動進任意一個小塊中,松開滑鼠後,小窗口會被鑲嵌在窗口的相應位置

E. vs2015工具欄圖標不顯示

工具-》裡面有個環境你重置恢復下。
不行就在控制面板修復下VS吧

覆蓋安裝也可以。

F. vs2015工具箱在菜單欄怎麼找到

菜單欄的「視圖」-->「工具箱」

G. 我想在軟體中加一個類似於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)。你自己做兩張圖片加進去

H. C#窗體程序視圖里沒有工具箱項怎麼辦

ctrl + w,x啟動toolbox

暈,你點菜單欄里View-〉ToolBox也沒有嗎?

.....
那你這個還真是夠奇怪了,我從2003開始用沒見過這種情況...

I. VS2015 C# 按鈕之類的怎麼弄出來之前用的是08版本的,控制項都能在左邊工具箱按出來,點一下

一樣在左邊工具箱,如果找不到就點 窗口-重置窗口布局
要添加事件都是雙擊控制項或者右下角的屬性窗口點事件,選相應的事件雙擊也行。

J. vs2012 winform里沒有工具箱窗口

閱讀全文

與vs2015工具箱界面相關的資料

熱點內容
六年級科學實驗裝置圖 瀏覽:797
樓道燈半自動節電開關裝置 瀏覽:945
怎麼用汽車機械鑰匙打開車門 瀏覽:695
超聲波驅蚊器驅鼠器怎麼沒聲音 瀏覽:705
改裝閥門套件對車有什麼影響 瀏覽:89
機械硬碟聲音怎麼樣 瀏覽:551
軸承擋公差多少合適 瀏覽:737
購二手設備怎麼抵扣稅 瀏覽:611
塔式起重機的安全裝置及作用 瀏覽:721
je在儀表裡面代表什麼意思 瀏覽:339
煙台華盛金屬設備有限公司怎麼樣 瀏覽:857
地暖分水器的放氣閥門在哪 瀏覽:344
如何給機械水表調字 瀏覽:78
煤氣罐上低壓閥門怎麼調 瀏覽:318
新昌五金建材市場 瀏覽:322
機械手常用坐標系有哪些 瀏覽:355
取95ml水需要用什麼儀器 瀏覽:191
圓帶傳動用於什麼機械 瀏覽:860
化工管道閥門可以地埋嗎 瀏覽:654
實驗儀器的正確選擇和實驗裝置 瀏覽:462