18 个解决方案
#1
private void xfTabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
this.xfTabConTraceInfo.SelectedTab.BackColor = "";
}
{
this.xfTabConTraceInfo.SelectedTab.BackColor = "";
}
#2
我说的是,tabcontrol 给选项标签被选中或没被选中设置“背景图片”,是背景图片,不是背景色
#3
没法简单的来,只好重绘
#4
具体怎么实现呢?能否写出来?
#5
没人帮我啊?怎么把tabcontrol 控件美化呢
#6
别美化了,有现成的美化好的,加我QQ我发你吧,Inval@live.cn 答案'wwwwwww
#7
谁懂C# winform的tabControl控件美化啊?
#8
#9
谁懂C# winform的tabControl控件美化啊?怎么都没高手理我呢
#10
我一般不美化TabControl
#11
下载一个了.
#12
谁懂C# winform的tabControl控件美化啊?怎么都没高手理我呢?高手们,救救我吧
#13
private void tabControl_SelectedTabChanged(object sender, EventArgs e)
{
if (tabControl.SelectedTabIndex == 0)
{
try
{
tabControl.Tabs[0].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\12.png");
tabControl.Tabs[1].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\2.png");
tabControl.Tabs[2].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\3.png");
tabControl.Tabs[3].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\4.png");
}catch(Exception){}
}
}
{
if (tabControl.SelectedTabIndex == 0)
{
try
{
tabControl.Tabs[0].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\12.png");
tabControl.Tabs[1].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\2.png");
tabControl.Tabs[2].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\3.png");
tabControl.Tabs[3].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\4.png");
}catch(Exception){}
}
}
#14
vs2008不能这样写吧?
#15
怎么没人答复呢
#16
果然是够恶心的。都是些答不对题的人,我也需要解决这个问题,怎么办?楼主解决没有呀?
#17
#18
不知道楼主解决了木有,
#1
private void xfTabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
this.xfTabConTraceInfo.SelectedTab.BackColor = "";
}
{
this.xfTabConTraceInfo.SelectedTab.BackColor = "";
}
#2
我说的是,tabcontrol 给选项标签被选中或没被选中设置“背景图片”,是背景图片,不是背景色
#3
没法简单的来,只好重绘
#4
具体怎么实现呢?能否写出来?
#5
没人帮我啊?怎么把tabcontrol 控件美化呢
#6
别美化了,有现成的美化好的,加我QQ我发你吧,Inval@live.cn 答案'wwwwwww
#7
谁懂C# winform的tabControl控件美化啊?
#8
#9
谁懂C# winform的tabControl控件美化啊?怎么都没高手理我呢
#10
我一般不美化TabControl
#11
下载一个了.
#12
谁懂C# winform的tabControl控件美化啊?怎么都没高手理我呢?高手们,救救我吧
#13
private void tabControl_SelectedTabChanged(object sender, EventArgs e)
{
if (tabControl.SelectedTabIndex == 0)
{
try
{
tabControl.Tabs[0].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\12.png");
tabControl.Tabs[1].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\2.png");
tabControl.Tabs[2].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\3.png");
tabControl.Tabs[3].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\4.png");
}catch(Exception){}
}
}
{
if (tabControl.SelectedTabIndex == 0)
{
try
{
tabControl.Tabs[0].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\12.png");
tabControl.Tabs[1].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\2.png");
tabControl.Tabs[2].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\3.png");
tabControl.Tabs[3].Image = Image.FromFile(Application.StartupPath + @"\Image\mainImage\4.png");
}catch(Exception){}
}
}
#14
vs2008不能这样写吧?
#15
怎么没人答复呢
#16
果然是够恶心的。都是些答不对题的人,我也需要解决这个问题,怎么办?楼主解决没有呀?
#17
#18
不知道楼主解决了木有,