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.
User Profile
Collapse
-
If the source file exists before you start writting... delete it.Leave a comment:
-
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 }
Leave a comment:
-
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;
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...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...Leave a comment:
-
OP doesn't want to provide code so we can actually help.
Since I am not psychic, I'm unsubscribing from this thread.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?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....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...Leave a comment:
-
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 } } }
Leave a comment:
-
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....Leave a comment:
-
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...Leave a comment:
-
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....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 mergedLeave a comment:
-
Code:public mapDesigner() { map_control = new mapControl(); }
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...Leave a comment:
-
Personally, I wouldn't do this
Code:map_control.Height = this.Height.Pixels; map_control.Width = this.Width.Pixels;
Things like this can cause a problem with the designer. As soon...Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
No activity results to display
Show More
Leave a comment: