Skip to content

Windows Forms

Desktop and Windows Forms development

This category can be followed from the open social web via the handle windows-forms@forum.codeproject.com

2.1k Topics 7.1k Posts
  • Spellchecking?

    csharp wpf tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Error Install Visual Studio 6 ? please help me

    help csharp visual-studio question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Form to Edit Properties.settings is not working.

    help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to create a Batch file in Windows to delete Temp Files

    tutorial
    4
    0 Votes
    4 Posts
    4 Views
    G
    Why don't you write a c# application? If you are writing bat file then it is not correct forum. Anyway you can do it like this: cd "path to folder" del /q * It will delete all files. If you write del /f /q * then it will force Force deleting of read-only files. my articles
  • Show Forms

    csharp tutorial
    12
    0 Votes
    12 Posts
    3 Views
    C
    The best way to do this is to create both forms as custom controls, put them both on the one form, and change which one is visible ( and resize the form if need be ) Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • Windows Property sheet

    windows-admin security help tutorial lounge
    7
    0 Votes
    7 Posts
    3 Views
    C
    Your client is a retard. It's not possible to have a file that cannot be deleted. There are ways to fight the user trying to delete it, but you can't make it impossible. You can make it hidden, but you can't stop them from deleting it when they find it. One possible solution, is to store a copy of the file in another location, and when your program runs ( or a service perhaps ), it copies the file back if it was deleted. But, you can't stop users from finding both files and deleting them, either. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • Unwanted Event firing

    csharp design question
    3
    0 Votes
    3 Posts
    2 Views
    F
    I tried exactly what you had there before posting the question. That DesignMode for some reason returns False. Thanks for the reply. I think that article will be a help... For now I have worked around it with my own designmode boolean I set to false during runtime :)
  • Using PDFs to interact with MS Access Forms

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • SplitterPanel Background

    graphics game-dev
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Button click

    question
    3
    0 Votes
    3 Posts
    2 Views
    D
    Thank you...it's working.
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • entering date to datagridview

    css tutorial question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Windows preemption

    help
    5
    0 Votes
    5 Posts
    2 Views
    D
    So? Link the documentation said, it's system dependant. You have zero control over this. The Sleep duration specified is only specifies a requirement for the MINIMUM time that the thread must sleep, subject to many factors. There is nothing you can do to make the thread sleep for EXACTLY 1 to 2 ms. A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007
  • User control in DataGridView cell

    tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Scroll a listbox

    help
    3
    0 Votes
    3 Posts
    2 Views
    S
    Will try that thanks There are 10 types of people in the world, those who understand binary and those who dont.
  • Workerthread in .Net 1.1

    csharp database winforms tools help
    2
    0 Votes
    2 Posts
    2 Views
    S
    Here is an application that I made for an interview that calculates prime numbers. //Purpose:to find prime numbers using System; using System.Drawing; using System.Windows.Forms; using System.Collections; using System.Threading; using System.IO; namespace Primes { public class MainForm : System.Windows.Forms.Form { private System.Windows.Forms.Button cmdDoit; private System.Windows.Forms.ListBox lbPrimes; private System.Windows.Forms.ProgressBar pbPrimes; private System.Windows.Forms.Label lblValue; Thread t; public MainForm() { InitializeComponent(); } \[STAThread\] public static void Main(string\[\] args) { Application.Run(new MainForm()); } #region Windows Forms Designer generated code /// /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// private void InitializeComponent() { this.lblValue = new System.Windows.Forms.Label(); this.pbPrimes = new System.Windows.Forms.ProgressBar(); this.lbPrimes = new System.Windows.Forms.ListBox(); this.cmdDoit = new System.Windows.Forms.Button(); this.SuspendLayout(); // // lblValue // this.lblValue.Location = new System.Drawing.Point(8, 64); this.lblValue.Name = "lblValue"; this.lblValue.TabIndex = 3; // // pbPrimes // this.pbPrimes.Location = new System.Drawing.Point(8, 40); this.pbPrimes.Name = "pbPrimes"; this.pbPrimes.TabIndex = 2; // // lbPrimes // this.lbPrimes.Location = new System.Drawing.Point(8, 96); this.lbPrimes.Name = "lbPrimes"; this.lbPrimes.Size = new System.Drawing.Size(136, 290); this.lbPrimes.TabIndex = 0; // // cmdDoit // this.cmdDoit.Location = new System.Drawing.Point(8, 8); this.cmdDoit.Name = "cmdDoit"; this.cmdDoit.TabIndex = 1; this.cmdDoit.Text = "Calculate"; this.cmdDoit.Click += new System.EventHandler(this.CmdDoitClick); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(152, 398); this.Controls.Add(this.lblValue); this.Controls.Add(this.pbPrimes); this.Controls.Add(this.cmdDoit); this.Controls.Add(this.lbPrimes); this.Name = "MainForm"; this.Text = "Primes"; this.Closing += new System.Componen
  • Problem occour when registering dll on win xp

    help question
    3
    0 Votes
    3 Posts
    2 Views
    P
    Regsvr32 only works with COM DLLs. If it can't find DllRegisterServer then it isn't a COM DLL and doesn't need to be registered. Deja View - the feeling that you've seen this post before.
  • MDI application help - multiple views

    c++ help learning
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Import a class form

    c++ question graphics docker help
    3
    0 Votes
    3 Posts
    2 Views
    D
    I try but it returns some compiler errors... #ifndef CAMOBJ_H #define CAMOBJ_H #include "Camlive.h" //other include.. #define WIDTH (100) #define HEIGHT (100) class Camobj { public: Camobj(); ~Camobj(void); void capture(void); private: camaddr_t camaddr; Camlive^ cml;///compiler error }; #endif And in the camobj.cpp #include "stdafx.h" #include "Camobj.h" using namespace System; using namespace System::IO; Camobj::Camobj() { cml=new Camlive();//compiler error } Camobj::~Camobj(void){ ... } The compiler errors are: ...\Camobj.h(56) : error C2143: syntax error : missing ';' before '^' ...\Camobj.h(56) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ...\Camobj.h(56) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ...\Camobj.h(56) : error C3265: cannot declare a managed 'cml' in an unmanaged 'Camobj' .\Camobj.cpp(15) : error C2065: 'cml' : undeclared identifier .\Camobj.cpp(15) : error C2061: syntax error : identifier 'Camlive' How can i relsolve it? Thanks regards.
  • icons for navigation and buttons

    design question
    6
    0 Votes
    6 Posts
    4 Views
    H
    thanks man but OoOoOps the site don't open