windows-applications

Start an application at system start without login

倾然丶 夕夏残阳落幕 提交于 2019-12-07 03:36:39
问题 We have a new server running and we got some new programs doing import routines. So far so good... But there is one program that is put into autostart folder . So it doesn't run until admin logs in and it stops if we logout . I'd like to put this one into a seperate session so it may work without any interaction by simply starting it with the task scheduler at startup. Is this the right way to do this? Is it safe if I log in later and log out? Many thanks! Edit : The applications shows as a

Dispatcher is not coming on C# Windows Forms Application

喜欢而已 提交于 2019-12-07 01:31:08
问题 I have a C# Windows Forms Application with a progress bar. I want to progress that dynamically based on some method status. I have that method in a separate class, and am creating a new thread for that method, with a delegate to pass the status of the method to the parent thread. The same situation I am able solve in a WPF application using progressbar.Dispatcher but in a Windows Forms application there is no Dispatcher, even if I use the System.Threading namespace. progressbar.Dispatcher

What is the fastest way for checking a big proxy list on a specific web site?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 11:56:14
I have a big list of proxy servers (txt file , Format = ip:port in each line) and wrote the code below for checking them: public static void MyChecker() { string[] lines = File.ReadAllLines(txtProxyListPath.Text); List<string> list_lines = new List<string>(lines); List<string> list_lines_RemovedDup = new List<string>(); HashSet<string> HS = new HashSet<string>(); int Duplicate_Count = 0; int badProxy = 0; int CheckedCount = 0; foreach (string line in list_lines) { string[] line_char = line.Split(':'); string ip = line_char[0]; string port = line_char[1]; if (CanPing(ip)) { if (SoketConnect(ip,

Error with Dispatcher.BeginInvoke

早过忘川 提交于 2019-12-06 10:41:43
问题 I am trying to add an item to a sharepoint list but when i try to save my changes im getting this error with my Dispatcher.BeginInvoke 'Windows.UI.Core.CoreDispatcher' does not contain a definition for 'BeginInvoke' and no extension method 'BeginInvoke' accepting a first argument of type 'Windows.UI.Core.CoreDispatcher' could be found (are you missing a using directive or an assembly reference? ctx.BeginSaveChanges( (IAsyncResult result) => Dispatcher.BeginInvoke( () => ctx.EndSaveChanges

How Add System.Web Reference To A Windows Form Application

左心房为你撑大大i 提交于 2019-12-06 04:06:02
问题 I want to use HttpUtility.UrlEncode in a windows form application, but i can not find System.Web in .NET (Add Reference) area! How can i add this assembly to my project? i am using .net 4... thanks in advance 回答1: Right click on a project -> Properties -> Change Target Framework from .Net Framework 4 Client Profile to .Net Framework 4 When you remove a Client Profile restriction, you will see System.Web in .Net (Add Reference) area. 来源: https://stackoverflow.com/questions/13668537/how-add

How to get OS version and Device Name of an Android device connected via USB with C#.net (VS2010/4.0+)?

一笑奈何 提交于 2019-12-06 02:24:59
I want to build a windows application in C#.net which should identify the installed Adroid OS version (e.g. 4.0) and user friendly Device Name (e.g. Samsung Galaxy S3, Samsung Galaxy Tab 8.9 etc.) when you connect an Android device to your computer via USB. I tried with the System.Management class to identify the connected USB devices on my machine, however, the problems I had were: I just have 3 USB ports and connected the Samsung Galaxy Tab 8.9 on one of the USB ports and tried to get the list of USB devices using USBhub WMI class and I got around 6-7 results in the list including the

Start an application at system start without login

谁都会走 提交于 2019-12-05 07:30:57
We have a new server running and we got some new programs doing import routines. So far so good... But there is one program that is put into autostart folder . So it doesn't run until admin logs in and it stops if we logout . I'd like to put this one into a seperate session so it may work without any interaction by simply starting it with the task scheduler at startup. Is this the right way to do this? Is it safe if I log in later and log out? Many thanks! Edit : The applications shows as a symbol in the task bar if running, it can be configured by this. Anything I must know about this if I

Dispatcher is not coming on C# Windows Forms Application

不羁的心 提交于 2019-12-05 07:08:51
I have a C# Windows Forms Application with a progress bar. I want to progress that dynamically based on some method status. I have that method in a separate class, and am creating a new thread for that method, with a delegate to pass the status of the method to the parent thread. The same situation I am able solve in a WPF application using progressbar.Dispatcher but in a Windows Forms application there is no Dispatcher, even if I use the System.Threading namespace. progressbar.Dispatcher seems to be available only in a WPF Application. In winforms you can use the ProgressBar.Invoke or

How to add EntityObject Generator in Visual Studio 2015?

烂漫一生 提交于 2019-12-05 06:11:19
I have installed the latest Entity Framework version (EntityFramework.6.1.3) in VS2015. I have added the EF in the project and deleted the 2 .tt files ( edmx_file_name.tt and edmx_file_name.Context.tt ) as they were from the DBContext. Now I am trying to add the EF 6.x code generation template by open the model in the EF Designer, right-click on the design surface and select Add Code Generation Item . To add the Code Generation in ObjectContext i need to install the EF 6.x EntityObject Generator. I downloaded it from here . But it I couldn't install it in VS 2015. How do I solve this? Since

Error with Dispatcher.BeginInvoke

点点圈 提交于 2019-12-04 16:00:55
I am trying to add an item to a sharepoint list but when i try to save my changes im getting this error with my Dispatcher.BeginInvoke 'Windows.UI.Core.CoreDispatcher' does not contain a definition for 'BeginInvoke' and no extension method 'BeginInvoke' accepting a first argument of type 'Windows.UI.Core.CoreDispatcher' could be found (are you missing a using directive or an assembly reference? ctx.BeginSaveChanges( (IAsyncResult result) => Dispatcher.BeginInvoke( () => ctx.EndSaveChanges(result)), ctx ); Should use the following instead: await Dispatcher.RunAsync(Windows.UI.Core