Click here to Skip to main content
15,926,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: Large amount of images - ideas needed Pin
User 665810-Aug-08 8:49
User 665810-Aug-08 8:49 
AnswerRe: Large amount of images - ideas needed Pin
nelsonpaixao10-Aug-08 14:19
nelsonpaixao10-Aug-08 14:19 
Questiondetect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 7:43
DragenGimp10-Aug-08 7:43 
AnswerRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 9:37
teejayem10-Aug-08 9:37 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 10:23
DragenGimp10-Aug-08 10:23 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 11:06
DragenGimp10-Aug-08 11:06 
GeneralRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 12:31
teejayem10-Aug-08 12:31 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp10-Aug-08 13:01
DragenGimp10-Aug-08 13:01 
Thanks.
What happens is it just stops working and it brings up an unhandled error: object was in a zombie state

now I've figured out that it doesn't crash until it reaches this line:
this.WindowState = FormWindowState.Minimized;


now I've got a check on resizing:
void MainFormResize(object sender, EventArgs e)
{
    if(this.WindowState == FormWindowState.Minimized){
        this.ShowInTaskbar = false;
        notifyIcon1.Visible = true;
    }else{
        this.ShowInTaskbar = true;
        notifyIcon1.Visible = false;
        fetch_iniData("data.ini", true);
    }
}


For some reason it is the:
this.ShowInTaskbar = false;

That is causing it to crash... I can't see why though.
The strange thing is that it's calling up the same function that is called on a button press, which works fine.. so why it works then and not when the application loads is beyond meConfused | :confused:
GeneralRe: detect if application is opened on start-up or via user? Pin
teejayem10-Aug-08 14:53
teejayem10-Aug-08 14:53 
GeneralRe: detect if application is opened on start-up or via user? Pin
DragenGimp16-Aug-08 5:50
DragenGimp16-Aug-08 5:50 
QuestionWEIRD problem with CPU 40%-50% in an application. Pin
Green Fuze10-Aug-08 5:23
Green Fuze10-Aug-08 5:23 
QuestionDynamic Instantiation of Classes. Pin
dudedotnet10-Aug-08 5:06
dudedotnet10-Aug-08 5:06 
AnswerRe: Dynamic Instantiation of Classes. Pin
User 665810-Aug-08 5:13
User 665810-Aug-08 5:13 
AnswerRe: Dynamic Instantiation of Classes. Pin
Guffa10-Aug-08 6:35
Guffa10-Aug-08 6:35 
AnswerRe: Dynamic Instantiation of Classes. Pin
PIEBALDconsult10-Aug-08 7:03
mvePIEBALDconsult10-Aug-08 7:03 
QuestionGraphics.DrawImage Problem Pin
#realJSOP10-Aug-08 4:57
professional#realJSOP10-Aug-08 4:57 
AnswerRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 5:21
Guffa10-Aug-08 5:21 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 5:39
professional#realJSOP10-Aug-08 5:39 
GeneralRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 6:37
Guffa10-Aug-08 6:37 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:25
professional#realJSOP10-Aug-08 23:25 
AnswerRe: Graphics.DrawImage Problem Pin
User 665810-Aug-08 5:46
User 665810-Aug-08 5:46 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:29
professional#realJSOP10-Aug-08 23:29 
QuestionThe assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 4:27
ezazazel10-Aug-08 4:27 
QuestionRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
Mark Salsbery10-Aug-08 9:02
Mark Salsbery10-Aug-08 9:02 
AnswerRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 9:39
ezazazel10-Aug-08 9:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.