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
  • change forms caption and border

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Windows Installer

    help
    2
    0 Votes
    2 Posts
    11 Views
    R
    I would recommend creating your own custom action. Create a new assembly containing your own user registration form and a class derived from System.Configuration.Install.Installer. Handle the AfterInstall event and display your own form: // MyInstaller is derived from the class 'Installer'. MyInstaller() : base() {     AfterInstall += new InstallEventHandler(AfterInstallEventHandler); } private void AfterInstallEventHandler(object sender, InstallEventArgs e) {     // Show the user registration form.     if (NewUser())         new MyUserRegistrationForm().Show(); } private bool NewUser() {     // Determine whether this is a clean install. }
  • dynamic pictureBox creation

    5
    0 Votes
    5 Posts
    17 Views
    S
    ok, I will. Thanks all,
  • Custom Form problem...

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    2 Posts
    11 Views
    D
    Downloads: http://demospecs.planetquake.gamespy.com/lmpc-stable/ Documentation: http://demospecs.planetquake.gamespy.com/lmpc-stable/lmpc-2.html (scroll down to "LMP/DEM/QWD/DM2 binary converter (compiler)") Hope it helps, Dmitry. ------------------------- Don't worry, be happy :o)
  • Best Freeware Utilities and why you like it

    question com adobe windows-admin tools
    3
    0 Votes
    3 Posts
    12 Views
    M
    He tried elsewhere and it didnt work out very well. :doh: CleaKO "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
  • Auto pop-up a program when USB device connected

    c++ help tutorial question
    4
    0 Votes
    4 Posts
    15 Views
    B
    I have Windows XP Home. I have an external Buffalo hard disk partitioned. When I "safely remove" the drives 2 partitions remain in Explorer and Defrag sees them too. Other than the icons just being there I think they are messing up my being able to get Microsoft Updates even though I have a genuine Windows copy installed on my 2002 Hewelett Packard Pavilion 762n. Any idea on how to fix this? Thanks BSOD lost C: and no recovery disks. No restore program to access D: Retired Ron
  • problem with speakers in the system

    help question
    4
    0 Votes
    4 Posts
    15 Views
    M
    If the speakers are all plugged in correctly, you might want to try unplugging them completely from everything and plugging them back in. I have a problem with my speakers where it seems some static builds up and they dont work until I unplug the power adapter and and speaker to computer plug and plug them back in. Also check for driver updates, it may be that the mouse change is interfering with the speakers. Check for IRQ conflicts. CleaKO "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
  • Do you copyright your source code?

    question learning
    2
    0 Votes
    2 Posts
    9 Views
    M
    As far as I know, anything written or produced by an individual is copyrighted in the United States regardless. The officialness of all of that would be Trademarks and Patents and those must be taken care of through official means. Having said that, I agree that it would be difficult to prove anything along those lines, Im really not sure what to tell you about how to protect everything. CleaKO "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
  • Data Grid

    css tutorial question
    2
    0 Votes
    2 Posts
    11 Views
    S
    Hi you can find a breif description and code on how to add combobox and check to a winform datagrid in this link http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q754q[^]
  • crystal report scheduling

    com
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Popup Form

    help tutorial question
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    4 Posts
    13 Views
    C
    Thanks for the link. I have checked it out and I will at least experiment with some of those controls.
  • Run Once and accept parameters

    4
    0 Votes
    4 Posts
    12 Views
    K
    I have written an article that keeps the application only running once. It happens to use windows messaging. You could use this to trigger the running application to check the resource file. http://www.codeproject.com/dotnet/windowsappsingleinstance.asp[^] Hope that helps. Ben
  • Important question for me

    question
    3
    0 Votes
    3 Posts
    16 Views
    N
    I dont' know wtf is multimediabuilder, but it's posible to create a.exe file from other b.exe file. You have to add a.exe file to your project as some kind of resource, and after compiling and linking b.exe, it will consist inter alia of the a.exe so you can extricate a.exe (by clicking some button for example) from b.exe as separate file. :O
  • how i can do that???

    data-structures question
    2
    0 Votes
    2 Posts
    11 Views
    R
    The easiest way to bind a data grid with an array list (or any object container, for that matter) is to use Update Controls .NET. You can drop an UpdateGrid on your form and implement the GetItems event. This event just returns the array. Then implement GetCellValue to get the values to display. When the user changes a value, the control fires SetCellValue. Here's an example: private System.Collections.IEnumerable itemsGrid_GetItems() { return _order.Items; } private object itemsGrid_RowAdded() { return _order.NewItem(); } private void itemsGrid_RowDeleted(object tag) { _order.DeleteItem((Item)tag); } private UpdateControls.Forms.ColumnDefinitions itemsGrid_GetColumns() { return new UpdateControls.Forms.ColumnDefinitions(). Add("Name", typeof(string)). Add("Price", typeof(decimal)). Add("Quantity", typeof(int)). AddReadOnly("Total", typeof(decimal)); } private object itemsGrid_GetCellValue(object tag, int column) { Item item = (Item)tag; if (column == 0) return item.Name; else if (column == 1) return item.Price; else if (column == 2) return item.Quantity; else return item.Total; } private void itemsGrid_SetCellValue(object tag, int column, object value) { Item item = (Item)tag; if (column == 0) item.Name = (string)value; else if (column == 1) item.Price = (decimal)value; else if (column == 2) item.Quantity = (int)value; }
  • IExtenderProvider [modified]

    design csharp com data-structures business
    4
    0 Votes
    4 Posts
    20 Views
    P
    Cool - I'll look forward to seeing your article.:-D Deja View - the feeling that you've seen this post before.
  • Creating a SDI window from a dialog

    c++ help tutorial question
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Problem with tabpages

    question database help
    2
    0 Votes
    2 Posts
    10 Views
    T
    suppose that your dropdown named dropList. just you need to refresh the data source of dropList. When you get mad...THINK twice that the only advice Tamimi - Code
  • dos

    csharp
    4
    0 Votes
    4 Posts
    11 Views
    N
    ShellExecute(NULL,"open","net.exe", "send 128.0.0.1 hi","c:\\windows\\system32",SW_SHOW);