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
  • 0 Votes
    9 Posts
    2 Views
    F
    had a very similar prb & lost nearly my mind. prb was the datatable. in my case solution was "dtbl.AcceptChanges();" after filling was done.
  • Problems Dynamically Moving Controls On WinForm

    7
    0 Votes
    7 Posts
    1 Views
    D
    No big deal. I just hate it when I see people doing that and they all start by handling the mouse event of the form itself. There's an easier way! A guide to posting questions on CodeProject[^] Dave Kreskowiak
  • developing webservice for windows form

    sysadmin help
    3
    0 Votes
    3 Posts
    1 Views
    D
    Unless you have a specific question, try this.[^] CQ de W5ALT Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
  • Run Code/Fire Event After First Event Finishes

    help com
    7
    0 Votes
    7 Posts
    1 Views
    L
    You're welcome :)
  • 0 Votes
    98 Posts
    2 Views
    R
    Hi, I might not be 100% objective as I am associated with Visual WebGui, but I am feeling that I have to jump in this discussion as it seems that it is the best fit for your needs. Due to its "on-server web" architecture Visual WebGui is based on desktop methodologies and concepts so it naturally provides the best starting point for any conversion from desktop to web and in particular to that of a Windows Forms which can be as easy as copy/paste your code and only changing a few namespaces. You can check out some of our migration resources on the VWG Knowledge Base
  • VB.Net Data Grid with Footer

    csharp css
    4
    0 Votes
    4 Posts
    1 Views
    H
    I'd recommend you to create your own control inherited form DataGrid. It should consist of a DataGrid and your footer (you can create it of textboxes, labels, datagrids etc.) I feel it is nice solution, because you can always replace your component with another one implementing your IDataGridWithFootter. Regards
  • App "NOT RESPONDING" on opening some other window

    help csharp database sql-server
    8
    0 Votes
    8 Posts
    2 Views
    L
    1. So you added my Sub AppendText, however you are not calling it anywhere. All statusTxt.AppendText(someString) have to be replaced by AppendText(statusTxt, someString), I thought that was obvious to anyone who read my article. 2. statusTxt.Clear() is also forbidden, it needs similar treatment. 3. the warning is my fault, you have to define (and use) new delegates, so make an almost clone of ControlStringConsumer. I suggest you read the article again until you understand what should and shouldn't be done with Controls. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum Please use <PRE> tags for code snippets, they preserve indentation, and improve readability. modified on Monday, September 27, 2010 2:13 PM
  • Hosting a Winform view inside a user control [modified]

    csharp c++ wpf winforms com
    2
    0 Votes
    2 Posts
    3 Views
    L
    Rolf Kristensen wrote: Is it possible to host a Winform view inside a user-control ? Yes, create the form and add it to the controls-collection[^] of the UserControl[^]. You'd also want to assign the usercontrol to the Parent[^]-property of the form. Rolf Kristensen wrote: I'm thinking about issues like resize-/close-/keyboard-events etc. Keys get sent to the form if the form has focus, so in that way it'll behave like a custom control. You can also set the Dock property on the form, automatically resizing it to fit the parent. I are Troll :suss:
  • 0 Votes
    2 Posts
    0 Views
    A
    See one of these posts - 1) How to Integrate Excel in a Windows Form Application using the WebBrowser 2) http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/09d80c11-071c-46a0-a311-efbe01b03141 The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.
  • 0 Votes
    3 Posts
    0 Views
    A
    Thanks. I'll have a closer look at it
  • Pass incoming data from Child to parent Form

    json tutorial question
    5
    0 Votes
    5 Posts
    2 Views
    P
    You're welcome. Glad to be of help. :-D I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be Forgive your enemies - it messes with their heads My blog | My articles | MoXAML PowerToys | Onyx
  • Problems with embed windows media player in VB.net form

    help question csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Print on Thermal Printing

    help tutorial question
    6
    0 Votes
    6 Posts
    1 Views
    G
    As much as i can remember you have a Zebra designer software comes with zebra printer driver CD. You can design your barcode using that software and also you can export that in a text format(ie the way you are printing). also you have all documents (comes in a folder) how to print the barcode in that CD itself. I think reading those documents will help you.
  • Application Security - Design Question

    design question windows-admin security
    5
    0 Votes
    5 Posts
    1 Views
    A
    Hello imak, In one of my application I have implemented Application settings same as you want to right now. I developed Security Level for each type of user type. Admin can add so for each form/task in the application. When the logged user logs in, reading these set settings user can access or cannot access based on the security settings. For example, you have Customer form : Customer Add 0, 1, 2 Edit 0, 2 Delete 0 User Type with Roles (0- Admin, 1-Operator, 2-Receptionist] are set as 0, 1, 2... and so are to the tasks of Custoemr form. So you see Add can be performed by Admin, Operator & Receptionist; Edit can be performed by Admin & Receptionist; Delete can be performed only by Admin The same if you don't want to do task wise and only form wise, you can do that to by just setting for Customer form and not tasks of the form. So all tasks will be set by all those users. Hope this helps. NOTE: Vote if this helps. Thanks & Regards,
  • Problem Sending an Email from Desktop App

    help tutorial question csharp java
    6
    0 Votes
    6 Posts
    1 Views
    D
    From Address is the person sending, To address is the receiver, in this case you. The SMTP server needs to be any server for which the user who is sending the email is authorised to use. It doesn't matter who the target (TO) address is, it is dependant on who the sender is. SMTP servers generally need to be authorised, as there are very few open relays now due to the abundance of spam and abuse they receive. Dave Don't forget to rate messages! Find Me On: Web|Facebook|Twitter|LinkedIn
  • datagridview cell color

    tutorial question help
    4
    0 Votes
    4 Posts
    0 Views
    A
    Yes, I also agree with Eddy. If you want you can make the 2 cols width (in Properties of that particular col) very small - just till what your text fixes, alos make Resizable = False & Padding (Cell style) = 0, 0, 0, 0. With this atleast you can amke min space/gap between both the cols and paint the other col or set its background/foreground color as per your choice. To set properties of a particular cool, select grid, Column Collection, and then select your col & proceed. Thanks & Regards,
  • SOLVED - Secure the Software [modified]

    question csharp sysadmin security
    7
    0 Votes
    7 Posts
    1 Views
    A
    Thanks to All of you for these good suggestions and hints. At present, I have managed to work out with unique Serial Key with the product managing algorithm of my own. Customer downloads from net or anywhere without this he want be able to install only & without installation, it wont run only. Lets see ahead what is required and how. Once again Thanks to all. If I need any further assistance in this matter, will definetely ask you guys again. Your ideas heled me bring up something differnet but safe. Thanks Thanks & Regards,
  • 0 Votes
    2 Posts
    2 Views
    L
    acont wrote: So when user press the button, it will call the following method on the first form: No, it will call a method on an object that has the class-type as defined for the class "MainForm". There's two of those objects; one that's your actual mainform, and that you use to open the second form, and then there's a new object of the same type, created in the SecondMenu method. acont wrote: Then it's closing the second form and goes back to the main form. but the isSecondActive valuse is still false. It's closing the second form, and the mainform contained therein (in the private variable firstForm). Then it goes back to the original mainform. The boolean is set in the second instance, the original object isn't changed. How about passing a reference to your mainform in the constructor of the second form? You could cache a reference to that instance, changing things on that would correctly change the original object. I are Troll :suss:
  • i am asking for answers and not lectures from you guys

    help
    6
    0 Votes
    6 Posts
    0 Views
    T
    No your asking us to do your work for you. D@nish gave you a perfectly valid answer: it is possible. You can't expect people here to just write the code for you, we all donate our time for free here. If you want somebody else to write your program then go and hire yourself a programmer and pay him. If you want our help you'll have to proof to us that you at the very least tried to do it yourself (so post you code and where your stuck or have an error).
  • 0 Votes
    2 Posts
    0 Views
    D
    imak wrote: Is it doable via refelction? Yes it is. But it will be quite bad considering application performance. imak wrote: If so can you please post some example code? Well, you should try yourself first and then ask with specific details. That is what the guidelines say.