English 中文(简体)
VBNET - 应用程序配置还是什么?
原标题:VB.NET - app.config or what?

可以说我想给一个 VB. NET 程序给我的客户端, 他从技术上看倾向于 VB. NET 程序, 但不会想要很多代码。 我希望他能够更改/ 设置几个变量的值。 我可以将这些变量放在 ap. config 中 。

然后,他将这些信息传递给技术上比他差的其他人。 他不希望这些人改变这些价值观! 也许他们也不应该看到这些价值观,但观察是可以接受的,改变这些价值观是无法接受的!如果他们完全篡改了价值观,程序就应该中断。

那么我该如何不问他 将程序传给他呢?

如何完成这样的任务? 我还要确保他不用给他的人很多文件。 如何把它们捆绑在一起( 使用2010年视觉工作室/基础的快递版 )?

问题回答

我不知道这是不是最好的方式, 但是肯定能奏效的, 就是拥有一个包含所有设置的二进制文件, 以及一个工具, 使编辑更方便用户, 你给客户, 而不是其他人...





相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签