Click here to Skip to main content
15,916,442 members
Home / Discussions / C#
   

C#

 
AnswerRe: Block parent form Pin
Saksida Bojan22-Aug-09 12:02
Saksida Bojan22-Aug-09 12:02 
GeneralRe: Block parent form Pin
Luc Pattyn22-Aug-09 13:29
sitebuilderLuc Pattyn22-Aug-09 13:29 
QuestionPermanent connection with webserver Pin
Xmen Real 22-Aug-09 3:15
professional Xmen Real 22-Aug-09 3:15 
AnswerRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 6:30
Natural_Demon22-Aug-09 6:30 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 7:04
professional Xmen Real 22-Aug-09 7:04 
GeneralRe: Permanent connection with webserver Pin
Dave Kreskowiak22-Aug-09 7:38
mveDave Kreskowiak22-Aug-09 7:38 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 7:40
professional Xmen Real 22-Aug-09 7:40 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 8:37
Natural_Demon22-Aug-09 8:37 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 16:12
professional Xmen Real 22-Aug-09 16:12 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon23-Aug-09 1:22
Natural_Demon23-Aug-09 1:22 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 8:51
Natural_Demon22-Aug-09 8:51 
QuestionIHTMLElement onclick event method call Pin
yogesh_softworld12322-Aug-09 3:07
yogesh_softworld12322-Aug-09 3:07 
Questionfilling a form on internet ! Pin
sajjy22-Aug-09 2:31
sajjy22-Aug-09 2:31 
AnswerRe: filling a form on internet ! Pin
Natural_Demon22-Aug-09 9:12
Natural_Demon22-Aug-09 9:12 
AnswerRe: filling a form on internet ! Pin
jbc123-Aug-09 2:26
jbc123-Aug-09 2:26 
QuestionWhat is the best way to create background application? Pin
bonzaiholding22-Aug-09 0:39
bonzaiholding22-Aug-09 0:39 
AnswerRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 0:47
Saksida Bojan22-Aug-09 0:47 
GeneralRe: What is the best way to create background application? Pin
bonzaiholding22-Aug-09 0:55
bonzaiholding22-Aug-09 0:55 
GeneralRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 0:58
Saksida Bojan22-Aug-09 0:58 
AnswerRe: What is the best way to create background application? Pin
Baeltazor22-Aug-09 6:30
Baeltazor22-Aug-09 6:30 
AnswerRe: What is the best way to create background application? Pin
Natural_Demon22-Aug-09 9:17
Natural_Demon22-Aug-09 9:17 
GeneralRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 12:07
Saksida Bojan22-Aug-09 12:07 
GeneralRe: What is the best way to create background application? Pin
Mycroft Holmes22-Aug-09 14:28
professionalMycroft Holmes22-Aug-09 14:28 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:16
Natural_Demon23-Aug-09 2:16 
eh, i remember i asked the same question when i played with MFC c++ 5,6 years ago.

it's impossible for an normal application to operate without a form/cmd.

than as solution, i said, you can write a DLL and hooked it the windows explorer, be it as service or something else, like a virus.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace nowindow_application
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //MessageBox.Show(bobo(1, 2).ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            Thread.Sleep(1000);
            Main();
            //Application.Run(new Form1(bobo(1, 2)));
        }

        private static int bobo(int a, int b)
        {
            return (a + b);
        }
    }
}

this application wil not not produce an executable file using visual studio 2008

//MessageBox.Show(bobo(1, 2).ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
uncomment this file and you have a executable file in your bin folder.
so you can't build a application without a CMD or form layout.

i dind't spread any false hope or something, i asked this question before.

Bad = knowing 2 much

GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:21
Natural_Demon23-Aug-09 2:21 

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.