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
  • Fluid Layout By Custom Polygon Shapes

    csharp winforms question
    10
    0 Votes
    10 Posts
    0 Views
    L
    Well I would assume that "Choose the correct forum" means just one. And, as I said you have been a member here for long enough to know the generally accepted protocols. Som Shekhar wrote: I could do with a little less of leg pulling. This isn't leg pulling, it's explanation.
  • Programmatically Click mouse on specefic location

    help
    4
    0 Votes
    4 Posts
    0 Views
    L
    shaina2231 wrote: OK the Problem IS SOlved And how exactly did you solve the problem? I'm interested because I'm working on same thing. Lukas
  • Going Bananas - Toolstrip keeps rearranging itself

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Accessing parent form from child from

    question
    5
    0 Votes
    5 Posts
    0 Views
    B
    I guess I'm not understanding how the property will update the checkox. The child is updating the property in frmMain. How does the checkbox in frmMain know the property just changed? Sorry if I'm missing something obvious.
  • 0 Votes
    5 Posts
    0 Views
    L
    arj_agt wrote: But that does not answer my question? My apologies. I assumed that you wanted some code-snippets on executing SQL scripts against a Postgre database. So I misinterpreted your question, let's simply attempt it again. arj_agt wrote: All the basic concepts are there but my issue is something else. Are you having problems with a specific piece of code (in which case we'd like to see the plaintiff), a specific task (how do you connect, execute etc) or a specific platform (ie, installation problems of Postgre on Suse?) Do you have the correct connectionstrings[^]? Have you downloaded the Postgre dataprovider for .NET[^]? arj_agt wrote: My name is Arijit and I am developing a windows application using C# and Postgre Sql. I need to run a few sql scripts while the application is installed in the user's system. Can anybody tell how can i can do this or at least tell me where I can get help regarding this? You can do it by issuing an command over an IDbConnection. You can get help here off course, and alternatively, you can search MSDN or the documentation of the Framework Libraries[^], and there's the Postgre documentation[^]. I are now Troll on a Gnome :suss:
  • Structuring Windows Forms apps... [modified]

    question csharp winforms career
    12
    0 Votes
    12 Posts
    0 Views
    A
    I didn't say I would use it through choice :) Like you say though, for juniors in particular it can stop some bad habits (and introduce some different ones :laugh: ), so I thought it may be of interest to the OP Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
  • Basic Problems with Multithreading

    tutorial csharp c++ visual-studio winforms
    2
    0 Votes
    2 Posts
    0 Views
    L
    here is a simple recipe: 1. tell your IDE to always show line numbers; see here for Visual Studio[^]; 2. look at the file name, method name, and line number when the compiler or the run-time system generates an error or exception (in general, however not here, as you are having a compile=time problem: for run-time problems, this implies you look at Exception.ToString() and not Exception.Message) 3. that most often points you straight to the line at fault. 4. now take the error message literally, and try to apply that to the problematic line. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
  • Help provider+win Form

    com help
    3
    0 Votes
    3 Posts
    0 Views
    L
    Are you capturing the key presses in your dialog proc?
  • Same form opens every time

    csharp help
    3
    0 Votes
    3 Posts
    0 Views
    A
    Mycroft Holmes wrote: Well that is one of the most obscure questions I have seen this week. Well it is only Tuesday (here), so there's plenty of time to beat it :) Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
  • on successful login, close login screen and activate MDI screen

    csharp help
    3
    0 Votes
    3 Posts
    0 Views
    D
    The login form should NOT be your startup form. The MDIParent form should be the startup and if it finds that the user needs to login, it shows your login dialog. A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007, 2008 But no longer in 2009...
  • data grid view

    css com help
    3
    0 Votes
    3 Posts
    0 Views
    M
    This question has been answered so many time and so well covered this may help you[^] Never underestimate the power of human stupidity RAH
  • Identifying system process

    csharp help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    D
    I guess a windows service that will regularly check for iexplorer.exe in the processes running on a system should work. If, it finds the process, start your windows application then. I also think you can probably make your application as IE add-in. You can find help creating add-in here[^]. 50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Resizable Form Without FormBorderStyle (None)

    question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Not without digging down into some ugly Win32 APIs. Why not set the FormBorderStyle to None and write your own resize code? If my answer has helped you, one of my articles may also be a help. Also remember that your best friend's name is google.
  • Help provider+win Form

    database com sales help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • At The Risk Of Being Excoriated...

    database design help question sql-server
    5
    0 Votes
    5 Posts
    0 Views
    D
    I may have misunderstood your requirement, I think you want an off the shelf SCADA system instead of developing a customized SCADA system. http://global.wonderware.com/EN/Pages/default.aspx[^]
  • 0 Votes
    3 Posts
    0 Views
    C
    Hi Shameel, thanks for the tip. It really seems to be a memory leak. But it has nothing to do with the folder browser dialog. The leak probably occurrs in another referenced dll. Best Regards, Viola
  • problem accessing remote database.

    help question csharp database sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    L
    DON'T ask the same question in multiple forums. Identify the most appropriate forum for your question and post it ONLY there.
  • resize form and controls according to Screen resolutions

    csharp java
    5
    0 Votes
    5 Posts
    0 Views
    N
    Hi, I am not sure that I get you right but if you want your application to change screen resolution : change screen resolution C# As for the shrink or grow, thre is the Form.AutoScaleMode which I haven't worked with. Natza Mitzi Analysis Studio - Statistical Analysis
  • Drag Drop of controls in .net

    csharp help
    4
    0 Votes
    4 Posts
    0 Views
    N
    I wrote something like this back in the day and I will look for it. But dragging controls is very demanding since they redraw all the time causing flickering and bad performance (at least in .net 2.0).You can show squares when you drag or implement it by adding custom redraw on bitmaps which may still cause problems, very complicates and has relatively poor performance. This is a big task and you should be looking for a nice peace of code to start with.Try looking for a custom drawn object source code it will be a good start. I don't know whether you should use an off the shelf product, check quality and pricing first. I found this here : Drag and Drop Image C# Natza Mitzi Analysis Studio - Statistical Analysis