Visual studio 2008 值不在预期范围内
尝试显示表单设计器时出错 请参见错误图片:Visual studio 2008 值不在预期范围内,visual-studio-2008,forms,c#-3.0,compact-framework,windows-mobile-6.1,Visual Studio 2008,Forms,C# 3.0,Compact Framework,Windows Mobile 6.1,尝试显示表单设计器时出错 请参见错误图片: public partial class frmCanalVenda : frmEdit { public frmCanalVenda(CanalVenda canal, Cliente cli) : base(canal) { InitializeComponent(); bdsCliente.DataSource = cli; eabBar.ReadOnlyView =
public partial class frmCanalVenda : frmEdit
{
public frmCanalVenda(CanalVenda canal, Cliente cli)
: base(canal)
{
InitializeComponent();
bdsCliente.DataSource = cli;
eabBar.ReadOnlyView = false;
}
private void frmCanalVenda_Load(object sender, EventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
bdsAgrupamento.DataSource = Agrupamento.GetAll(DatabaseAFV.Connection);
bdsCanal.DataSource = Canal.GetAll(DatabaseAFV.Connection);
bdsSubCanal.DataSource = SubCanal.GetAll(DatabaseAFV.Connection);
bdsEspecializacao.DataSource = Especializacao.GetAll(DatabaseAFV.Connection);
bdsOperacao.DataSource = Operacao.GetAll(DatabaseAFV.Connection);
bdsPorte.DataSource = Porte.GetAll(DatabaseAFV.Connection);
}
finally
{
Cursor.Current = Cursors.Default;
}
}
}
屏幕代码:
public partial class frmCanalVenda : frmEdit
{
public frmCanalVenda(CanalVenda canal, Cliente cli)
: base(canal)
{
InitializeComponent();
bdsCliente.DataSource = cli;
eabBar.ReadOnlyView = false;
}
private void frmCanalVenda_Load(object sender, EventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
bdsAgrupamento.DataSource = Agrupamento.GetAll(DatabaseAFV.Connection);
bdsCanal.DataSource = Canal.GetAll(DatabaseAFV.Connection);
bdsSubCanal.DataSource = SubCanal.GetAll(DatabaseAFV.Connection);
bdsEspecializacao.DataSource = Especializacao.GetAll(DatabaseAFV.Connection);
bdsOperacao.DataSource = Operacao.GetAll(DatabaseAFV.Connection);
bdsPorte.DataSource = Porte.GetAll(DatabaseAFV.Connection);
}
finally
{
Cursor.Current = Cursors.Default;
}
}
}
图像文本
以防止之前可能的数据丢失
加载设计器时,将执行以下操作
必须解决以下错误:
值不在
预期范围
此错误的实例(1)
此问题可能是由于项目属性/设置文件的更改引起的。如果最近对设置进行了更改,请执行以下操作:-
这应该可以解决您的问题。万岁玛丽:重新启动Visual Studio对我有效。为什么不发布错误文本?显示的图片不清晰。@Oded:如果缩放页面,它将变得可读:p@KornelijePetak-如果你想,你仍然不能复制/粘贴它。我们的人,这是六个月前的事,甚至不记得我是如何解决的。哈哈,这几乎与“重新启动”或“重新安装windows”一致。但它确实奏效了,请投赞成票:)