User Profile

Collapse

Profile Sidebar

Collapse
tlhintoq
tlhintoq
Last Activity: Mar 13 '13, 07:33 PM
Joined: Mar 27 '08
Location: Arizona, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • To be picky it doesn't freeze your program - it freezes that thread.
    If your program is single threaded then you are fraked.

    So you probably need to make it multi-threaded so it can continue to look for these new pop-ups and handle them.
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to C++, How do I overwrite a .txt file?
    in C
    If the source file exists before you start writting... delete it.
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to Memory Mapping error.
    You init each element of the array

    Code:
    for (int Loop = 0; Loop < MaxSizeOfArray; Loop++)
    {
       MMFKeyboardCOmmand[Loop] = new Command();// Whatever you need to set the element to
    }
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to Memory Mapping error.
    The line your code stopped on while debugging holds all your answers.
    One of the variables/objects was created but not initialized. For example:
    Code:
    string TempString;// Created but not initialized so this is still null
    //versus
    string TempString = string.empty;
    Debug your project again. This time, when it breaks on a line look at the Locals pallet to see which variable/object is null. You can also hover your mouse...
    See more | Go to post

    Leave a comment:


  • If your comport is a virtual COM from a Microsoft bluetooth dongle there is a known bug. The MS BT stack sometimes make entries like this

    COM15╪
    instead of
    COM15

    It fails to put a proper null termination in the registry, then later when you get the available com port names they are fraked up.

    Check the registry to see if they are screwed, or better yet parse the reg and fix all COM port names...
    See more | Go to post

    Leave a comment:


  • Put a breakpoint on the line that opens Form3. And then debug it (F5)
    Walk through your code with the F10 key.
    When Form3 closes you should be taken to the code that is executed next. Walk through it until you hit the line minimizing your application.

    Or, do a find (ctrl-F) for ".minimize" to see if you are minimizing your form. As well as ".Hide()"

    Those would be the two most common ways...
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to how to avoid flicker in panel
    OP doesn't want to provide code so we can actually help.
    Since I am not psychic, I'm unsubscribing from this thread.
    See more | Go to post

    Leave a comment:


  • Are you really asking "why does my application close, then I tell it to
    This.Close();

    Surely you aren't. And if you really don't understand why it is doing it... Give up coding now and go to cooking school instead.

    You've already been given the code to override the form closing event and minimize instead. What more do you want?
    See more | Go to post

    Leave a comment:


  • 1) please wrap your code in [noparse][code] your code here [/code] tags, as you were asked to when you created the message.

    2) You are correctly adding the attachment. It sounds like the attachment was stripped out by the the SMTP sender, or the receiver's email client. That happens. Sometimes the receiver has a limit on the size of the attachment. Or a limit on the total space they can use for attachments. Or virus protection....
    See more | Go to post

    Leave a comment:


  • Oh please... It is easy and commonly done.

    Do you have a method attached to the Form_Closing event handler?

    Its very easy to catch this event, set the closeargs to cancel, then minimize the form. It sounds like that's what is happening. Though it is odd that it is happening without you knowing you wrote that event handler. Are you collaborating with another coder? Does the problem form inherit from another form that...
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to Comparing things in lists?
    Nested loops.
    You loop through all of the indexes of List1 and compare each item to all of the indexes in List2

    Code:
    Foreach (int Yogi in List1)
    {
       Foreach (int BooBoo in List2)
       {
          if (List1[Yogi] == List2[BooBoo])
          {
             // We have a winner Ranger Smith
          }
       }
    }
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to Hiding a button in another form
    Remember that in Object Oriented, event driven, coding the basic concept is that each class/form/object is responsible only for itself. There should be as little direct coding of Form2 inside Form1, as possible. You should try to code a lot of little black boxes that are ignorant of each other.

    If you have Form1, Form2, Form3, Form4, Class7 and so on... they should all subscribe to a custom "UserLogged In" event in your SecurityClass....
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to C# Object Oriented Approach
    Here is another tutorial that shows the making of an application from scratch, including inheritance.

    But as Gary pointed out, when you are making your variables you are not initializing them. That is a bad habit to get into. You should always initialize them to *something*. Some people initialize variables to values they know will work (default values). Others tend to make them values they know to look for. For example, if you...
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to how to avoid flicker in panel
    You're asking everyone to make a lot of assumptions and guesswork about your code. Please provide the code you are using for the constructor and the on_load event handler, so we can actually see what you are doing when the form is created and shown....
    See more | Go to post

    Leave a comment:


  • Please don't double-post your questions in different areas. It divides attempts to help you in an organized and cohesive manner. Your threads have been merged
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to question about CRI in reporting service
    Code:
    public mapDesigner()
            {
                map_control = new mapControl();
            }
    Just as a test, comment out this part. Don't make the mapControl when you make the Designer.

    I've had this be a problem in a few cases when I nested one control inside another. The constructor for the nested control had some issue because it couldn't find a DLL it was dependent on in the new parent project and so o...
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to question about CRI in reporting service
    Personally, I wouldn't do this
    Code:
     map_control.Height = this.Height.Pixels;
               map_control.Width = this.Width.Pixels;
    in the OnPaint. It means you are sizing every time the control is painted. I would put it in the SizeChangeCompl eted event. So when your parent control is resized, so is the encapsulated child control... but not every time it is painted.

    Things like this can cause a problem with the designer. As soon...
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to question about CRI in reporting service
    TIP: When you first created your question you were asked to wrap your code with [code] tags.
    [imgnothumb]http://files.me.com/tlhintoq/10jihf[/imgnothumb]
    It really does help a bunch. Look how much easier it is to read now that someone has done it for you. Its the button with a '#' on it. [imgnothumb]http://clint.stlaurent .net/bytes/tags-code.jpg[/imgnothumb]More on tags. They're cool. Check'em out.
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to question about CRI in reporting service
    Sounds like something in the in the Constructor trying to do it's job before the item is loaded.

    Can you move code from the constructor to the Load event?

    If you have custom/override on the On_Paint event, that could also be a source of the problem.
    See more | Go to post

    Leave a comment:


  • tlhintoq
    replied to Out parameter
    in .NET
    I think what you did is fine. But if you really want to get rid of the out param you could make a new class with two properties: headings list, dictionary.

    Then return a new instance of the class with your fetched objects.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...