windows-applications

Share Config file for Web and Window App (Best Way)

筅森魡賤 提交于 2019-11-27 22:53:00
问题 I have created a Class Library (Core Processing Component) using C# in Visual Studio 2008 and added the reference in Website. Website accessing the class library successfully. Web.config having some configuration values, which is used by the Class Library. Now, I want to access the same component and configuration in a Window Application (C# VS-2k8). I am able to access the same class library in window application. But, How do i Share the Web.config file of website with the Window Application

Installing .appx without trusted certificate?

不想你离开。 提交于 2019-11-27 10:51:10
I have a Windows 8 app that I would like to deploy to my Windows RT 2. I only have the .appx , and I would like to just install it for testing by bypassing the store. However, when I run the command: Add-AppxPackage <project.appx> I get the following error: In-line script returned error output: Add-AppxPackage : Deployment failed with HRESULT: 0x800B0109, A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT: 0x800B0109) error 0x800B0109: The root certificate of the signature in the app package must be trusted.*

Define String ENUM in VB.Net

纵饮孤独 提交于 2019-11-27 02:32:25
问题 I am using Window Application for my project. There is situation where i need to define string enum and using it in my project. i.e. Dim PersonalInfo As String = "Personal Info" Dim Contanct As String = "Personal Contanct" Public Enum Test PersonalInfo Contanct End Enum Now i want value of that variable PersonalInfo and Contract as "Personal Info" and "Personal Contanct". How can i get this value using ENUM? or anyother way to do it. Thanks in advance... 回答1: You could just create a new type

Installing .appx without trusted certificate?

陌路散爱 提交于 2019-11-26 15:19:20
问题 I have a Windows 8 app that I would like to deploy to my Windows RT 2. I only have the .appx , and I would like to just install it for testing by bypassing the store. However, when I run the command: Add-AppxPackage <project.appx> I get the following error: In-line script returned error output: Add-AppxPackage : Deployment failed with HRESULT: 0x800B0109, A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT:

Not able to insert records into the table from Gridview - windows form

有些话、适合烂在心里 提交于 2019-11-26 10:02:54
问题 I\'m trying to insert new records into the source table from the C# interface grid view.... But when I retrieve the records with the buttonclick code shown below... Im getting records in the gridview but no option for inserting new records(screen shot attached).. where as i can update the reocrds from the grid view. Is there any option or property for enabling the insertion option in the gridview ? Buttonclickcode : private void RetrieveRules_button_Click(object sender, EventArgs e) { this