windows-applications

XAML Designer System.Runtime.Remoting.RemotingException

ⅰ亾dé卋堺 提交于 2021-02-17 20:28:58
问题 I'm encountering the following System.Runtime.Remoting.RemotingException error when I create a blank Windows 10 Universal Application... Following are event viewer screens... I have checked online for other solutions and have already done the following... Uninstall/Repair Visual Studio 2015 Update 1 Reset my Windows 10 PC 1511 update Cleared the Designer/ShadowCache folder Target environment has been set to x86/x64 Target framework set to 10240 Developer mode enabled Updated graphic drivers

How to delete a particular instance of FileSystemWatcher object

岁酱吖の 提交于 2021-02-08 08:23:25
问题 I have a windows application which uses FileSystemWatcher to monitor the change of files. Multiple file locations can be added and for each location a new instance of FileSystemWatcher is created and the location is added to a listbox. There is an option to delete a location from the listbox. I need to delete/dispose the particular instance of FileSystemWatcher when a location is deleted. Is there any way to attain this? Thanks in advance. FileSystemWatcher fsw; private void CreateFWInstance

Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible'

不打扰是莪最后的温柔 提交于 2021-02-07 08:35:31
问题 I m using in C# Code int i = Convert.ToInt32(ddlDivisionId.SelectedValue); at that time this type of error accrued.. Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' how can i solve it ? Please help 回答1: It looks like your ddlDivisionId.SelectedValue is returning a DataRowView . I assume you bound a DataTable or similar to your dropdown list (assuming that is what we are looking at). In this case you will need to treat the ddlDivisionId.SelectedValue as a

Install fonts to PC using Inno Setup

社会主义新天地 提交于 2021-02-07 08:01:48
问题 I created a Windows application and that uses a particular font. So I need to install that font to the users system using Inno Setup. I used this code: Source: "ARLRDBD.TTF"; DestDir: "{fonts}"; FontInstall: "Oz Handicraft BT"; \ Flags: onlyifdoesntexist uninsneveruninstall But this code had no effect when I tested it in my system. How can I do it perfectly? 回答1: FontInstall - This must be exactly the same name as you see when you double-click the font file in Explorer. In your case you have

Install fonts to PC using Inno Setup

流过昼夜 提交于 2021-02-07 07:58:20
问题 I created a Windows application and that uses a particular font. So I need to install that font to the users system using Inno Setup. I used this code: Source: "ARLRDBD.TTF"; DestDir: "{fonts}"; FontInstall: "Oz Handicraft BT"; \ Flags: onlyifdoesntexist uninsneveruninstall But this code had no effect when I tested it in my system. How can I do it perfectly? 回答1: FontInstall - This must be exactly the same name as you see when you double-click the font file in Explorer. In your case you have

What type of controls don't show up in Spy++/Inspect?

假如想象 提交于 2020-12-26 11:24:41
问题 We are working on an Windows Desktop application that pulls values from other controls on other applications. What we have works great for most desktop applications. I have noticed that some controls don't show up in inspect and Spy++. For example, in GP 2015 client only a handful of the controls are addressable in Spy++ and Inspect. The large majority wont show in the repective tree in Spy++ or Inspect. What type of controls don't show in Inspect and for extra credit, how can we talk to them

What type of controls don't show up in Spy++/Inspect?

孤人 提交于 2020-12-26 11:23:37
问题 We are working on an Windows Desktop application that pulls values from other controls on other applications. What we have works great for most desktop applications. I have noticed that some controls don't show up in inspect and Spy++. For example, in GP 2015 client only a handful of the controls are addressable in Spy++ and Inspect. The large majority wont show in the repective tree in Spy++ or Inspect. What type of controls don't show in Inspect and for extra credit, how can we talk to them

How to re-open the closed window?

帅比萌擦擦* 提交于 2020-01-24 07:46:47
问题 i've seen so many samples that in order to open closed window i should hide the window in closing event, but this is not fair for me if i close window in middle of my work and again open same window it showing me content where i left because i'm hiding window previously. So how can i start freshly my window after closed or hide the window. currently i'm calling winload method which is to show fresh window after calling the show method of a hide window. private PurgeData data=new PurgeData();

How to re-open the closed window?

梦想与她 提交于 2020-01-24 07:46:36
问题 i've seen so many samples that in order to open closed window i should hide the window in closing event, but this is not fair for me if i close window in middle of my work and again open same window it showing me content where i left because i'm hiding window previously. So how can i start freshly my window after closed or hide the window. currently i'm calling winload method which is to show fresh window after calling the show method of a hide window. private PurgeData data=new PurgeData();