Click here to Skip to main content
15,893,564 members
Everything / Desktop Programming

Desktop Programming

desktop

Great Reads

by Graeme_Grant
This article comprehensively covers the Microsoft ClickOnce Installer with a bare bones WinForm/WPF C#/VB Silent Updater framework plus covers how to implement, troubleshoot, test locally, to release.
by Michael Haephrati
Desktop application that can be used to convert from and to various audio formats, such as .mp3, .m4a and .wav
by Member 9913858
An introduction to using FakeModel to create test aata for you.
by Harry Truman
Screencasting (demo screen, screensharing) already works in Google Chrome. The technology allows capturing a window of the browser itself as well as windows of other applicaitons. For example, you can capture Firefox running in a separate window.

Latest Articles

by Graeme_Grant
This article comprehensively covers the Microsoft ClickOnce Installer with a bare bones WinForm/WPF C#/VB Silent Updater framework plus covers how to implement, troubleshoot, test locally, to release.
by Kai Schtrom
How to use DSE-Patcher to disable Driver Signature Enforcement
by Michael Sydney Balloni
A .NET client-server application for sending files over a network
by Aleh Baradzenka
In this article, you will learn about an adjustable control that has zooming and scrolling tabs, dragging with the mouse, custom drawing and much more.

All Articles

Sort by Updated

Desktop Programming 

1 Oct 2017 by #realJSOP
The best solution is to stop using Crystal reports. :) (I'm not a Crystal Reports expert, but I did stay at a Holiday Inn Express last night.)
29 Feb 2024 by _Asif_
As explained by @Dave you need to identify all child windows of a parent window, once you get child window handle you can send message to get them minimize. You can get a working sample from how can i get the child windows of a window given its...
11 Feb 2013 by _Dhull
how to export grid view to pdf,excel,word documents...desktop apllication.help ASAP please
12 Sep 2013 by _Maxxx_
I know I can write a "Metro" Windows 8 app using HTML5 / Javascript.But can I write a Windows 8 Desktop Application using HTML5 / Javascript?I have looked at .hta - but that looks like it is unlikely to give me access to (for example) touch / accelerometer etc. from a device that...
19 Nov 2013 by _Maxxx_
I don't know xojo.However, if it is a simple app, you already have some xojo skills, and xojo seems that it will enable you to have both the desktop and web app with a common code base, then I would stick with that.Developing in PHP or ASP.NET or whatever else would seem to me to require...
9 Oct 2013 by _Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
16 Sep 2015 by _Plutonix
Helper class to add, change and delete Registry based Explorer Context Menus from your app
20 May 2014 by aamitsengar
actually What u want ?Want morethen 1 form in mdi parent form ?then Create a class and then use Get set for Form name if instance of that form is not available then open new form otherwise return Current Window
5 Nov 2012 by Aarti Meswania
No, CSS RequiredWindows Application Controls Provides lots of eventsCreate Two event of your control1. Mouse enter2. Mouse LeaveNow, For example in mouse enter eventYourControl.BackColor = Color.Greenin Mouse Leave eventYourControl.BackColor = Color.TransperentHappy...
30 Dec 2012 by Abhimanyu Rawat
HelloI want to import data from access database to sql server 2008 using c#.With some validation means,In Access we have varchar(10) and sql we have varchar(11) then not allow to import data. like vise if name is not match of the column than also not allow to import.Thanks
21 Jan 2013 by Abhinav S
If you are running the Silverlight application in the browser, it is not possible at all.SL runs under high security constraints and thus it is not possible to run anything outside of the browser.Silverlight out of browser applications[^] run with elevated privileges and there might be...
19 Nov 2013 by Abhinav S
I guess rewriting a VB6 program in any web based language would take more or less the same time.It depends on what the team is more conversant in.One thing you could check is if the same SQL queries can be utilized in both cases.It could reduce some amount of effort.
15 Mar 2014 by Abhinav S
Each of these languages can help you achieve the same objective. Pick what you are comfortable in.
28 Apr 2015 by Abhinav S
Pass the event to the main form.For e.g.class UControl : UserControl{ public delegate void ButtonClickedEventHandler(object sender, EventArgs e); public event ButtonClickedEventHandler OnUserControlButtonClicked; public UControl() { ...
13 Aug 2014 by Afzaal Ahmad Zeeshan
Understanding the DateTime struct and using it inside your software to display Date and Time and to do the DateTime mathematics
18 Mar 2017 by Afzaal Ahmad Zeeshan
Then provide a read-only USB stick that contains the executable, and provide a function that checks if the executable is currently inside a removable storage or not, if in a removable storage then run otherwise halt. You can check by having a look at the path where executable is, and finding out...
1 Sep 2020 by Afzaal Ahmad Zeeshan
Recommendation is to never get your hands dirty for such performance-oriented parts of your application unless you have a solid experience/understanding. Oh, before I start the answer, I should suggest that migrating the code to .NET Framework 4...
24 Jan 2018 by Agarwal1984
Hello, I want to display my logo in Crystal Report, but its getting error "Missing Parameter Value". I added parameter but its getting error. Please help me. Thanks in Advance. Regards Ankit Agarwal Software Engineer What I have tried: myCRReport cr=new myCRReport(); DataTable dt =...
28 Jan 2013 by Agent__007
A simple WPF text clock gadget for Windows
16 Mar 2022 by ahmedbelal
i need to Edit row in database from DataGrid View the Problem is i need solution for System.FormatException: 'The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.' i click f10 and compiler work my...
29 May 2022 by ahmedbelal
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. when add new customer i want to make pictureBox accepted Null Error Here byte[] img; MemoryStream ms1; ms1 = new...
11 Jun 2013 by AhmedYehiaK
Hi everyoneI have an issue in the following Linq to collection query it give me the wrong result and i spend a lot of hours to discover the issue, so kindly tell me if you see anything error:The wrong is on the condition The case is:I want to filter the listed items be provide a...
1 Jun 2012 by AHSAN111
hi, I am working on a google search project which requires me to provide functionality to export the search results for input terms comming from the user as input. An additional requirement from the user is to identify if the urls of the returned results drops a cookie on the user Pc....
3 Oct 2013 by alanmaster
I have the no. I1314006275 and a textbox in windows forms 2010, how i can set I1314 i.e the first five digits so that user don't have to type every time I1314 in textbox.
16 Mar 2021 by Aleh Baradzenka
In this article, you will learn about a control that is necessary for the partition of the dialog, main or child window of your program by several parts.
25 Mar 2021 by Aleh Baradzenka
In this article, you will learn about an adjustable control that has zooming and scrolling tabs, dragging with the mouse, custom drawing and much more.
16 Mar 2021 by Aleh Baradzenka
This control is another kind of tab. Tabs are displayed as horizontal stripes and can be collapsed into buttons. Each tab is assigned its own window, which is shown when you click on the tab.
15 Oct 2012 by Ambesha
Freind, try this and implement the same in your code if required: Delete Specific Items: Go to Start --> Run --> Type "regedit" in the Run dialog box. When in the registry, browse to the following key: HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Explorer>RunMRU. Delete...
11 Oct 2012 by AmitGajjar
Hi,You can apply style to your progress bar. yourProgressbar.Style = ProgressBarStyle.Marquee;Hope it works for you,Thanks
7 Jan 2013 by Animesh Datta
Hi Everyone....I have a datagridview which has one comboboxcolumn which has 3 Items.Now to get which Item is selected(from DataGridView comboboxcolumn ) I have used EditingControlShowing event . It Works fine ,but if i change the selected item without editing the datagridview...
15 Jan 2013 by Animesh Datta
Hi Everyone....I would like to generate attendance sheet.. i thought of using either grid or table, and Number of columns in the grid/table will be around 30 columns(for 30 dates in a month) along with employee name and empid (it is just like attendance register). If administrator select the...
28 Feb 2013 by Animesh Datta
Hi Everyone...I have a Parallel.Foreach loop by which i load a listview , i have a button for stop the execution.Now my question is , when the execution is going on if i push the button then the process will be stopped .I found some code in net but nothing happens.my code is private...
26 May 2012 by Anurag Sarkar
Desktop applications are installed on PC/LAPTOP & then you can work on them it can not be used by several users. Unlike Web Application.Thanks
4 Apr 2013 by Archit Patel
Hello Every one...I work on one desktop application in which i want to manage internet data use by particulate time duration. any way to get this type of data use in c# application.
27 Jun 2013 by Archit Patel
Hello..i work on one desktop application in which i want to do auto login to website. means i want one application which ask me the login page url,username and password and when i click on login button it automatically try to login and if login fail than it try agian and agian still login...
27 Aug 2013 by Archit Patel
Is it possible to see the Hard Disk temperature with some kind of S.M.A.R.T API or anything like that?if yes than how ?i want to use it in one desktop application.
11 Mar 2019 by Archit Patel
this is my code it gives error . it could not found ManagementObjectSearcher class from using System.Management;my codeusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using...
27 Aug 2013 by Archit Patel
i work on one project in that i make my window from transparent. in that one label in that label text set by dynamically. after set the text it shown like below link image.http://i.stack.imgur.com/rmCM5.jpg[^]i want clear type text in the label.please help me to solve out this.
9 Sep 2016 by Archit Patel
I work on one c# desktop appication.in that i use Crystal Reports.In it there are one header and in header i put one static .jpeg image file .When i get report at that time the image in header is not display in good quality. But the original is in good dpi and also in good quality than also it...
10 Sep 2013 by Archit Patel
I have one application.which is made in vb.net using microsoft access 2003 database. i make setup and try to install it in window 7 64 bit .it install successful but database connection not occurred.it given below error. Exception Text...
18 Sep 2013 by Archit Patel
I have one data-grid view which is bind dynamically. and it contain data like below screen shot.Image Linkhttp://i.stack.imgur.com/RZOSN.jpg[^]Now problem is i want change cell color based on data value. i want to deduct tamount-paymentamont and if it >=1 then i want to set this two...
18 Sep 2013 by Archit Patel
i try this and it work for me.. for (int n = 0; n
4 Oct 2013 by Archit Patel
Hello...I work with one c#.net desktop application which use Access Database.I also put the crystal report with given static database path.(My database path is like "E:\Data.mdb").Now problem is i want to make setup file which can contain database file as well as SAP crystal report...
24 Sep 2013 by Archit Patel
I work on the c#.net window from application, in that i want to add crystal report.i know how to add crystal report and data source connection.But problem is i want to add data source connection relative path (like Data Source=|DataDirectory|Db.mdb or something else) so any computer can...
29 Sep 2013 by Archit Patel
Hello,i am working on Office PowerPoint 2007 using c#. i want to open the power point document, so i have done some code for the same. but am facing one problem. i have attached code spinet as follow.And i also add the reference of...
9 Apr 2012 by arpita mondal
how do i get system date in vb.net? and also i wannna store that date in my database
24 Apr 2012 by Arun Kumar K S
How to get the gridview cell control in windows form application using row and column index. controls means combox in gridviw cell I can get it from EditingControlShowing event in there using (ComboBox)e.Control;My question is how to get it using row and column index
3 May 2012 by Arun Kumar K S
I want to create one web browser that can encrypt webcontent(https) how I can do this using web control in .net
24 Jul 2013 by ArunRajendra
Try this link. http://devproconnections.com/net-framework/how-consume-wcf-service-using-wpf[^]
29 May 2016 by ashwini kumar
I need to make a Desktop Application with following features :Once installed, it gets launched at the time user logs in and runs in the background.If the user selects some text from browser or from notepad and clicks a particular key combination the application gets activated and the text he...
16 Apr 2014 by AsmoconX
The situation (all parts of program are built using C#):The program MUST run on a CLIENT PC. A user will manually login to the Host using windows built in Remote Desktop Connection. Only one Remote Connection will be open at any given time.I am curious if there is a way for the program...
11 Oct 2013 by ASP.NET Community
Capturing Key Strokes and Doing a Post backWith the invention of Web 2.0 customers are becoming more and more demanding when it comes to
3 Oct 2013 by Azee
Hey there, You could save the DataTable in the Session after adding row to it.This way when you want to add another row, just get the DataTable back from Session, add a row to the table, bind it to the GridView and save it back to the same SessionHere:Use this statement:If...
21 Jan 2013 by bart.janssen
I 'm pretty new to c# and try to look for a solution to create a little first app with excel.What I try to do is to make a order list and later I want to export to PDF.Step 1 scan a barcode and post to first column in data gridStep 2 search the barcode in excel and post back the...
31 Jan 2013 by bart.janssen
private Microsoft.Office.Interop.Excel.Range GetSpecifiedRange(string matchStr, Microsoft.Office.Interop.Excel.Worksheet objWs) { object missing = System.Reflection.Missing.Value; Microsoft.Office.Interop.Excel.Range currentFind = null; ...
17 Jul 2012 by bbirajdar
Check the solutions...
28 Aug 2012 by bbirajdar
Start herehttp://msdn.microsoft.com/en-us/library/dd30h2yb(v=vs.80)[^]http://msdn.microsoft.com/en-us/library/ms754130.aspx[^]Code samples[^]
29 Sep 2013 by Bernhard Hiller
In the folder where you found Microsoft.Office.Interop.PowerPoint.dll, there is also a office.dll. Add a reference to it.
6 Aug 2023 by Bhavin Pokiya
I have created windows forms application with target framework 4.7.2. I am doing USB communication with device. I have 4 buttons on UI from which 2 button enable(connect and disconnect) and 2 disabled(download data and download log), when I click...
19 Dec 2016 by bhudev
Hello ,i have to try to connect one ip address in my desktop application with the dns.beginhostentry but it gives error "no such host is known" while i am using with alias its works fine for the same ip address. example :string ip_address ="123.456.789.012" string alias...
5 Nov 2012 by bikramjeet.sm
Hello guys I need a help regard desktop gui design i want to make up my desktop application buttons, gridview and window form also. example u can see window form of MS office it just a example how can i make this kind of gui in .net plater form.Thank You
15 Oct 2012 by Bitla Phanindra
To delete the run box history:Go down to your start menu and right click on the start button. A small menu will appear. Choose properties. The taskbar and Start menu Properties will appear. Go to the Start Menu tab . Remove the tick next to Store and display a list of recently...
28 Jul 2015 by Bjørn
A Service listening to Windows EventLog, recognizing attacker IPs and block them in the Windows Firewall.
15 Sep 2015 by Blondy314
An application which allows you to set a different wallpaper for each desktop
8 Jul 2012 by caof2000
Hi folksI would appreciate if anybody any can guide me on how can I control the start (load) of the windows 7 desktop?This is the specific scenario:After turning on a machine and log on, I would like to start a specific program (that I would develop) that needs to interact with the...
29 Sep 2012 by Casey Sheridan
How about the program settings? In the Solution Explorer, right-click on the project and click on "Properties"In properties, navigate to "Settings" and create the settings you want to store.Then reference these settings by the tag:My.Settings.[SettingName]Any further questions, just...
21 Nov 2012 by cellurl
using System;using System.Threading;using System.Collections;using System.Diagnostics;using System.Runtime.InteropServices;using System.Collections.Specialized;using System.IO;namespace Desktop_withExplorer{ public class Desktop : IDisposable, ICloneable ...
29 Mar 2014 by CHill60
You can use the EditingControlShowing[^] eventThere is an example on stackoverflow[^]and at wrox[^]and msdn[^]
7 Jan 2015 by CHill60
Further to the comments from @Praveen Kumar Upadhyay you might find this CP article useful Monitor and Manage Services on Remote Machines[^]
4 Mar 2016 by CHill60
Have a read of OriginalGriff's articles on passing information between formsThis is the first oneTransferring information between two forms, Part 1: Parent to Child[^] - there are links to the others within the article
13 Mar 2017 by CHill60
Further to Solution 1, you might find these articles in the MSDN documentation useful:Planning a SQL Server Installation[^]Best Practice recommendations for SQL Server database backups[^]MS SQL Server Administration[^]By way, I think you mean Server based not Service based - however...
23 May 2017 by CHill60
See this Codeproject article: A Ready To Use Software Licensing Solution in C#[^] And these discussions: How to: License Components and Controls[^] copy protection - License for C# desktop application - Stack Overflow[^] How do i licence my c# app?[^] All of which will lead to other examples
15 Nov 2018 by CHill60
Tableau is popular I'm told. There are alternatives depending on how much and if you are prepared to pay Starting points for your research Top 10 Alternatives to Tableau: Analysis of Popular Business Intelligence Tools - Financesonline.com[^] 16 Tableau Alternatives for Visualizing and...
6 Feb 2012 by Christian Graus
Please in future use real tags. Desktop ?AVIs are large, because they are not compressed. Compressing is slower, of course. Or you can compress after creating the file. There's tons of articles on video creation on this site.
7 Nov 2013 by Christian Graus
Your code is a nightmare. For a start, it's using ifs instead of a switch. Second, string mashing SQL is always bad. If you stop and look at your code, you are looking for booknumber n+1 where n is the checked item. That logic is pretty easy to work out in a loop, creating a list of items to...
23 Nov 2014 by Christopher Fernandes
I have a Desktop based application in which i want to add reference to Microsoft.Office.Interop.excel for Excel 2013. I seem to not find any way to do that. Neither are the PIA's available for Excel 2013.Please help.Thanks in advance
5 Jul 2017 by cjecje
This seems like it should be simple but I'm having problem correlating multiple services for a device. I need to read characteristics for I have multiple devices, each has a custom service as well as implementations for some of the generic services. I thought that if I enumerated based on my...
12 Jun 2012 by Clifford Nelson
You can also do things in XAML, and there are cases where this is better. Maybe not in this case, but some things just do not work well programatically:string Xaml= @"; ...
23 Sep 2012 by Code-Hunt
Hi allDim ds1 As New DataSet() 'Dim ds As New DataSet() Dim sql1 As String = "SELECT sum(present) FROM attendance where present='1' and Emp_id='" & TextBox1.Text & "'" Dim connection As New SqlConnection(str) Dim dataadapter1 As New SqlDataAdapter(sql1,...
27 Aug 2013 by Code-Hunt
How-to-retrieve-hard-drive-tem...
27 Aug 2013 by Code-Hunt
managementobject-class-not-sho...
8 Jun 2012 by CodingLover
Learn how to manage multiple log files in a single application using log4net.
21 Oct 2013 by CodingLover
Hi all,Every-time once I connect/disconnect the second monitor and extend I have to re-arrange all the shortcuts on my desktop. So I have to spend lot of time to re-arrange them all. How can I stop this, comments really appreciate.Thanks in advance!
18 Apr 2012 by coolloud13
Hi!!I wanted to create a temporary pdf file based on the results, and allow user with a choice to either save or discard the file.I know how to create pdf files but I wanted to know how to create "temporary pdf file".[Working on some desktop application]
21 Apr 2012 by coolloud13
As you might know there is a event called "LostFocus" in web applications,,and I was thinking is there something like "LostFocus" in Desktop Application,,?If YES guys please help me out,,I have tried but getting nothing,,Thanks!
15 Oct 2013 by cyanceenu
Hi..I have a desktop application developed in VS2008,I have created a setup (msi/exe) for that application in a setup project..everything is fine.. installation successful.I have another application of same kind and created setup for that application also.But When I try to...
27 Jun 2012 by DamithSL
you can check cbosupplier.SelectedItem value before search on database. if there is empty or default value, you can avoid before search var supplier = cbosupplier.SelectedItem.ToString();if(!string.IsNotNullOrEmpty(supplier)|| supplier != "please Select supplier"){ // search on...
22 May 2014 by DamithSL
Use Timer[^] and write the application status on every minute or 5 minutes... to a text file or database. ref:http://social.msdn.microsoft.com/Forums/windows/en-US/43daf8b2-67ad-4938-98f7-cae3eaa5e63f/how-to-use-timer-control-in-c?forum=winforms[^]
14 May 2012 by Darkcharm
Now I need to enum all the "ICON" on the desktop such as "My Computer" and other .lnk s.After that I will draw the ICONS to a HDC and get the image data,also,I need the dest file of the .lnk s..How could I do ? I read some about Windows shell but I still don't know what to do...
8 Nov 2012 by Dave Kreskowiak
Following your code, you completely wrecked the purpose of doing work on a background thread.In the DoWork method, on a background thread, you told the UI thread (this.Dispatcher.Invoke) to execute the long running code, completely removing the point of the background thread.The...
23 Feb 2019 by Dave Kreskowiak
You're going about this the wrong way. What's the point of the exercise? Are you going to be writing an app or learning a language? You can't do both at the same time. Attempt that and you end up badly writing the application and barely learning the language/framework. Why is that? This is...
8 Feb 2020 by Dave Kreskowiak
First, a pet peev of mine. Why are you calling .ToString() on textbox.Text properties? IT'S ALREADY A STRING!! That's what a Text property returns! A NullReferenceException occurs because your code is making assumptions about things working or returning data when it doesn't. A variable contains...
3 Jun 2020 by Dave Kreskowiak
Considering you can even uninstall Windows itself, no there isn't. Think about what you're asking in the world where viruses and malware run rampant and then think of what would happen if those apps found a way to do what you want. THAT is why...
1 Sep 2020 by Dave Kreskowiak
Caching really isn't going to help much with that problem. First, loading all the records doesn't scale well, even if you cache the result. You're just transferring more and more data all in one block. The problem you have is that you're...
13 Jul 2021 by Dave Kreskowiak
Save yourself the pain of this not working at all in future versions of Windows and create a small application that launches on user login. This app can "register" itself with the service application, receiving notification from it and launching...
6 Apr 2022 by Dave Kreskowiak
Reposting the same question will not change the answers, nor absolve you from actually thinking about what your code is doing. There is only one place in that line of code where you're converting something to an integer, then you're casting that...
10 Dec 2023 by Dave Kreskowiak
You cannot run an executable from anything other than an actual file on disk.
29 Feb 2024 by Dave Kreskowiak
Look in Task Manager, on the Details tab, and you'll find that no matter how many Notepad WINDOWS you have open, there is only ever one instance of Notepad.exe, and only ever one "MainWindowHandle." On Windows 10, there will be one instance of...