windows-application

Best practice for application-icon in windows

So far I had "designed" my app-icon in the Visual-Studio-Editor. 16-Colors, 4kB. Now someone created a more sophisticated and up-to-date app-icon for me, which results in a filesize of about 250kB. Problem: A user reported, that win2000 is complaining, because it is not able to digest this amount of data for an icon. Question: What ca...

Converting Console Application to Windows Application in Visual Studio 2008?

I found this solution which works, but I find it hard to believe there isn't a one-click solution to this problem. Do you know a better way? ...

Dynamically add a usercontrol in VB.net

I have made a custom UserControl i Vb.net (windows application). How can I add this dynamically to a form? ...

Access to a single pixel in C#

Hello, I'm working on a school project right now. It's meant to be a 3D editing software, (like a very minimized version of Maya). I have to write it in C#, using the 'Windows Application Project'. I intend to implement all the 3D stuff myself, from projections to shading. My question is, how can I get direct access to a single pixel in ...

How to download a file from a website in C#

Is it possible to download a file from a website in Windows Application form and put it into a certain directory? Thanks! ~~Seth ...

Transferring image data between C# and C++

Hello, I am working on a project where I'm going to create a user interface in a C# windows application. It needs to display a picture. And I want to transfer the picture data to a C++ module that will edit it and then return the result. I've already established how to transfer data between C# and C++ (I use a C++ DLL). My question is:...

What is WPF and how does it comapre to WinForms?

I've been looking at WPF, but I've never really worked in it (except for 15 minutes, which prompted this question). I looked at this post but its really about the "Flash" of a WPF. So what is the difference between a Windows Forms application and a WPF application? ...

send file from website to windows application

I have a file in the website and i m trying to send this file to windows application using the Response.BinaryWrite (getContent)( Where getContent is the byte array having the file which I need to send) vis HTTP post method only. Also I m adding a Header and Content-Type as application/octet-stream in the Response. Now while reading th...

Right to left controls in Windows Applications!

i am a new windows application programmer and have a right-to-left language. i want write my own app in rtl lang. how can i perform this? should i set RightToLeft peroperty for any controls in forms to Yes or true?? this is very harmful!! can I set something to convert and set controls to rtl? can i do some settings in "Settings.settings...

interacting with the browser using C#

i wish to interact with my browser window may be IE great if it works on Firefox too, using C#. I want to make a software which can fill the entries in a webform automatically. In old times there was gator now is roboform, where it can fill in the values automatically. I actually have users who are comfortable working on an old window...

performing http methods using windows application in c#

There are many sites which call a script upon form submit and pass in parameters using HTTP POST or GET, using a web debugger i have found the parameters being passed. Now i wish to do the same thing through my Windows Application in C#. How can i achieve such a functionality? I am currently using HttpWebRequest and HttpWebResponse clas...

any code conversion tool for converting borland c++ to visual studio C++

I have a old windows application written in borland C++ 5.0. this uses the OWL library very much in it's code. this has to be ported to Visual studio 2005/2008 (C++ or C#). search in google shows lot of links but nothing quite concrete or useful. can anyone show the correct direction to start this? also share any pitfalls or best practic...

What is the difference between a windows service and a regular application?

I have only created regular windows applications (C# mostly). What differentiates a windows service from a regular windows application? What makes them different? What can a service do that an application can't? What are the differences seen from a developers point of view? How do you create one? Is it just to create a regular applicatio...

Application Updater

Hi, does anybody know a good, flexible and free component for automatic application updating beside ClickOnce (not necessarily .NET only)? In the past there was the Updater Application Block from Microsoft. But as far as i know its not maintained anymore. What Technology are you using to keep you applications up to date? ...

Why does Windows application is requiring .Net 3.5 framework

I have the Target Framework set to 2.0 on my windows application, yet when I try to install my app on the server, after publishing it through VS 2008, it is trying to install .Net 3.5 on the server. I do not want to install 3.5 on my server. When I copy the files from my local /bin/debug/ to the server and double click on the exe, noth...

Would it be a bad idea to develop a desktop application that directly accesses the SQL server?

Hi! I want to install a desktop application (on many stations - about 10-20) should access the SQL Server directly, no Services, and no server-DALs. The application will be installed on a local network on about 10 machines, while one of them is a server. When I will install the program I will set the connection string, and the applicat...

Strange unhandled exception

Hello, I've been developing a windows app in .net C# for GSM Modems and i've come across a strange error: System.ObjectDisposedException was unhandled Message="The secure parameter identifier was closed (pt: O parâmetro identificador seguro foi fechado)" Source="System" ObjectName="" StackTrace: at Microsoft.Win32.Unsafe...

Call public function in another application

If I have a Windows Application WinApp that has a public function pubFun, how can I call it from a different windows application --> WinApp.pubFun() ? Thanks in advance ...

.net Setup project force new file replacement on reinstall

Hello, I have a setup project that install a couple of projects and a couple of external files (one of which is a SQLite Database) - everything worked fine until i've recently modified the base database file included in the setup project. Now, everytime i try to reinstall the project the new database file does not replace the previous...

Windows GUI application when user is not logged in?

I've written a Autoit script that starts a GUI application, when the application starts there is a login form. The scripts fills the login form and tries to log in. Then it records the time it took to login to the application and shuts the application down afterwards, writes a output file with the time it took. The thing is, I can't get...