我有一个大型的、资源密集型的C#图形用户界面应用程序,它使用第三方UI库。
有时,它会失败,并显示以下异常和调用堆栈:
====================================
ERROR
====================================
Exception type: ArgumentException
Parameter is not valid.
====================================
CALL STACK
====================================
at System
我想在运行时向Combobox添加一个样式,如下所示:
Dim cbo as DevComponents.DotNetBar.Controls.ComboBoxEx
cbo = new DevComponents.DotNetBar.Controls.ComboBoxEx
With cbo
.Style=eDotNetBarStyle.Windows7
.width=200px
End With
ctl.Add(cbo)
但它不起作用。该样式是普通的Windows控件样式。有谁能帮帮忙吗?
我使用dotnetbar来设计UI。
private DevComponents.DotNetBar.ComboBoxItem AddressTextBox;
但是它没有我使用的事件Key_Down
ComboBox address = (ComboBox)AddressTextBox.ContainerControl;
address.KeyDown += new KeyEventHandler(address_KeyDown);
但是它有错误的Unable to cast object of type 'DevComponents.DotNetBar.Rib
我希望更改DevComponent AdvTree上特定节点的字体颜色。我在DevComponents 'Knowledge Base‘上找到了以下有关更改样式的信息:
// Create new style
ElementStyle styleRightAligned = new ElementStyle();
// Set text alignment to right
styleRightAligned.TextAlignment = eStyleTextAlignment.Far;
advTree1.Styles.Add(styleRightAligned);
// A
因此,我得到了这个文件,该文件应该将access数据库转换为SQL (对于名为PROFFIX的特定程序,但这并不重要.)。但是,如果我试图运行它,它会产生以下错误:
Fehler beim Starten von PROFFIX dbConvert!
(运行PROFFIX dbConvert时出错)
System.IO.FileLoadException: Could not load file or assembly
'DevComponents.DotNetBar2, Version=10.3.0.4, Culture=neutral,
PublicKeyToken=7eb7c3a
我正在使用DevComponents组件创建表单,如您所知,这些组件附带了一个StyleManager,用户可以更改表单的视觉样式。问题是,当我尝试以Modal的形式打开这些表单时,它们会失去它们的视觉样式并切换回原始的windows样式。
这是来自Form1.Designer的代码(正如我提到的,我正在使用OfficeForm):
Partial Class Form1
Inherits DevComponents.DotNetBar.OfficeForm
.
.
.
这是我使用的作为MDIChild打开表单的代码,它工作得很好:
Public Sub OpenMDI(ByVal f
我想将这行代码从VB转换为C#:
Catch ex As Exception
DevComponents.DotNetBar.MessageBoxEx.Show("Đường dẫn không chính xác", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information)
我在C#中使用了total这一行,但在帮助我的名称"Devcomponent“处得到了错误。
我希望将DotNetBar SuperDataGrid控件中的列呈现为comboBox (更准确地说,是GridComboBoxExEditControl)。SuperDataGrid连接到绑定源。在DataBindingComplete事件中,我有以下内容:
Private Sub SuperGrid_DataBindingComplete(ByVal sender As Object, ByVal e As DevComponents.DotNetBar.SuperGrid.GridDataBindingCompleteEventArgs) Handles SuperGrid.DataBi
我正在使用dotnetbar libray,我在设计时添加了一个wizardpage,在运行时添加了其他一些wizardpage,然后在用户到达向导的末尾之后添加了最后一个向导,我使用一个命令自动切换到新创建的wizardpage。我使用以下代码删除除当前选定页以外的其他向导页。
Dim wiz As New DevComponents.DotNetBar.WizardPage 'pages
With wiz
.InteriorPage = True
.Name = "Summary"
.PageTitle = &
我有一个MDI父窗体作为父窗体,我使用它来打开和组织其他窗体作为其中的子窗体。我使用此方法打开子窗体:
Public Sub OpenForm(ByVal frm As Form)
frm.MdiParent = MainView
frm.Show()
End Sub
该方法工作正常,我使用它打开子窗体没有任何问题。我在每个子窗体中有3个项目:
1- DataGridViewX (来自DevComponents.DotNetBar.Controls)
2-面板
3- UserControl
我可以正确地使用这些项目中的每一个,并且没有出现错误。DataGridViewX已与Da
我甚至不知道该怎么问这个问题,但这是。我的windows窗体对象的设计视图现在崩溃,出现以下错误:
控件DevComponents.DotNetBar.Office2007RibbonForm已在设计器中引发未处理异常,并已禁用。例外:索引超出范围。必须是非负的,并且小于集合的大小。参数名称:索引堆栈跟踪: at DevComponents.DotNetBar.Office2007RibbonForm.WindowsMessageStyleChanged(Message& m)
当错误页弹出时,如下所示:
我想不出在这之前我做了什么,这是非常令人沮丧的。我做的最后一件
下面是一个非常简单的类,它最初以编辑模式或非编辑模式设置控件
Public Class DateTBx
Inherits DevComponents.WpfEditors.DateTimeInput
Private _TextBoxNewRecord As Boolean
Public Property IsNewRecord As Boolean
Get
Return _TextBoxNewRecord
End Get
Set(value As Boolean)
_Tex
当我的foarload事件方法触发时,我就有了
Try
'//this is the default or modified color tint
StyleManager1.ManagerColorTint = ColorTint
Catch ex As Exception
End Try
它到达StyleManager1.ManagerColorTint = ColorTint,然后当我继续的时候它就冻结了,
StyleManager1为DevComponents.DotNetBar.StyleManager
和ColorTint一样,目前的stylemanage
我在每个窗体上都有一个名为SuperValidator1的控件,该控件具有SuperValidator类型。我希望找到这个控件,并使用它的名称启用它,因为名称在所有形式中都是一致的。这就是我想出的代码:
Dim validator As SuperValidator
Dim frm As Form = Me.ParentForm
Dim ctrl As Control()
ctrl = frm.Controls.Find("SuperValidator1", True)
Dim singleCtrl
我在'/Users/bob/Documents/GitHub/Active/DevComponents/DragDropComponents/src'“中一直收到错误消息”找不到模块:无法解析'./components/dndEditor‘
我已经将代码缩回到了基础部分,但它仍然不能工作,我肯定做了一些根本错误的事情(我更习惯于使用函数组件,而不是类)。当visual studio自动完成URL时,URL指向文件。
import React from 'react';
import ReactDOM from 'react-dom';
i
我希望在表单处于活动状态时读取来自用户的输入。
例如,如果一个表单是活动的,当我按下F1时,我希望出现一个新的表单。
我该怎么做呢?
这是我的主要表单
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
namespac
我使用DevComponets.DotNetBar2.dll已经有一段时间了,每当我尝试打开另一个运行DevComponets.DotNetBar.Office2007Form的表单时,这个错误就会随机弹出:"Unable to cast object of type 'TheFallenDeveloper.main‘to type 'DevComponents.DotNetBar.Office2007Form'“
如您所见,我的名称空间是TheFallenDeveloper,形式是main。我想知道是否有人也经历过这种情况,以及您是否有任何帮助来尝试和修复错误