Click here to Skip to main content
15,886,774 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 Score

Desktop Programming 

9 Jan 2023 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.
16 Aug 2020 by Michael Haephrati
Desktop application that can be used to convert from and to various audio formats, such as .mp3, .m4a and .wav
17 Dec 2013 by Member 9913858
An introduction to using FakeModel to create test aata for you.
12 Apr 2018 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.
30 Jul 2020 by DiponRoy
Making schedule jobs exe using Quartz scheduler
20 Jun 2020 by Just Perfection
In this article, you will learn about the GNOME Shell extension basics, schema, gettext and more.
12 Sep 2022 by Michael Sydney Balloni
A .NET client-server application for sending files over a network
9 Apr 2012 by OriginalGriff
Try:Dim today As DateTime = DateTime.NowFor DB:Using con As New SqlConnection(strConnect) con.Open() Using com As New SqlCommand("INSERT INTO myTable (myDateColumn) VALUES (@DT)", con) com.Parameters.AddWithValue("@DT", DateTime.Now) com.ExecuteNonQuery() End UsingEnd Using
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...
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...
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...
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....
7 Feb 2017 by hamdenvogel
Learn how to implement a real stream file based dataset descendant with blob support and much more
28 Oct 2019 by stc.reseller
Helpful tips in labeling Office files or how to make Office file changes statistically visible, in one single step
15 Apr 2012 by Deepak_Sharma_
Hi,You can use AutoComplete feature of the TextBox to perform this task. Refer to the following link:http://idpkshr.wordpress.com/2012/03/31/autosuggest-textbox-from-database-column-in-windows-forms/[^]
4 Jun 2012 by thatraja
Search wiki Category:Computing platforms[^]
12 Jun 2012 by Steve Maier
What about adding all of the Ellipse programatically instead of in a xaml file? Then you can just fill in the details from the database.var tool = new StackPanel();tool.Children.Add(new TextBlock() { Text = "Proxima Centauri" });tool.Children.Add(new TextBlock() { Text =...
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...
5 Nov 2012 by Sergey Alexandrovich Kryukov
Maybe my past answers could help you:http://www.codeproject.com/Answers/151247/GUI-Apperance-C-Net#answer1[^].See also some...
3 Jun 2013 by Zoltán Zörgő
I assume you didn't visit google in this topic... pity :(http://www.dreamincode.net/forums/topic/156922-aes-encryption-and-c%23/[^][update]This is working for me:string decrypt_function(byte[] Cipher_Text, byte[] Key) { RijndaelManaged Crypto = null; ...
26 Oct 2013 by Mahesh Bailwal
Following steps may resolve your problem 1. Declare a textbox in your form as given below private System.Windows.Forms.TextBox txtCurrentBox;2. Add Enter event handler for every text box like below private void textBox1_Enter(object sender, EventArgs e) { ...
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...
1 Jan 2014 by Yvan Rodrigues
Not without third-party libraries. You would normally do this by referencing the WinRT runtime[^], and then making the API calls to show the toast:namespace BurntToast{ class Program { static void Main(string[] args) { MakeToast("Ooops.", "You...
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() { ...
16 Sep 2015 by _Plutonix
Helper class to add, change and delete Registry based Explorer Context Menus from your app
23 Apr 2018 by Michael Haephrati
When GetClipboardData() is used to access the data captured by the Clipboard, is there an API call or flag to distinguish between a Copy action (CTRL+C) and a Cut action (CTRL+X)? What I have tried: Searching the web. Generally speaking, I couldn't find any documentation about the difference...
23 Apr 2018 by OriginalGriff
No. You can't tell, because the application which places it on the clipboard: 1) Doesn't tell the clipboard anything other than "here is some data, it's this type" 2) Doesn't have to obey "normal" cut or copy rules at all: it could for example move text to an archive, and copy it to the...
23 Apr 2018 by Jochen Arndt
As said in solution 1 and the comments: There is no general way to know what had happened on the source side. But there is one exception: Delete-on-Paste Operations These are used when cutting files (e.g. from within the Windows Explorer). With those the source requests the target to get...
8 Feb 2019 by DiponRoy
Limit number of lines in a RichTextBox
20 May 2020 by MadMyche
I would recommend that you read through the following page and verify that you have everything set up correctly; sounds like the MailKit sample code may not be the same as Google provides MailKit Issue #962: AuthenticationException 334[^] It...
21 May 2020 by Patrice T
Quote: How to solve error number of query values and destination fields are not the same. In C# windows application Rather simple: count number of values in query, count number of fields in table, there should be a surprise. After that, you need...
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...
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...
19 Apr 2012 by Jαved
Hi,Go through the following link it will give you an idea-Speaker_recognition[^]
21 Apr 2012 by Wes Aday
Yes,http://msdn.microsoft.com/en-us/library/system.windows.forms.control.lostfocus.aspx[^]
21 Apr 2012 by Sandeep Mewara
Assuming a textbox control, look here for all the events exposed for a textbox: Textbox Events[^]Event you are looking for: Control.LostFocus Event[^]
7 Jun 2012 by Tim Corey
You can use a Windows function to determine if you are running on Remote Desktop (a session) or directly on the machine (host computer). Here is a Stack Overflow question with the information you...
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...
17 Jul 2012 by Sergey Alexandrovich Kryukov
The request looks absurd: "before displaying the desktop" and "will show a simple form" contradict to each other. There is not such thing as a form shown without desktop. However, you can possibly do something when the desktop is there.You can develop a Windows Server which you can subscribe...
30 Sep 2012 by krushna chandra jena
I want to open disk defragment window in Windows7 by visual studio 2010 C# .net .there i use this codeProcess.Start("dfrgui"); // 'dfrgui' is used to open disk defragment window in windows 7but that Window does not appear .but in windows xp i...
1 Oct 2012 by Sergey Alexandrovich Kryukov
Actually, MouseDown and Click events do not interfere. As you could notice, the click event is invoked after the MouseUp event, so MouseDown and Click are totally isolated. You handle them in a usual way.Just for your understanding: your button1_Click or button1_MouseDown are not events, but...
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[^]
12 Oct 2012 by Sergey Alexandrovich Kryukov
This matter is covered here in detail:http://msdn.microsoft.com/en-us/library/4ddxk2ye%28v=vs.100%29.aspx[^],http://msdn.microsoft.com/en-us/library/x56s4w8x%28v=vs.100%29.aspx[^],http://msdn.microsoft.com/en-us/library/s2esdf4x%28v=vs.100%29.aspx[^].Any particular...
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...
24 Oct 2012 by Frank R. Haugen
So this is a noobish question but I'm failing to get the correct results.I have a table (Data Table 1) in a DB that I have successfully connected to and extracted to a DataSet. Now I used the MSDN-website provided example code to test the information, and the code (Code Snippet 1) prints out...
9 Nov 2012 by Shanalal Kasim
Use below codeClipboard.SetText(txtClipboard.Text);Also refer Clipboard Copy and Paste with C#[^]
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[^]
24 Jul 2013 by Sergey Alexandrovich Kryukov
Remote desktop application is unrelated to WCF, because it uses its own protocol, RDP:http://en.wikipedia.org/wiki/Remote_Desktop_Protocol[^],http://en.wikipedia.org/wiki/Remote_Desktop_Services[^].You can find good samples of the client on CodeProject:Remote Desktop using...
9 Oct 2013 by _Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
26 Oct 2013 by phil.o
You could restrict by the column index: if your button is on the fifth column, for example, it's index is 4. So, instead of:if (e.RowIndex >= 0 && ((DataGridView)sender).Columns[e.ColumnIndex].GetType() == typeof(DataGridViewButtonColumn))you can write:if (e.RowIndex >= 0 && e.ColumnIndex...
27 Oct 2013 by Sergey Alexandrovich Kryukov
With virtual keyboard and several keyboard inputs, there are some difficulties. One of them is that, in general case, an input need keyboard focus, but clicking on it grabs the focus and deactivates the virtual keyboard. Here is my resolution: you can make the keyboard window not focusable but...
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.
19 Nov 2013 by Garth J Lancaster
I think they are both wrongThey need to understand the functionality of the program and all the use casesThey need to understand what architectural issues there may be, transaction rates and growth factors Then they need to design test cases for the old vs the newThen they need to work...
21 Nov 2013 by Er Daljeet Singh
here is the solution of your problemprivate void button1_Click(object sender, EventArgs e) { if (btnChoosePhoto.Text == "Fotoğraf Seç") { openFileDialogPhoto.Title = "Lütfen Fotoğraf Seçiniz"; openFileDialogPhoto.Filter = "...
5 Feb 2014 by Mehdi Gholam
Start here : Remote Desktop Web Access (RD Web Access)[^]
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 hari111r
Hi,I would like to embed the (MsRdpWebAccess.MsRdpClientShell) active-x control from Remote desktop Web access (win 2008 r2) in my own web page?orIs there any way to use rdp file in web application
13 Feb 2014 by Sergey Alexandrovich Kryukov
If you really spent (should I say "wasted"?) whole two years for such things (did I get you correctly? or may be you also did something else, something useful? :-)), I would think about some career change. :-)On CodeProject, you can find at least two decent projects, apparently built "by...
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...
15 Apr 2014 by James_Finch
Why not create a server / client program set? It's not too difficult to create a server client relationship using TCP or some other protocol other than RDP. The 'client' can monitor pretty much any activity on the host machine (as well as control it) and report back to the 'server'.
15 Apr 2014 by Sergey Alexandrovich Kryukov
AsmoconX wrote:This is a test environment and information is not meant to be added or modified on the remote systems (for validation and testing requirements). The test-process requires us to login to the system using a Remote Desktop Connection and perform a set of tests within that Remote...
5 Oct 2014 by Richard MacCutchan
You have already been given some suggestions at How Do I Obtain The Data From Access In Data Gridview By Passing A Query With Where Conditions[^]. Please do not repost.
8 Dec 2015 by ZurdoDev
https://developers.facebook.co...
25 Jan 2016 by Ermany
Hi everyone! I am reading integer value from PLC(you can think from file which periodically updated ) in every 5 seconds(or by a click a button) and displaying on the screen and use that value to do some processes. I have a problem that, if the user whom can directly control the PLC machine ...
25 Jan 2016 by OriginalGriff
The Queue class would be a natural fit here, if it would only automatically dequeue when it reached it's limit!But...It's easy to do: public class FixedQueue : Queue { private int _fixedSize = int.MinValue; public int FixedSize { ...
25 Jan 2016 by Patrice T
I would use an array to store the previous values.In order to reduce The amount of work to manage the array, I would use it like a circular buffer, the advantage is that it avoid moving the data as the oldest value is replaced by a new one.Circular buffer - Wikipedia, the free encyclopedia[^]
2 Mar 2016 by Richard MacCutchan
I would suggest you start at Windows App Studio - Free Tool to create apps in Windows Stores[^].
9 Sep 2016 by dee420
It can be done by using 'Retain Original Image Color Depth' in crystal reports.I am using Crystal Reports bundled with Visual Studio 2015. Solution is as below-1- Right Click on Crystal Report.2- Click 'Report' from context menu.3- Click 'Report Options' from sub context menu.4-...
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...
17 Jul 2017 by Jochen Arndt
You can't do such. It would require that an application stored on the drive is started whenever it is plugged into another system (auto start) which is usually denied by default (there will be a message asking if execution is allowed). Then this application needs online access which might be...
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.
6 Apr 2018 by OriginalGriff
Basically, don't. The problem is not that they are different environment - they are - or languages - they are - but that a browser based web app is a completely different paradigm. It's server / client based, using two different languages (javascript, HTML, and CSS for the client; VB , C#, or...
6 Apr 2018 by Wendelius
To add to solution 1: If the application requires access to local resources, like disk, ports etc. then creating a web application might face some challenges, depending on the architecture. Also one thing to consider is, do you need to support both versions? If you do, I'd suggest trying to...
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:...
20 May 2020 by Garth J Lancaster
The 334 indicates an authentication error of some kind - I'd have expected extra information in the response alluding to the exact problem
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...
11 Jan 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
11 Jan 2022 by Richard MacCutchan
This is not something that you can write in an afternoon. There are many issues that you need to understand before you can create such a project. Take a look at RealVNC® - Remote access software for desktop and mobile | RealVNC[^] to get a better...
14 Aug 2022 by OriginalGriff
That's not a question we can answer, or at least not directly. It is possible - it's called "remote access" but it has to be enabled by the hosting service, and that's not too common because it's a huge security risk - you open up the whole DB...
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) |...
24 Sep 2022 by Gerry Schmitz
Quote: The version of .NET Framework (4.5 and later) installed on a machine is listed in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey is missing, then .NET Framework 4.5 or above isn't...
24 Sep 2022 by RickZeeland
The registry location seems to change per update as a user commented here: Correct approach to Check for .NET 6 installation - Microsoft Q&A[^] Quote: ...
6 Aug 2023 by Graeme_Grant
InvokeRequired (Microsoft Learn)[^] is only required if calling from another thread other than the main UI thread. So what you need to do is work out why the first time you're on a different thread and the second why you are on the main thread....
29 Sep 2023 by OriginalGriff
It really depends now how you wrote the original application - if it's organised as separate modules: Presentation Layer, Business Layer, and Data Layer as separate Assemblies for example then it should be pretty simple to just respecify the PL...
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...
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...
21 Dec 2011 by sunit_82
Hi http://msdn.microsoft.com/en-us/library/windows/desktop/aa380809(v=VS.85).aspx[^]What i'm trying to achive is to have a webpage in a website with Remote Desktop ActiveX control available in link above. By this I want to remote desktop to the machine hosting the website through...
21 Dec 2011 by Sandeep Mewara
AFAIK, this should be possible: "I want to remote desktop to the machine hosting the website through internet from any other machine."You need to make sure that the system you are trying to access using remote desktop via internet is configured such that it has public IP address. ActiveX...
15 Jan 2012 by fuchuanblue
Hi friends,Does anyone know how to get information about icons on the desktop? I want to set icon's location on the desktop. I found this article[^], but I don't know how to set the position of desktop icons.Thanks for any help.
16 Jan 2012 by kornkimhour
I want to load Images From Database To ToolStrip... could you help me? Thank In advanced...
16 Jan 2012 by paladin_t
How to load it depends on how you saved it.1. Query the raw data from db, maybe in an encoded binary or text format;2. Decode the loaded raw data into original supported image format for DotNET;3. Set some related properties of your ToolStrip controls, like Image.
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.
2 Apr 2012 by Manish Kumar Namdev
Hello friends...I am novice to Windows MediaCenter.I've installed Win XP SP 3 in my pc and installed Windows MediaCenter 5.3 to develop interactive TV applications.I have no knowledge in this area.Please guide me how can I go ahead to build such kind of application.What tools...
4 Apr 2012 by R. Giskard Reventlov
You need to be more patient: if you wait they will probably send you a link to the code you require. Why would you expect anyone here to just happen to have it handy???