Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

CompMan44

@CompMan44
About
Posts
13
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hierarchy & Transparent Controls
    C CompMan44

    Dave Kreskowiak wrote:

    Transparent tells the control's background properties to match those of the parent container. It does NOT make the control Transparent.

    I was afraid of that. Actually, I'm using a custom OnPaint handler, so I guess FillRectangle() et al. is where that "feature" lies? Thanks for your suggestions. I'd rather not get into DirectX just yet, but if that's what it takes.... P.S. Are there ANY functions (preferably GDI) that handle transparent and semi-transparent colors properly?

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring.      —Alexander Pope

    Windows Forms help java com game-dev json

  • showing a form twice
    C CompMan44

    I've had a similar problem. My solution was to catch the FormClosing event, and when e.CloseReason == CloseReason.UserClosing, set e.Cancel to true and Hide the form.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    Windows Forms help question

  • Parent and child forms
    C CompMan44

    I tried out what you described with the following code:

    using System.Windows.Forms;

    class Form1: Form
    {
    public Form1()
    {
    this.IsMdiContainer = true;

      this.AutoScroll = false;
    
      Form f = new Form();
      f.MdiParent = this;
      f.Show();
    

    }

    public static void Main (string[] args)
    {
    Application.Run(new Form1());
    }
    }

    Of course, the scrollbars still appear. According to the documentation for Form.AutoScroll, "If this property is set to true, scroll bars are displayed on the form if any controls are located outside the form's client region." I would take this to mean that AutoScroll only applies to controls owned by the form, not MDI children. Sorry I couldn't be of more help.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    Windows Forms

  • progress bar on MDI
    C CompMan44

    First, why not have the child form itself update the progress bar? Then you don't have to do all that polling. Or if you must do polling, make sure to call Application.DoEvents() and Thread.Sleep() in your wait loop; not doing this is probably what causes the steps to "all [be] performed at once."

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    Windows Forms question help

  • Hierarchy & Transparent Controls
    C CompMan44

    I'm working on a game API which uses potentially transparent controls for basic layering effects (I don't want anything too fancy just yet). My first problem was enabling transparency, but that was easily solved using SetStyle(). Unfortunately, when I then tried placing a transparent layer over another layer, it shows the form's background color (here, black) through the transparency, instead of the layer beneath. I was finally able to get the proper effect by making the top-layer control a child of the bottom-layer control, but doing it that way makes some other effects nigh impossible. Is there a way to get transparent controls to display the other controls beneath them? Any help is appreciated.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    Windows Forms help java com game-dev json

  • How to upgrade from .NET 1.1 to .NET 2.0
    C CompMan44

    I guess that's my problem, then; I'm using the Student Edition (I believe) of VS.NET 2002. Thanks for your help anyway, I'll just make do with the CLI compilers for now.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    .NET (Core and Framework) csharp dotnet tools help tutorial

  • Resource "Injection"
    C CompMan44

    That looks like just what I need. Thanks! :)

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    IT & Infrastructure learning java question

  • How to upgrade from .NET 1.1 to .NET 2.0
    C CompMan44

    By the way I'm upgrading from 1.0 not 1.1. Or else I'd already have that component, yeah.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring.      —Alexander Pope

    .NET (Core and Framework) csharp dotnet tools help tutorial

  • Sending a file
    C CompMan44

    From what I know of SMTP (admittedly not much) you don't need to set up a server, you just have to know how to communicate with the receiver's e-mail provider. But whichever method you choose, just make sure it fits the situation.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    C# question lounge

  • Sending a file
    C CompMan44

    There ARE a lot of ways, but you're probably going to want something network-based. You could:

    • Have the program create/copy the file to a shared folder on "your" computer.
    • Have it upload the file to an e.g. HTTP server running on your computer.
    • Have it send the contents via some other network protocol.
    • Have it e-mail the file to you.
    • Have it NET SEND the contents to you.
    • Have it post the contents to an online website.
    • (Assuming both computers are within reasonable distance but are NOT networked) have it copy the file to a floppy/flash disk, then hand it off to a robot that will bring it to you, insert the disk, and copy the file back to your computer.

    These are just some random (and somewhat ludicrous!) methods, but you get the idea. Cheers. ^_^ P.S. I would personally try them in about the order they are listed. Actually, I wouldn't even try the last one.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    C# question lounge

  • Resource "Injection"
    C CompMan44

    Is there a way to programmatically "inject" resources into a program without recompiling from the source? In particular I have a pre-compiled program without an appicon, and I want to allow an end-user to supply his or her own appicon, such as in self-extracting archives.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    IT & Infrastructure learning java question

  • How to upgrade from .NET 1.1 to .NET 2.0
    C CompMan44

    Preferably all of them, but at the very least I'm trying to get FolderBrowserDialog (I think that's the name). On a side note, I wonder why the SDK installation doesn't detect VS.NET and do this automatically? I guess only Microsoft knows.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    .NET (Core and Framework) csharp dotnet tools help tutorial

  • How to upgrade from .NET 1.1 to .NET 2.0
    C CompMan44

    Similar question: I've already downloaded and installed the .NET Framework 2.0. Now how do I import the controls to my VS.NET toolbox?

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring.      —Alexander Pope

    .NET (Core and Framework) csharp dotnet tools help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups