Click here to Skip to main content
15,893,266 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 Title

Desktop Programming 

27 Aug 2021 by OriginalGriff
Quote: BUT I DONT KNOW HOW AND I DONT NEED TO LEARN IT I JUST NEED A SIMPLE CODE WHY YOU GUYS CANT HELP ME EVERYONE ON EVERY PLACE SAY IT AGAIN AND DOSENT HELP Well ... probably because you haven't tried, and don't want to learn: you just want...
13 Jan 2014 by OriginalGriff
It doesn't quite work like that - we are not that kind of site.If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys
17 Jul 2017 by Richard MacCutchan
Please stop reposting this question. You have received a number of suggestions already. If you really cannot solve such a basic issue then you should go back to your study guides and do some serious reading.
11 Oct 2013 by wim4you
We wanted a first impression of a clockwork using simple gear for visual evaluation. A provisory prototype is made.
4 Sep 2018 by simonp_ca
If you like those beautiful Windows10 PC startup screens and wonder how to capture and save them as images, this tip/trick is for you...
28 Jan 2013 by Agent__007
A simple WPF text clock gadget for Windows
26 May 2012 by lordkhan
Hey everyone..im have troubles on something which is desktop applications..im looking for information about what is desktop application and what is + and - sides of it..i couldnt find good documentations..can anyone help me please..
26 May 2012 by Nelek
A desktop application is an application that runs locally and stand alone in a desktop or laptop computer. Contrasting with "Web-based application" which requires the Web browser (and usually an internet connection) to run.I know is not much, but... could you use "improve question" and give...
26 May 2012 by Sandeep Mewara
Have a look at these discussions:MSDN: Designing for Web or Desktop?[^]Advantages of web applications over desktop applications[^]Web apps vs desktop apps[^]Desktop Applications Vs. Web Applications[^]
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
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...
10 Sep 2013 by E.F. Nijboer
As the error says, you need the provider. Try installing this and have another try (it is the 2007 version but compatible with 2003):http://www.microsoft.com/en-us/download/confirmation.aspx?id=23734[^]Good luck!
10 Sep 2013 by murkalkiran
Build u r application in platform target select X86 option and copy crystal report s/w to system wow folder
10 Sep 2013 by murkalkiran
tel me1> r u able to install the s/w?2>r u using the crystal reports in u r s/w?
11 Sep 2013 by murkalkiran
1. Go to C:\WINDOWS\systemWOW folder.2. Double click on the odbcad32.exe3. Click on the add button. Select Microsoft.mdb file. Click on finish. 4. Give data source name. Click on select, browse the drive in which software has been installed and select database.5. Click on advance...
11 Oct 2012 by indrajeet jadhav
Hey guys,Anyone ever create access control form based on role n module of the project gives access n authentication based on check box plzz help..If you have any idea u can als suggest me..Thanx :)
11 Oct 2012 by Prasad_Kulkarni
You should go there-[Authenticating Users with Windows Authentication][^] to learn how to authenticate user with windows authentication.Also have a look on CP article: Windows Authentication Using Form Authentication[^]
30 Jun 2017 by Mohideenmeera
Change the Modifiers to "Public" of the Label Property.... That would help you to achieve the task...
18 Mar 2017 by Member 12679636
I've seen many solutions to secure my desktop application using c# like dongles usbtoken but in fact i don't have enough budget is there any opensource that i can use using a flash drive but i want it to be a real security something like hasp.What I have tried:I've seen many solutions to...
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...
24 Jan 2018 by Member 9983063
Hello Guys, I was working on c# win form but I leave this project for some time now today when I open my project and I add a form to my application and when I run so am getting this error Additional information: There is no row at position 0. but in my DB I have 60000 data of this table I...
24 Jan 2018 by OriginalGriff
For starters, don't do it like that! Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Use Parametrized queries instead. When you concatenate strings, you cause problems because SQL...
16 Sep 2013 by ellasaro
So I have this weird problem,I wrote a program in Visual Studio 2010.At first I configured it so the binary would have an icon, lets call it icon A. Then I changed the configuration again and changed the icon to icon B. The problem is that if I copy/move my binary to my desktop the...
17 Sep 2013 by DaveyM69
Have you had a look at this[^]?
16 May 2019 by OriginalGriff
"It's not working" is one of the most useless problem descriptions we get: it tells us absolutely nothing about the problem. We don't know if you get an error message, or the wrong data, or even that that code compiles successfully! Remember that we can't see your screen, access your HDD, or...
29 Mar 2017 by Patrice T
Quote:I want to develop a project like Team Viewer.Teamviewer is simple for user because the programming team is skilled and have made a complicated program that hide complexity to users.TeamViewer is also huge, if you plan to do it alone and start from scratch, plan a 10+ years effort, or...
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 Jun 2013 by RomilGandhi
If you are working on desktop application or web application,and you want auto login if you already logged in your system than use window authentication,and if you want to authenticate credentials using one network than prefer to use LDAP authentication
15 Dec 2013 by DaveAuld
I have spent numerous hours over the last few weeks and carried out hundreds of google searches and tried tons of various things and cannot succeed in getting a remote desktop session to successfully work beyond the login prompt.I have tried the same on both Ubuntu 12.* and 13.* variants...
3 Oct 2012 by krushna chandra jena
Hi Everyone...i want to show Temporary files in a datagrid , hence it is a long term process i use background worker in my C# .net WPF application . my Code is private System.ComponentModel.BackgroundWorker _background = new System.ComponentModel.BackgroundWorker(); private...
8 Nov 2012 by Harel Moshe
Hello,You should add to the background worker a short sleep in its main loop to allow the UI thread to refresh the display.Try adding something like this to your foreach loop// This sleep will allow the UI thread to refresh the display.totalCounter++;if (totalCounter % 100 == 0) ...
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...
1 Jun 2012 by lordkhan
Hey everyone.. i have a mission which is about desktop applications.. i wonder that what is basic elements of desktop apps.. i just wonder title of this things..
1 Jun 2012 by Tim Corey
Here is a basic definition: http://www.pcmag.com/encyclopedia_term/0,1237,t=desktop+application&i=41158,00.asp[^]Basically, it is an application that runs on the computer directly instead of through a browser or a console. It has its own interface (the window that displays something)...
26 Nov 2013 by Member 9417653
Please under stand the flow of code . I have an interface Ishape which in some separate dll or class library. [InheritedExport] public interface Ishape { int Paint(int width, int height); }In my window application I have two classes. public class...
18 Apr 2014 by Shai Vashdi
Hi,Just use the meta data for example:[ExportMetadata("Name", "ControlsLibrary1.BlueControl")]Then when you load all of the Shapes you can add them to the Combo-Box.You can read more about it in my article:The Simplest Way to use MEF Fully Lazy DLL Loading[^]I hope it...
15 Mar 2015 by manchanx
Tidy, generic solution to bind Enums (with or without a DescriptionAttribute) to a ComboBox or other Controls
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...
9 Oct 2012 by krushna chandra jena
Hi Everyone...I want to make a software for one user only means if a user installed that software then no one can install it in another machine . and when installation will start Internet connection should be there means some other files should be downloaded from server to check the user is...
9 Oct 2012 by MT_
For that you need to create a setup project and add one application as pre-requisite. In that application, Probably you can write code to connect to your server, call a web-service which checks for licensing. If it returns true for given key, simply do not install further.
9 Oct 2012 by surendersinghprajapati
Further to Solution 1you can distribute license keys over the CD, Phone, email instead of fetching from service at installation time. In that case, you have to write code to validate this key (I mean you have to use some encryptions system to generate this key).So nobody would be able to...
23 Feb 2019 by Member 14160288
Hi, everyone My project is a rental desktop app with the following options: - it counts rental periods, amount of items and their prices. - this app shows detailed reports about rented items (and items in stock), debts etc. - it should be able to print these reports. - it contains a data base...
23 Feb 2019 by OriginalGriff
The best language is: one you know. If you don't know the language and the framework, then you add a large learning curve to your task. Quote: My project is a rental desktop app ... I was thinking about NW.js and Electron. But ... anything javascript is probably a bad choice for a desktop app:...
23 Feb 2019 by RickZeeland
I suppose you want to write a cross platform app that can run on Windows, Linux and Mac. Then take a look at these alternatives to Electron: https://www.slant.co/topics/9043/~electron-alternatives-for-cross-platform-app-development-using-web-technologies[^] And also:...
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...
9 Oct 2013 by _Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
31 May 2012 by Varun Sareen
Dear Friends,I have made an application which can access gmail inbox with the help of a desktop application made in C#.net 3.5.I am able to get each single mail of gmail inbox by providing the appropriate credentials from home but when i try to run the application from office environment...
5 Sep 2022 by NSIS 2022
Hello guys, How to hide or remove following row if cell value meet the condition. Exaple Column1 Column2 Column3 A. 1 H H. 7 g L. 9 f ...
4 Sep 2022 by Maciej Los
First of all - you can fetch into a datatable object only the data you want to get, by filtering a database in a query: SELECT ... FROM ... WHERE Column2 7; Second - you can filter datatable object: DataTable.Select Method (System.Data) |...
5 Sep 2022 by George Swan
I am not sure how you are binding your data table to the view, but here are a couple of suggestions that may be useful. If it is permissable to exclude the row where Column2 is equal to 7, you can use TakeWhile. IEnumerable query=...
28 Aug 2012 by Sandeep.S.Jadhav
Hi All,I am a new developer learning things now. Just started with the development career. I am technically challenged person so need help. I want to develop desktop application in C#. So I want some guidance like any reference links, ebooks etc. So please help me out in doing it.Thanks...
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[^]
28 Aug 2012 by Sandip.Nascar
Here are few links which you can go through it for a good start.http://www.readwriteweb.com/hack/2011/05/free-e-books-on-c.php[^]http://shivamkrpandey.blogspot.in/2012/05/free-c-ebooks-download.html[^]While you start going through the code, don't forget to read the DOT.NET Framework...
28 Aug 2012 by ridoy
http://www.csharp-station.com/[^]http://msdn.microsoft.com/en-us/library/aa288436%28v=vs.71%29.aspx[^]http://shop.oreilly.com/product/0636920024064.do[^]
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...
19 Dec 2016 by Peter_in_2780
If you read the documentation for BeginGetHostEntry, the IP address parameter is a System.Net.IPAddress, which is not the same as a string representation. Convert your numbers to an IPAddress and try again.
21 Jan 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Here we answer specific questions which members face during programming. We can't work on the whole source code. You need to do that yourself.If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario. ...
10 Mar 2022 by tim_c
Little background, my main experience has been vb.net/winforms and I've recently moved to c# and winui3 (desktop) and been banging my head to understand things. I've been going through a book called 'Learn WinUI 3.0' which has helped but isn't...
30 Jul 2020 by DiponRoy
Making schedule jobs exe using Quartz scheduler
22 Jun 2013 by Frank R. Haugen
I have a small app I use to visualize a starmap of a few hundred local stars, currently I'm using XAML to "draw" UI elements based on database's tables and it works incredibly well. HOWEVER, I am thinking of doing it in 3D and I'm in need of some guidance. How could I implement something...
22 Jun 2013 by Ron Beyer
Use ModelVisual3D and place spheres instead of circles. Generating a sphere-mesh in XAML[^]You will also have to supply the Z coordinate for the sphere you use. You can then use a camera object to be able to move around in the 3D world:3D Graphics in WPF[^]
4 Jun 2020 by Rojik
Basically, I have an idea for an app and want to know if you can create an app that's embedded into windows and can't be uninstalled. And how would you go about doing it? What I have tried: Tried googling, couldn't find anything / don't know...
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...
4 Jun 2020 by RickZeeland
This tool probably comes closest to what you want: way-to-lock-down-a-windows-pc~frontface-lockdown-tool[^]
2 Oct 2023 by Devendra Sarang
I am trying to fetch Data from API with Key. I am trying to fetch in Windows Forms application. I am able to fetch the data but when I try to display that data in datagridview, it shows an error message like: Cannot deserialize the current...
26 Sep 2023 by OriginalGriff
Your MovieNew class does not match the JSON. If I convert the "display" string to a genuine JSON string:{"movie_results":[{"title":"Hum Tum and Them","year":2019,"imdb_id":"tt10045256"}, {"title":"Hum Tum Aur...
26 Sep 2023 by George Swan
You need to have suitable classes to deserialize the Json into. Something along these lines. public class Movie { public string? Title { get; set; } public int Year { get; set; } public...
26 Sep 2023 by Graeme_Grant
To expand on what others have said, there are tools out there that can help you generate the classes from the JSON for you. My go to is: JSON Utils: Generate C#, VB.Net, SQL TAble and Java from JSON[^] Here is a sample of classes generated: ...
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
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
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....
24 Nov 2014 by Heba Kamel
Hi,i have some mails and want to check if those mails already registered on Facebook and Hotmail or not .any help ?
3 Sep 2013 by Gigabyte Giant
Hello everyone,So I am learning Java by choice, and I am following the Official Java Tutorials on the Oracle site, but as a side project I am developing a top down game.I have 2 sprites programmed into the game so far, and I want to be able to detect a collision between the 2.I am...
3 Sep 2013 by pasztorpisti
Collision detection is a very huge topic. Probably you would be okay with a very small and simple collision detector but currently it seems you can't write one for yourself and I doubt that you want to read a book on collision detection or want to learn the difficult math to solve your problem....
3 Sep 2013 by petrostherock
Check this outhttp://devmag.org.za/2009/04/13/basic-collision-detection-in-2d-part-1/[^]
3 Jun 2012 by lordkhan
hey everyone..i confused about smt. its possible to do desktop application in .NET with windows application and console application.. i wonder that what is another things.. one of java and its possible to do desktop application with windowsbuilder isnt it ? i ve never used java and others..i...
3 Jun 2012 by Richard MacCutchan
If you want to learn Java then start here[^].
13 Jan 2013 by Tharaka MTR
Connect to Ubuntu from Windows via RDP
4 May 2013 by Member 9918931
hi I have a web application and desktop application both written by C#, using visual studio. my question is how to connect these both applications with the same database ?please give my any reference or steps because I'm not propositional I'm beginner. Thanks[update by op]My...
4 May 2013 by OriginalGriff
If you want to have multiple applications using the same DB then all you need is to ensure that you access the DB via a multiuser server DB system - Sql Server or MySql for example. It insulates you from the actual file and handles all the multiuser access stuff for you.So set your DB up on...
18 Sep 2022 by Member 13698531
Hello guys I have project which have 4 page asp.net web application. I want Convert this web application into desktop application(Wizard form).Please Help me out to make this web application into installation form. Advance Thanks What I...
13 Apr 2020 by Richard MacCutchan
There are too many differences between webforms and windows forms for a simple conversion. You will need to create the desktop app from scratch based in the design of your web project.
13 Apr 2020 by OriginalGriff
Don't bother, unless it's been designing in a sensible way: PL, BL, and DL. The problem is that web apps rely on two things: a server and a client - and the client software is all in HTML (for the basic display description) and JavaScript (for...
18 Sep 2022 by Win32nipuh
You can try 1. GitHub - nativefier/nativefier: Make any web page a desktop application[^] it converts web site to app.exe but: it seems the site should be responsible in the time you run the app. I waited: I convert a web app to app.exe and...
9 Apr 2014 by nevil_119
I want to convert Natural Language questions to SQL queries using opennlp Java library.i.e. (Who won women figure skating in Sochi?) should be converted to (select name from winners where event='skating_woman'). Any body know which classes will be useful and how to achieve this?
9 Apr 2014 by OriginalGriff
"Any body know which classes will be useful"Pretty much all of them."how to achieve this?"Start by working for Google, or Bing and expect to be promoted big time if you manage it...There has been a huge amount of time and money spent on this problem: Google[^] and I'm not convince...
9 Nov 2012 by krushna chandra jena
H Everyone...In my C# .net desktop application i want to copy text from a text file and want to paste that text into a notepad or MS Word or Word pad .i use string.Copy(String str);to copy the text of that Text file but when open a MS Word or Note Pad or Word Pad ,nothing to be...
9 Nov 2012 by Shanalal Kasim
Use below codeClipboard.SetText(txtClipboard.Text);Also refer Clipboard Copy and Paste with C#[^]
9 Nov 2012 by Gautam Raithatha
You just need to write the string into text file and store it at desired path. Suppose your data is in string strValue:string strValue = "your data";FileStream fs = new FileStream("D:\\test.txt", FileMode.OpenOrCreate, FileAccess.Write);StreamWriter sw = new...
21 Jun 2012 by MacParekh
I am using below code for copy file from one folder to another.This is not full code If OpenFile.ShowDialog() = Windows.Forms.DialogResult.OK Then Me.TxtFilePath.Text = OpenFile.FileName End If Dim fiinfo As FileInfo ...
21 Jun 2012 by Tim Corey
The quick answer is that you need to set the MultiSelect property to true. Then the user can select multiple files and you can loop through them and copy them to the other location.Here is a question similar to yours with the correct answer...
21 Jun 2012 by Manas Bhardwaj
Use the Multiselect [^]property and loop through the FileName list. Something like this. The code is in C#, but should give you an idea.OpenFileDialog dlg = new OpenFileDialog();dlg.Multiselect = true;if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK){ foreach...
12 Feb 2014 by hari111r
Hi All,I want to create my own remote desktop web access page(RDWeb). I have a task to create a citrix like page that need to be linked with my web application. or is there any option to edit the RDweb pages.It that possible.Please help me comeout of it.
12 Feb 2014 by Nivedita Parihar
Here u may find any reference:http://www.serverwatch.com/server-tutorials/creating-a-web-based-windows-remote-desktop-client.html[^]
6 Feb 2012 by Member 4273922
I need to know ,How to Record screen with Audio in same time.I don't need any SDK and all I just need .net code without external dll.I try using AVI Wrapper. But Size of that File is too large.Can anybody help me out to sort it.
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.
29 Jun 2012 by talim
Hi there, i've problem open new window on newly Created desktop. I can start a new application there:I do:this->hNewDesktop = CreateDesktop(sDesktop.c_str(), NULL, NULL, NULL, WRITE_DAC | READ_CONTROL | DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | DESKTOP_SWITCHDESKTOP,...
29 Jun 2012 by talim
ok - Create seperate Thread an Create new window there - now it works. but now there is a Problem with MFC CWnd --> Here there are some problems Creating a window in a different thread - someone a advise?THX
29 Jun 2012 by SoMad
With reference to your Solution 1, my advice is: Don't do it!I have not had to start a new desktop and open windows in it, but many years ago, I was working on an application where we wanted to create windows and "move" the handling to separate threads. We ended up changing the...