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
P

Poolee

@Poolee
About
Posts
17
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FolderBrowserDialog closes my dialog window
    P Poolee

    Ok, here's where I slap myself, bang my head against a particularly strong wall, then put my head down a toilet... gurgling NOOOOB as it flushes! I had copied the button from the Cancel button on the form. I had retained the DialogResult property of Cancel. So yeah, clicking the button opened the FolderBrowserDialog of course, then as soon as it closed, the DialogResult caused the form to close. Thanks again for your help Mark! Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • FolderBrowserDialog closes my dialog window
    P Poolee

    Hi Mark Created a project as you described... worked properly. I will have to review my code... and Dialog properties... LOL Still very weird... I will post the results if I manage to discover the cause. Thanks for your help! Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • FolderBrowserDialog closes my dialog window
    P Poolee

    Thanks for your reply Mark. That's pretty much how I do it too. After instantiating the form or browser dialog, I update a few properties, then use the ShowDialog() method. Could it be a bug? My development environment is Windows 7 RC1, Visual Studio SP1, latest patches etc.

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • FolderBrowserDialog closes my dialog window
    P Poolee

    Hi everyone I have this strange thing happening, and can't seem to get past it. My application opens a new project dialog window where the user types in the name of the project, a description of the project, and has to open a FolderBrowserDialog to select the location of some files that the application will use. When I select the folder and click OK (or Cancel), it closes the FolderBrowserDialog as expected, but it also closes my new project dialog with a dialog result of Cancel. The new project dialog does not have the AcceptButton or CancelButton set. It uses Yes and No dialog results back to the main form. Anyone got any ideas? Thanks in advance. Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • How do I suppress the SelectAll when tabbing into a ComboBox?
    P Poolee

    Thanks Mika, GotFocus solved it. Enter occurs before the SelectAll, otherwise I would have used that. Never knew about GotFocus though, so awesome result! :) Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • How do I suppress the SelectAll when tabbing into a ComboBox?
    P Poolee

    Hi there I would like to be able to stop all text in a ComboBox from being automatically selected when I tab into a it (it has DropDownStyle of DropDown). Currently, I check for KeyUp event, and select the text I want to select, rather than the whole lot. This still has the effect of all text being selected temporarily until the tab key is released. Is there any way to suppress the SelectAll behaviour? Thanks in advance Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    .NET (Core and Framework) question

  • Ho do I suppress the Tab key, or control tabbing to a nested user control?
    P Poolee

    LOL, got the name from the siggie... *slaps self repeated ly* :laugh:

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# winforms help question

  • Ho do I suppress the Tab key, or control tabbing to a nested user control?
    P Poolee

    Thanks for that Dave. A bit of a learning curve to use that method, but it seems like it will meet my needs. Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# winforms help question

  • Ho do I suppress the Tab key, or control tabbing to a nested user control?
    P Poolee

    Hi there, I someone can help me... this is driving me nuts... I have a form (with textboxes and buttons) with dynamically created user controls (BasePanel) when the user presses the Add button. On that user control is a textbox. When that user control gets created, one of two possible user controls (GeneralEntry - initially - or EventEntry) are added to that user control, which contains a series of maskedtextboxes. If the user types a letter in this first maskedtextbox, then the GeneralEntry gets replaced with the EventEntry user control, which has a different series of maskedtextboxes. Now, what I want to have happen is that on the last textbox on the form, when the user presses Tab, it goes to the first maskedtextbox on the GeneralEntry, but it doesn't... it goes to the textbox on the BasePanel. I have tried assigning all the tab orders so that the all in the correct order, but there seems to be a precedence of controls... form, then user control, then next user control, etc... I have also tried suppressing the Tab key and forcing the SelectNextControl... but that's not working either, as the Tab key doesn't seem to be able to be suppressed or handled. Does anyone have any suggestions please? Thanks in advance! Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# winforms help question

  • Class Libraries
    P Poolee

    Awesome, thanks for your help Ravi!! :-D Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# question oop help

  • Class Libraries
    P Poolee

    Ok, thanks Ravi. But what about methods purely related to doing something related to the form, but doesn't fall into a particular category? Should I be keeping those with the form class's code? Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# question oop help

  • Class Libraries
    P Poolee

    Hi everyone I'm still quite new to Object Oriented Programming, so please forgive me for this newbie question. I'm building an application with a main form and a couple of sub-forms. There is also an assocated service that goes with the application. - Should the class library only code that doesn't deal directly with processing events on the forms, or just methods that are used more than once? - Should each form then have its own class library, or should I create a single class library for the whole application and the service to use? - Or should I be creating separate class libraries based on their usage to enable later reuse of the class library? I've trawled through MSDN and found some best practices but they don't mention what to do in the above scenarios... I gotta say I'm leaning towards the last point here, but I really don't know... :( Any help you gurus can provide would be greatly appreciated! Cheers Paul

    One day I want to be a code monkey. Right now, I'm more like a code amoeba...

    C# question oop help

  • To "this." or not to "this.", that is the question...
    P Poolee

    Thanks for your reply. So just to clarify, you would use a differently-named private variable to the passed variable name? Cheers Poolee

    ... pessimists are rarely disappointed ...

    C# question csharp tutorial

  • To "this." or not to "this.", that is the question...
    P Poolee

    Hi there I'm relatively new to C#, so please exuse me if this seems n00bish... But, when referencing a control on a form is it good practice to include "this.", for example: **textBox1.Text = "Hello World";** -or- **this.textBox1.Text = "Hello World";** I ask this because I haven't seen any convention mentioned anywhere, or consistency. Does it even matter? Also, I note that within a contructor for a class, you might use the same variable name for a parsed variable as you would for the private local variable, eg:

    public class fclsHelloWorld: Form
    {
      private bool sayHelloWorld;
    
      public fclsHelloWorld ( bool args, bool sayHelloWorld )
      {
        InitializeComponent ();
        this.sayHelloWorld = sayHelloWorld;
      }
    ...
    }
    

    So, it's obviously needed to specify which variable you're referring to. Thanks in advance :-D Cheers Poolee

    ... pessimists are rarely disappointed ...

    C# question csharp tutorial

  • iPhone is real [updated] [again]
    P Poolee

    Yeah, looks hot, but... It can't sync to Exchange, making it virtually useless in a corporate environment (the only way to truly have realtime access to email and contacts is through Outlook Web Access), the keyboard has no tactile feedback, which would undoubtably make typing laboriously slow, it can't open Word or Excel files which rules it out as a remote tool. It also doesn't support full WiFi and is not capable of being used with GSM worldwide (apparently the only carrier that supports it is Cingular)... erk! Essentially, the iPhone is the equivalent to gluing an iPod to an early 1990's cellphone... I'm really hope my boss doesn't buy one (either for himself or any of the other exec management team) cos then I'll have to support the wreched thing...

    The Lounge ios com

  • Programming books.
    P Poolee

    Captain See Sharp wrote:

    How many programming books do you read? Ten a year? One a month? How do you read them?

    I've never read a whole book - thers' too much information for me to digest like that. Mostly I've read bits of about 10 books in the last 4 months. Mostly this is just to learn more about something I'm struggling with. It helps that I've subscribed to books24x7.com :-D

    Captain See Sharp wrote:

    Also what is your favorite of all programming books and what book would you highly recommend

    I always find myself returning to Professional C#, Second Edition (Simon Robinson, Wrox Press). I find it nicely written with useful examples.

    The Lounge question learning

  • Making income online
    P Poolee

    Hi dude Well, buy cheap, see for a profit ain't so hard. I used to buy and sell Canon camera equipment. This wasn't a hot item, but enough people were interested in it to make it worth while. So, I bought someone's collection of equipment - lenses, camera (bodies), filters etc - broke the collection down, cleaned, tested, then resold each item individually. Made myself a modest 20% profit over about 8 months. Ok, didn't get rich, but can you see the potential? Anything that can be bought as a collection and sold indivually has move value that way. Good luck! Poolee :-D

    The Lounge
  • Login

  • Don't have an account? Register

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